List call history for an account
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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
"ringing" | "answered" | "ended" | "failed""inbound" | "outbound"date-timedate-time1 <= value <= 200Response Body
application/json
application/json
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,
"totalCostUSD": 0,
"currency": "string"
}
}
]
}{
"error": "Unauthorized"
}Get Instagram story insights GET
Returns metrics for a single story. The `source` field discriminates between three states: - `live` — fetched from Meta in real time (story is still active) - `cached` — fetched from a persisted `story_insights` webhook payload (story has expired but we received its final-state metrics from Meta) - `unavailable` — story has expired and we never received its webhook payload (for example, the account connected after the story expired) Field semantics follow Meta's API. Counts below 5 may be returned as 0 due to Meta's privacy floor on small audiences. The `navigation` field is the sum of `tapsForward + tapsBack + exits + swipesForward`.
Estimate per-minute cost for a destination GET
Returns a zero-markup estimated cost for an outbound call to the given destination, broken down by Meta + Telnyx + recording line items. Costs are pass-through, no margin applied.