OverviewPlatformsAPI ReferenceResources
WhatsApp

List call history for an account

GEThttps://zernio.com/api/v1/whatsapp/calls

Compact history listing for a single connected account. Results are scoped to the resolved SocialAccount; profile-scoped team members cannot read calls on sibling accounts.

Cursor pagination: pass the returned nextCursor as before to fetch the next page (same scheme as GET /v1/calls). since/until remain as absolute range filters and combine with the cursor.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

accountIdstringRequired
statusstringOne of ringing | answered | ended | failed
directionstringOne of inbound | outbound
sincestring (date-time)
untilstring (date-time)
beforestring (date-time)

Return calls with startedAt strictly before this instant (use the previous page's nextCursor).

limitinteger

Responses

Success· the request worked

Errors· the request failed

GET/v1/whatsapp/calls
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsappcalling.listWhatsAppCalls({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "calls": [    {      "_id": "string",      "direction": "inbound",      "from": "string",      "to": "string",      "status": "ringing",      "startedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z",      "durationSeconds": 0,      "endReason": "hangup",      "recordingUrl": "string",      "billing": {        "metaCostUSD": 0,        "telnyxCostUSD": 0,        "recordingCostUSD": 0,        "billableCostUSD": 0,        "totalCostUSD": 0,        "currency": "string"      }    }  ],  "nextCursor": "2019-08-24T14:15:22Z"}
OpenAPI specification
Was this page helpful?