Voice API
List Calls
Retrieve calls placed and received by your account.
Returns calls associated with the authenticated account from the last 24 hours. Results are not sorted — order them by start_time in your code.
Endpoint
GET
https://api.tryvox.io/v1/voice/accounts/{auth_id}/callsQuery parameters
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by call status (see values). |
direction | string | Filter by outbound or inbound. |
from_number | string | Filter by caller in E.164 format. |
to_number | string | Filter by destination in E.164 format. |
Only
statusis applied server-side.direction,from_number, andto_numberare accepted but ignored — filter on them in your code. There is no pagination; narrow large result sets withstatus.
Example request
curl -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
"https://api.tryvox.io/v1/voice/accounts/$TRYVOX_AUTH_ID/calls?status=hangup"Response
200 OK:
{
"data": [
{
"request_uuid": "550e8400-e29b-41d4-a716-446655440000",
"account_id": "TJab12cd34",
"auth_id": "TJab12cd34",
"from": "+14155551234",
"to": "+14155556789",
"direction": "outbound",
"status": "hangup",
"start_time": "2026-04-09T10:30:00Z",
"answer_time": "2026-04-09T10:30:05Z",
"end_time": "2026-04-09T10:32:10Z",
"duration": 125,
"billsec": 125,
"hangup_cause": "NORMAL_CLEARING"
}
]
}If no calls match, data is null.
Response fields
request_uuid— identifier for the original API request that started this call. Use it for cross-referencing with logs and webhook payloads.account_id/auth_id— both equal to the account's Auth ID.from,to— E.164 numbers.direction—outboundorinbound.status— current call status.start_time— when the request was accepted (UTC ISO 8601).answer_time— when the call connected. Omitted if the call never answered.end_time— when the call ended. Omitted while in progress.duration— wall-clock seconds fromstart_timetoend_time.billsec— billable seconds (fromanswer_timetoend_time).0for unanswered calls.hangup_cause— SIP-style cause string (NORMAL_CLEARING,USER_BUSY,NO_ANSWER,CALL_REJECTED, etc.).
Status values
The call record moves through these values:
queued— call accepted, awaiting dispatchringing— destination is ringinganswered— connected and in progress. Call actions only work in this state.hangup— the call has ended, whether or not it was answered. Readhangup_causeandbillsecfor the outcome.failed— the call could not be dialled (for example,fromis not owned by the account).hangup_causeholds the reason.
The record's status does not distinguish busy, no-answer, or cancelled calls — they all end as hangup. The outcome classification (completed, busy, no-answer, cancelled, failed) is delivered in the Status field of the hangup webhook.
Notes
- The response shape lacks a
call_uuidtoday. Userequest_uuidas the stable identifier across this list, Get Call, and webhook payloads. - Recordings are not on this object. List them with the Recordings API, filtered by
call_uuid. - Records expire after 24 hours. For older calls use Call Records.