Skip to main content

Retrieve a call status

GET 
/calls/:call_control_id

Returns the status of a call (data is available 10 minutes after call ended).

Request

Path Parameters

    call_control_id stringrequired

    Unique identifier and token for controlling the call

Responses

200: Successful response with details about a call status.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/calls/:call_control_id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"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",
"is_alive": false,
"call_duration": 50,
"record_type": "call"
}
}