Call Records API

List & Retrieve Calls

Read-only records of the calls on your numbers — the same rows the dashboard's call history shows, with timings, status, end reason, and the SIP-level hangup cause.

Records cover inbound calls (webhook-answered, BYOC voice.sipUri deliveries, and SIP-trunk ingress) and outbound calls logged against your numbers. Authentication is the same HMAC scheme as every other CallNode API; GET requests sign the empty body.

JavaScript
// GET requests sign an EMPTY body: the payload is timestamp + "\n".
const crypto = require('crypto');
const ts  = Math.floor(Date.now() / 1000).toString();
const sig = crypto.createHmac('sha256', apiSecret).update(ts + '\n').digest('hex');
// GET https://api.callnode.io/api/v1/calls?direction=inbound&limit=50
// Headers: X-Api-Key: <apiKey>, X-Timestamp: ts, X-Signature: sig

List call records

GEThttps://api.callnode.io/api/v1/calls
ParameterTypeRequiredDescription
numberstringOptionalLimit to one of your numbers — E.164 or the number's id.
directionstringOptionalinbound or outbound.
statusstringOptionalin_progress, completed, or failed.
sinceISO date-timeOptionalOnly calls starting at or after this instant.
untilISO date-timeOptionalOnly calls starting at or before this instant.
beforeISO date-timeOptionalKeyset cursor — pass the previous page's nextBefore to fetch older records.
limitintegerOptional1–200, default 50. Newest first.
JSON
{
  "calls": [
    {
      "callId":        "2dcabc20-1dd3-49cd-95f1-521f04e54090",
      "direction":     "inbound",
      "from":          "16135550142",
      "to":            "18285550199",
      "number":        "+18285550199",
      "status":        "completed",
      "startTime":     "2026-09-22T05:31:02.624Z",
      "endTime":       "2026-09-22T05:36:12.101Z",
      "durationSecs":  309,
      "endReason":     null,
      "sipCause":      "NORMAL_CLEARING",
      "errorMessage":  null,
      "webhookErrors": 0,
      "sipTrunkId":    null,
      "createdAt":     "2026-09-22T05:31:02.629Z"
    }
  ],
  "count": 1,
  "nextBefore": null
}

Retrieve one call

GEThttps://api.callnode.io/api/v1/calls/{callId}
ParameterTypeRequiredDescription
callIdstring (path)RequiredThe call's uuid. It is the same id CallNode hands you everywhere else for that call: the X-CallNode-Call-Id header on a BYOC delivery INVITE, and the callId in webhook and audio-stream query strings.
JSON
{
  "call": {
    "callId":       "2dcabc20-1dd3-49cd-95f1-521f04e54090",
    "direction":    "inbound",
    "status":       "completed",
    "durationSecs": 309,
    "endReason":    null,
    "sipCause":     "NORMAL_CLEARING"
  }
}

A call that does not exist — or is not on your account — returns 404 not_found; the two cases are deliberately indistinguishable.

Why a call ended

Two fields answer “why did this call end?” at different altitudes. endReasonis CallNode's own vocabulary — for example idle_timeout or insufficient_balance — and is null for an ordinary hangup. sipCause is the SIP-level hangup cause of the caller leg, for example NORMAL_CLEARING (someone hung up), ORIGINATOR_CANCEL (the caller gave up while it rang), or RECOVERY_ON_TIMER_EXPIRE (signalling to the far end stopped being answered mid-call). Together with durationSecs they usually pin down a teardown without a support ticket.

Records from before 2026-09-22 predate these two fields and return null for both. transcript data is not exposed on this API.