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

GEThttps://api.tryvox.io/v1/voice/accounts/{auth_id}/calls

Query parameters

ParameterTypeDescription
statusstringFilter by call status (see values).
directionstringFilter by outbound or inbound.
from_numberstringFilter by caller in E.164 format.
to_numberstringFilter by destination in E.164 format.

Only status is applied server-side. direction, from_number, and to_number are accepted but ignored — filter on them in your code. There is no pagination; narrow large result sets with status.

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 — outbound or inbound.
  • 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 from start_time to end_time.
  • billsec — billable seconds (from answer_time to end_time). 0 for 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 dispatch
  • ringing — destination is ringing
  • answered — connected and in progress. Call actions only work in this state.
  • hangup — the call has ended, whether or not it was answered. Read hangup_cause and billsec for the outcome.
  • failed — the call could not be dialled (for example, from is not owned by the account). hangup_cause holds 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_uuid today. Use request_uuid as 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.

On this page