Accounts & connections · Accounts

Check accounts health

Checks accounts health.

GEThttps://api.pozy.ai/v1/accounts/health
getAllAccountsHealth

Guides: Connecting accounts, Account health, Scopes and permissions

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the accounts resource group disabled get 403 resource_group_disabled. Authentication

Query parameters

NameTypeNotes
profileIdstring
platformstringOne of facebook, instagram, linkedin, twitter, tiktok, youtube, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp, shopify, wordpress, wix, linkedinads, metaads, pinterestads, tiktokads, xads, googleads, openaiads, redditads, whopads, hubspot, webflow, and more
statusstringOne of healthy, warning, error

Example

curl -X GET "https://api.pozy.ai/v1/accounts/health" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • summaryobject
    • totalinteger
    • healthyinteger
    • warninginteger
    • errorinteger
    • needsReconnectinteger
  • accountsarray of object
    18 child fields
    • accountIdstring
    • platformstring
    • usernamestring
    • displayNamestring
    • profileIdstring
    • statusstring

      One of healthy, warning, error.

    • canPostboolean
    • canFetchAnalyticsboolean
    • tokenValidboolean
    • tokenExpiresAtstring (date-time)
    • needsReconnectboolean
    • issuesarray of string
    • ownerUserIdstring
    • disconnectReasonstring

      Can be null.

    • disconnectionTypestring

      One of intentional, unintentional. Can be null.

    • unhealthySincestring (date-time)

      Can be null.

    • analyticsSyncobject
      2 child fields
      • statusstring

        One of ok, failing, stalled, never_synced.

      • lastSyncedAtstring (date-time)

        Can be null.

    • messagingRestrictionobject

      Can be null.

      6 child fields
      • codeinteger

        Can be null.

      • subcodeinteger

        Can be null.

      • messagestring

        Can be null.

      • firstSeenAtstring (date-time)
      • lastSeenAtstring (date-time)
      • pausedUntilstring (date-time)

        Can be null.

200 response
{
  "summary": {
    "total": 42,
    "healthy": 1,
    "warning": 1,
    "error": 1,
    "needsReconnect": 1
  },
  "accounts": [
    {
      "accountId": "696e0b682d0a31188e7a2ba9",
      "platform": "instagram",
      "username": "acme",
      "displayName": "Acme",
      "profileId": "6a0b6573846efc28aaa9a3ff",
      "status": "healthy",
      "canPost": true,
      "canFetchAnalytics": true,
      "tokenValid": true,
      "tokenExpiresAt": "2026-10-02T09:00:00.000Z",
      "needsReconnect": true,
      "issues": [
        "string"
      ],
      "ownerUserId": "690c200e58fe030fdf30059f",
      "disconnectReason": "string",
      "disconnectionType": "intentional",
      "unhealthySince": "2026-10-02T09:00:00.000Z",
      "analyticsSync": {
        "status": "ok",
        "lastSyncedAt": "2026-10-02T09:00:00.000Z"
      },
      "messagingRestriction": {
        "code": 1,
        "subcode": 1,
        "message": "Hello from Pozy",
        "firstSeenAt": "2026-10-02T09:00:00.000Z",
        "lastSeenAt": "2026-10-02T09:00:00.000Z",
        "pausedUntil": "2026-10-02T09:00:00.000Z"
      }
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Accounts