Retrieve an existing call queue
Successful response with details about a queue.
Fax does not exist
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.Queue.retrieve("queue_name")import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.Queue.retrieve("queue_name")
{- "data": {
- "average_wait_time_secs": 175,
- "created_at": "2019-01-23T18:10:02.574Z",
- "current_size": 20,
- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "max_size": 50,
- "name": "support",
- "record_type": "queue",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
}
Retrieve the list of calls in an existing queue
Successful response with a list of calls in a queue.
Array of objects (QueueCall) | |
object (PaginationMeta) |
Fax does not exist
import telnyx telnyx.api_key = "YOUR_API_KEY" queue = telnyx.Queue.retrieve("tier_1_support_queue") queue_calls = queue.list_calls()
{- "data": [
- {
- "call_control_id": "v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ",
- "call_leg_id": "2dc6fc34-f9e0-11ea-b68e-02420a0f7768",
- "call_session_id": "2dc1b3c8-f9e0-11ea-bc5a-02420a0f7768",
- "connection_id": "7267xxxxxxxxxxxxxx",
- "enqueued_at": "2019-01-23T18:10:02.574Z",
- "from": "+18005550101",
- "queue_id": "ae1626cc-6f42-11ea-becd-02420a0f8b69",
- "queue_position": 3,
- "record_type": "queue_call",
- "to": "+18005550102",
- "wait_time_secs": 145
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Retrieve an existing call from an existing queue
Successful response with details about a call in a queue.
object (QueueCall) | |||||||||||||||||||||||
|
Fax does not exist
import telnyx telnyx.api_key = "YOUR_API_KEY" queue = telnyx.Queue.retrieve("tier_1_support_queue") queue_call = queue.retrieve_call(call_control_id)
{- "data": {
- "call_control_id": "v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ",
- "call_leg_id": "2dc6fc34-f9e0-11ea-b68e-02420a0f7768",
- "call_session_id": "2dc1b3c8-f9e0-11ea-bc5a-02420a0f7768",
- "connection_id": "7267xxxxxxxxxxxxxx",
- "enqueued_at": "2019-01-23T18:10:02.574Z",
- "from": "+18005550101",
- "queue_id": "ae1626cc-6f42-11ea-becd-02420a0f8b69",
- "queue_position": 3,
- "record_type": "queue_call",
- "to": "+18005550102",
- "wait_time_secs": 145
}
}