curl --request GET \
--url https://api.bland.ai/v2/batches/{batch_id} \
--header 'authorization: <authorization>'{
"data": {
"id": "a9a033b7-44d8-40c6-aaec-42cd43106273",
"user_id": "657ad643-92ca-477c-97cc-9d8e6e74d7af",
"base_prompt": "{\"record\":true,\"task\":\"Say hello to the user\"}",
"created_at": "2025-05-08T19:28:12.627Z",
"call_objects": [
{
"task": "Say hello to the user",
"phone_number": "+1234567890"
}
],
"description": "Untitled Batch"
},
"errors": null
}
Retrieve metadata for a specific batch. This does not include logs, use the logs endpoint for that.
curl --request GET \
--url https://api.bland.ai/v2/batches/{batch_id} \
--header 'authorization: <authorization>'{
"data": {
"id": "a9a033b7-44d8-40c6-aaec-42cd43106273",
"user_id": "657ad643-92ca-477c-97cc-9d8e6e74d7af",
"base_prompt": "{\"record\":true,\"task\":\"Say hello to the user\"}",
"created_at": "2025-05-08T19:28:12.627Z",
"call_objects": [
{
"task": "Say hello to the user",
"phone_number": "+1234567890"
}
],
"description": "Untitled Batch"
},
"errors": null
}
task or record.null on success.{
"data": {
"id": "a9a033b7-44d8-40c6-aaec-42cd43106273",
"user_id": "657ad643-92ca-477c-97cc-9d8e6e74d7af",
"base_prompt": "{\"record\":true,\"task\":\"Say hello to the user\"}",
"created_at": "2025-05-08T19:28:12.627Z",
"call_objects": [
{
"task": "Say hello to the user",
"phone_number": "+1234567890"
}
],
"description": "Untitled Batch"
},
"errors": null
}
Was this page helpful?