批次详情
开发环境
开发环境
GET
/v1/batches/{batch_id}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/v1/batches/' \
--header 'authorization: <authorization>'
响应示例响应示例
{
"batch_params": {
"id": "AAcQq8zXxLB56LWg-gen-batch",
"campaign_id": null,
"created_at": "2023-12-07T20:43:44.544773+00:00",
"label": "Customer Satisfaction Follow-up",
"base_prompt": "You are calling {{name}} about their recent purchase of the item: {{item}}. Ask them each of the following questions about the specific item they purchased: {{questions}}",
"endpoint_code": "api",
"call_params": {
"reduce_latency": true,
"voice_id": 0,
"language": "eng",
"max_duration": 10,
"wait_for_greeting": false
}
},
"call_data": [
{
"status": "completed",
"corrected_duration": "12",
"end_at": "2023-12-16T00:17:38.000Z",
"call_id": "ffa99be3-63dd-44dc-9523-380cd25c1b9e",
"to": "1112223333",
"from": "+17473423273",
"completed": true,
"created_at": "2023-12-16T00:17:22.383682+00:00",
"queue_status": "complete",
"endpoint_url": "api.bland.ai",
"max_duration": 30,
"error_message": null,
"answered_by": "voicemail",
"request_data": {
"phone_number": "1112223333",
"reduce_latency": true,
"wait": false,
"language": "ENG"
},
"transcripts": [
{
"id": 1188954,
"created_at": "2023-12-16T00:17:30.46833+00:00",
"text": " Hi, Im calling about the laundromat for sale. — ",
"user": "assistant",
"c_id": "ffa99be3-63dd-44dc-9523-380cd25c1b9e"
},
{
"id": 1188957,
"created_at": "2023-12-16T00:17:35.14056+00:00",
"text": "I'll get back to you as soon as you can. Just leave a message. Thank you. Bye.",
"user": "user",
"c_id": "ffa99be3-63dd-44dc-9523-380cd25c1b9e"
},
{
"id": 1188959,
"created_at": "2023-12-16T00:17:36.710551+00:00",
"text": "Ended call: Goodbye",
"user": "agent-action",
"c_id": "ffa99be3-63dd-44dc-9523-380cd25c1b9e"
}
],
"call_length": 0.12345
}
],
"analysis": {
"total_calls": 88,
"completed_calls": 86,
"in_progress_calls": 2,
"queue_statuses": {
"complete": 85,
"started": 2,
"call_error": 1
},
"call_lengths": {
"average": 17,
"average_nonzero": 31,
"summary": {
"0-5": 18,
"5-10": 4,
"10-15": 3,
"15-20": 2,
"20-30": 14,
"30-45": 28,
"45-60": 11,
"60-90": 6,
"90-120": 1,
"120+": 1
},
"all": [
7,
32
]
},
"call_ids": [
"ffa99be3-63dd-44dc-9523-380cd25c1b9e",
"591338a8-34b2-41e6-93da-b9029c9bdedc"
],
"error_messages": [
{
"call_id": "c52f5f8c-147e-478c-4b40-88214feeba29",
"error_message": "Cannot transfer to +12223334444 - Call is no longer active"
}
],
"endpoints": {
"api.bland.ai": 88
}
}
}
请求参数
Path 参数
batch_id
string
必需
Header 参数
authorization
string
必需
示例值:
<authorization>
返回响应
修改于 2024-05-10 09:15:24