Accounts

Returns connected 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.

get/v1/accounts

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/accounts
  • Auth: HTTP bearer

Query parameters

profileIdstring

Filter accounts by profile ID. Must be a valid ObjectId.

platformstring

Filter accounts by platform (e.g. "instagram", "twitter").

status'connected' | 'disconnected'

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.

searchstring

Case-insensitive match on the account username, display name or platform user id, or an exact account id. Combine with page/limit to paginate the matches.

category'social' | 'ads' | 'communication' | 'blogs' | 'crm'

Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit), communication = WhatsApp, Telegram, Discord, Slack and iMessage, blogs = Shopify and WordPress, crm = HubSpot, social = every other platform.

sort'account' | 'platform' | 'profile' | 'status' | 'connected'

Sort a paginated listing (page/limit) by account name, platform, profile name, status (accounts needing a reconnect first when ascending) or connection date. Ties keep the default order: platform, then newest first.

order'asc' | 'desc'

Direction for sort.

includeOverLimitboolean

When true, includes accounts from over-limit profiles.

excludeHiddenboolean

When true, leaves out accounts the dashboard does not show as connections: posting accounts with enabled: false (ads accounts are always kept, whatever their enabled value) and the internal sms and phone accounts behind each phone number. Applied before pagination, so page totals and statusCounts count only the remaining accounts. Sandbox accounts added by includeSandbox are appended after this filter. Accepts true or false in any letter case; any other value returns 400.

includeSandboxboolean

When true, appends the shared WhatsApp sandbox account and the iMessage sandbox account to the list when they are active, honouring platform but no other filter. Ignored on a paginated request (page/limit) and together with perProfile. Accepts true or false in any letter case; any other value returns 400.

includeStatusCountsboolean

When true, the response carries statusCounts: how many accounts match every other filter of the request (with status lifted) in total and how many of those need a reconnection. Accepts true or false in any letter case; any other value returns 400.

pageinteger

Page 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.

limitinteger

Page size. Must be provided together with page; sending only one of the two returns 400.

profileIdsstring

Comma-separated profile IDs (up to 50) to preview, together with perProfile. The response then also carries profileTotals.

perProfileinteger

Return a preview of each profile in profileIds: the newest account of every platform it has, topped up to at least N. Requires profileIds; cannot be combined with page and limit.

Response

Accounts (with optional pagination)

hasAnalyticsAccessboolean required

Whether user has analytics add-on access

profileTotalsobject

Only with profileIds and perProfile. Accounts matching the filters per profile ID; a profile with none is absent.

Changes

    • warning

      added the new webflow enum value to the // response property for the response status

    • warning

      added the new hubspot enum value to the // response property for the response status

    • info

      added the new enum value crm to the query request parameter category