Skip to main content
GET
/
queues
/
{queue_name}
/
calls
/
{call_control_id}
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const call = await client.queues.calls.retrieve('call_control_id', { queue_name: 'queue_name' });

console.log(call.data);
{
  "data": {
    "call_control_id": "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
    "call_leg_id": "2dc6fc34-f9e0-11ea-b68e-02420a0f7768",
    "call_session_id": "2dc1b3c8-f9e0-11ea-bc5a-02420a0f7768",
    "record_type": "queue_call",
    "connection_id": "7267xxxxxxxxxxxxxx",
    "from": "+18005550101",
    "to": "+18005550102",
    "enqueued_at": "2019-01-23T18:10:02.574Z",
    "wait_time_secs": 145,
    "queue_position": 3,
    "queue_id": "ae1626cc-6f42-11ea-becd-02420a0f8b69"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

queue_name
string
required

Uniquely identifies the queue by name

call_control_id
string
required

Unique identifier and token for controlling the call

Response

Successful response with details about a call in a queue.

data
QueueCall · object
Example:
{
"call_control_id": "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
"call_leg_id": "2dc6fc34-f9e0-11ea-b68e-02420a0f7768",
"call_session_id": "2dc1b3c8-f9e0-11ea-bc5a-02420a0f7768",
"record_type": "queue_call",
"connection_id": "7267xxxxxxxxxxxxxx",
"from": "+18005550101",
"to": "+18005550102",
"enqueued_at": "2019-01-23T18:10:02.574Z",
"wait_time_secs": 145,
"queue_position": 3,
"queue_id": "ae1626cc-6f42-11ea-becd-02420a0f8b69"
}