Get started →
API reference

Carrier phone calls

List and analyze every call across the carrier, and test trunk routing with test_call.

Phone call resource

PhoneCalljson
{
  "data": {
    "id": "CA…",
    "type": "phone_call",
    "attributes": {
      "account_id": "AC…",
      "direction": "inbound",
      "from": "+2348000000001",
      "to": "+2348000000002",
      "status": "completed",
      "duration": "42",
      "price": "-12.50",
      "created_at": "…"
    }
  }
}

List phone calls

GET/carrier/v1/phone_calls

Return calls across the carrier, filterable.

ParameterTypeDescription
filter[account_id] optionalstringRestrict to an account.
filter[status] optionalstringFilter by status.
filter[direction] optionalstringFilter by direction.
filter[from] optionalstringFilter by origin.
filter[to] optionalstringFilter by destination.
page optionalinteger0-indexed page.
per_page optionalintegerRecords per page.

Fetch a call

GET/carrier/v1/phone_calls/{id}

Return a single call.

Update a call

PATCH/carrier/v1/phone_calls/{id}

Update billing data on a call (e.g. to set a manual price).

ParameterTypeDescription
data.type requiredstringphone_call
data.id requiredstringThe call ID.
data.attributes.price optionalstringOverride the call price.
Carrier call records are the source of truth for billing. Use update to correct prices before reconciliation.