OverviewPlatformsAPI ReferenceResources
Inbox Analytics

Get conversation analytics

GEThttps://zernio.com/api/v1/analytics/inbox/conversations/{conversationId}

Per-conversation inbox analytics. The inbox analog of /v1/analytics/post-timeline: one conversation, daily totals, source mix.

The {conversationId} path param accepts EITHER the Zernio conversation id OR its platformConversationId (the same identity used by metadata.conversationId at ingest time). Ownership is verified against the caller's team before the Tinybird query fires.

Max date range is 365 days.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

conversationIdstringRequired

Zernio conversation id or platformConversationId.

Query parameters

fromDatestring (date)Required
toDatestring (date)

Responses

Success· the request worked

Errors· the request failed

GET/v1/analytics/inbox/conversations/{conversationId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.inboxanalytics.getInboxConversationAnalytics({  path: {    conversationId: 'conversation_abc123',  },  query: {    fromDate: '2026-01-15',  },});console.log(data);
{  "success": true,  "conversationId": "string",  "mongoId": "string",  "platform": "string",  "from": "2019-08-24",  "to": "2019-08-24",  "summary": {    "received": 0,    "sent": 0,    "read": 0,    "failed": 0,    "totalMessages": 0,    "firstMessageAt": "2019-08-24T14:15:22Z",    "lastMessageAt": "2019-08-24T14:15:22Z"  },  "timeseries": [    {      "date": "2019-08-24",      "sent": 0,      "received": 0,      "read": 0,      "failed": 0    }  ],  "bySource": [    {      "source": "string",      "count": 0    }  ]}
OpenAPI specification
Was this page helpful?