cURL
curl --request POST \ --url https://api.bland.ai/v2/batches/create \ --header 'Content-Type: application/json' \ --header 'authorization: <authorization>' \ --data '{ "call_objects": [ {} ], "global": {} }'
{ "data": { "batch_id": "8b8e8c57-9e6e-4e4d-84d2-9826b2268c22" }, "errors": null }
Create a new batch of calls using direct input.
/v1/calls
"call_objects": [ { "phone_number": "+1234567890", "task": "Say hello to the nice person!" // /v1/call properties }, { "phone_number": "+1234567891", "task": "Say hello to the bad person!", "record": false // /v1/call properties } ]
call_objects
"task"
"pathway_id"
"phone_number"
"global": { "task": "Say hello to the nice person!", "record": true // /v1/call properties }
batch_id
null
Was this page helpful?