JavaScript
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify([ { endpoint: '<string>', additionalData: {}, priority: 1, callDeadline: null, timezone: null } ]) }; fetch('https://blackbox.dasha.ai/api/v1/calls/bulk', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
[ { "endpoint": "<string>", "callId": "<string>", "orgId": "<string>", "agentId": "<string>", "createdTime": "2023-11-07T05:31:56Z", "status": "Unknown", "nextScheduleTime": "2023-11-07T05:31:56Z", "additionalData": {}, "priority": 123, "callDeadline": "2023-11-07T05:31:56Z", "timezone": "<string>" } ]
Target agent ID for call execution
Array of call configurations to schedule
1
Show child attributes
Calls scheduled successfully
Unknown
Created
Pending
Queued
Completed
Failed
Canceled
Running
Was this page helpful?