列出批次
开发环境
开发环境
GET
/v1/batches
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/v1/batches' \
--header 'authorization: <authorization>'
响应示例响应示例
{
"status": "success",
"batches": [
{
"batch_id": "ZfowpkhOSVCZJ94i-gen-batch",
"campaign_id": "a2shduf92f74p8288c93nid5",
"created_at": "2023-11-16T22:14:24.9663+00:00",
"label": "Subscription Renewal Reminders",
"base_prompt": "You are calling {{business}} and need to let them know that their subscription to {{service}} is going to expire on {{date}}. If they'd like to renew, take their credit card information and bill them through {{url}}",
"endpoint_code": "api",
"call_params": {
"reduce_latency": true,
"voice_id": 2,
"language": "eng",
"request_data": {
"test_param": "request data.test_param",
"your name": "Janessa"
},
"max_duration": 5,
"wait_for_greeting": false
}
}
]
}
请求参数
Header 参数
authorization
string
必需
示例值:
<authorization>
返回响应
修改于 2024-05-10 09:15:22