Skip to main content
GET
/
api
/
v1
/
calls
/
queue
/
list
Get current calls queue for organization
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://blackbox.dasha.ai/api/v1/calls/queue/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
}

Query Parameters

skip
integer<int32>
default:0

Number of calls to skip for pagination

Required range: 0 <= x <= 2147483647
take
integer<int32>
default:20

Maximum number of calls to return (max 1000)

Required range: 1 <= x <= 1000
fromDate
string<date-time>

Optional start date for filtering calls

toDate
string<date-time>

Optional end date for filtering calls

agentId
string

Optional agent ID to filter calls

status
enum<string>[]

Optional array of call statuses to filter by

Available options:
Unknown,
Created,
Pending,
Queued,
Completed,
Failed,
Canceled,
Running

Response

Returns the calls queue

calls
object[]
required
total
integer<int32>
required