Sendexa LogoDocs

Call Status

Retrieve the current state, duration, and metadata of a voice call.

GET
/v1/voice/call/:callId

Request Parameters

ParameterTypeDescription
callIdPathThe unique ID returned when the call was initiated

Response

JSON
{
"success": true,
"data": {
"callId": "call_xyz123abc",
"status": "completed",
"to": "233555539152",
"from": "233241234567",
"duration": 45,
"cost": 0.12,
"startTime": "2024-01-15T10:30:05Z",
"endTime": "2024-01-15T10:30:50Z"
}
}

Status Types

queued

Call is scheduled to be made

ringing

The recipient's phone is ringing

in-progress

The call is active and connected

completed

The call ended normally

busy

The recipient's line was busy

failed

Call failed to connect

no-answer

The recipient did not answer