const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/calls/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"calls": [
{
"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>"
}
],
"total": 123
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/calls/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"calls": [
{
"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>"
}
],
"total": 123
}Number of calls to skip for pagination
0 <= x <= 2147483647Maximum number of calls to return
1 <= x <= 1000Optional start date for filtering calls
Optional end date for filtering calls
Was this page helpful?