List accounts
Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on. Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible). page and limit must be supplied together; out-of-range page/limit values are rejected with 400 rather than silently clamped.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
Filter accounts by profile ID. Must be a valid ObjectId.
Filter accounts by platform (e.g. "instagram", "twitter").
Filter accounts by connection status. connected returns healthy accounts; disconnected returns accounts that need reconnection (per the same reconnection check surfaced in the dashboard). Omit to return accounts in any status. When combined with page/limit, pagination totals reflect the filtered result set.
"connected" | "disconnected"When true, includes accounts from over-limit profiles.
falsePage number (1-based). Must be provided together with limit to enable server-side pagination; sending only one of the two returns 400. Omit both for all accounts.
1 <= valuePage size. Must be provided together with page; sending only one of the two returns 400.
1 <= value <= 100Response Body
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.accounts.listAccounts();console.log(data);{
"accounts": [
{
"_id": "64e1...",
"platform": "twitter",
"profileId": {
"_id": "64f0...",
"name": "My Brand",
"slug": "my-brand"
},
"username": "@acme",
"displayName": "Acme",
"profileUrl": "https://x.com/acme",
"isActive": true
}
],
"hasAnalyticsAccess": false
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}Delete profile DELETE
Permanently deletes a profile. Active connected accounts block deletion (returns 400) - disconnect them first. Any remaining disconnected accounts and provisioned WhatsApp numbers are moved to another of your profiles (a new one is created only if needed), never deleted.
Check account health GET
Returns detailed health info for a specific account including token status, permissions, and recommendations.