Get top accounts by inbox volume
Leaderboard of social accounts by inbox message volume. Decorates each row with display labels from the live SocialAccount record (so the UI shows username + displayName, not just an ID). Accounts that no longer map to a SocialAccount surface as "(disconnected)" so the row stays visible. Max date range is 365 days.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
datedateCap on returned rows. Lower than the posting listing's 100 because each row triggers a SocialAccount Mongo lookup.
101 <= value <= 50Response Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.inboxanalytics.getInboxTopAccounts({ query: { fromDate: '2026-01-15', },});console.log(data);{
"success": true,
"from": "2019-08-24",
"to": "2019-08-24",
"accounts": [
{
"accountId": "string",
"platform": "string",
"displayName": "string",
"username": "string",
"received": 0,
"sent": 0,
"total": 0,
"conversations": 0,
"medianResponseSeconds": 0,
"repliedCount": 0
}
]
}{
"error": "string",
"details": {}
}{
"error": "Unauthorized"
}{
"error": "string",
"details": {}
}Get inbox source breakdown GET
Breakdown of inbox messages by their lineage source (the `metadata.source` field set at ingest time: human / workflow / sequence / broadcast / comment_automation / api / contact / platform). Each source row also carries a per-platform sub-split. Max date range is 365 days.
Get inbox messaging volume GET
Daily inbox messaging volume + breakdowns. Folds the raw messaging events into three projections so the client can render the volume chart, KPI strip, and per-platform stacked bar from a single call. Max date range is 365 days.