Returns the status of a call (data is available 10 minutes after call ended).
Successful response with details about a call status.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.Call.retrieve("uuid")
{- "data": {
- "call_control_id": "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
- "call_duration": 50,
- "call_leg_id": "2dc6fc34-f9e0-11ea-b68e-02420a0f7768",
- "call_session_id": "2dc1b3c8-f9e0-11ea-bc5a-02420a0f7768",
- "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
- "is_alive": false,
- "record_type": "call"
}
}
Lists all active calls for given connection. Acceptable connections are either SIP connections with webhook_url or xml_request_url, call control or texml. Returned results are cursor paginated.
Successful response with list of details about active calls.
Array of objects (Active Call) | |
object (PaginationMeta) |
{- "data": [
- {
- "call_control_id": "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
- "call_leg_id": "2dc6fc34-f9e0-11ea-b68e-02420a0f7768",
- "call_session_id": "2dc1b3c8-f9e0-11ea-bc5a-02420a0f7768",
- "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
- "call_duration": 50,
- "record_type": "call"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}