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.
// 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: sigList call records
https://api.callnode.io/api/v1/calls| Parameter | Type | Required | Description |
|---|---|---|---|
number | string | Optional | Limit to one of your numbers — E.164 or the number's id. |
direction | string | Optional | inbound or outbound. |
status | string | Optional | in_progress, completed, or failed. |
since | ISO date-time | Optional | Only calls starting at or after this instant. |
until | ISO date-time | Optional | Only calls starting at or before this instant. |
before | ISO date-time | Optional | Keyset cursor — pass the previous page's nextBefore to fetch older records. |
limit | integer | Optional | 1–200, default 50. Newest first. |
{
"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
https://api.callnode.io/api/v1/calls/{callId}| Parameter | Type | Required | Description |
|---|---|---|---|
callId | string (path) | Required | The 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. |
{
"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.
transcript data is not exposed on this API.