Accounts & connections · Accounts

Check account health

Checks account health.

GEThttps://api.pozy.ai/v1/accounts/{accountId}/health
getAccountHealth

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

Path parameters

NameTypeNotes
accountIdrequiredstring

Example

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

Response

200 on success

  • accountIdstring
  • platformstring
  • integrationLanestring

    One of business, developer.

  • sendCapobject
    • limitinteger
    • usedinteger
    • resetsAtstring (date-time)
  • pushstring

    One of active, pending, failed, not_applicable.

  • usernamestring
  • displayNamestring
  • statusstring

    One of healthy, warning, error.

  • tokenStatusobject
    • validboolean
    • expiresAtstring (date-time)
    • expiresInstring
    • needsRefreshboolean
  • permissionsobject
    • postingarray of object
      3 child fields
      • scopestring
      • grantedboolean
      • requiredboolean
    • analyticsarray of object
      3 child fields
      • scopestring
      • grantedboolean
      • requiredboolean
    • optionalarray of object
      3 child fields
      • scopestring
      • grantedboolean
      • requiredboolean
    • canPostboolean
    • canFetchAnalyticsboolean
    • missingRequiredarray of string
  • issuesarray of string
  • recommendationsarray of string
  • ownerUserIdstring
  • disconnectReasonstring

    Can be null.

  • disconnectionTypestring

    One of intentional, unintentional. Can be null.

  • unhealthySincestring (date-time)

    Can be null.

  • analyticsSyncobject
    • statusstring

      One of ok, failing, stalled, never_synced.

    • lastSyncedAtstring (date-time)

      Can be null.

  • messagingRestrictionobject

    Can be null.

    • codeinteger

      Can be null.

    • subcodeinteger

      Can be null.

    • messagestring

      Can be null.

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

      Can be null.

  • platformConnectionobject
    • statusstring

      One of connected, disconnected, unknown.

    • checkedAtstring (date-time)
    • phoneStatusstring

      Can be null.

    • metaErrorobject

      Can be null.

      3 child fields
      • codeinteger
      • subcodeinteger
      • messagestring
    • inboundWebhookSubscribedboolean

      Can be null.

200 response
{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "platform": "instagram",
  "integrationLane": "business",
  "sendCap": {
    "limit": 1,
    "used": 1,
    "resetsAt": "2026-10-02T09:00:00.000Z"
  },
  "push": "active",
  "username": "acme",
  "displayName": "Acme",
  "status": "healthy",
  "tokenStatus": {
    "valid": true,
    "expiresAt": "2026-10-02T09:00:00.000Z",
    "expiresIn": "string",
    "needsRefresh": true
  },
  "permissions": {
    "posting": [
      {
        "scope": "string",
        "granted": true,
        "required": true
      }
    ],
    "analytics": [
      {
        "scope": "string",
        "granted": true,
        "required": true
      }
    ],
    "optional": [
      {
        "scope": "string",
        "granted": true,
        "required": true
      }
    ],
    "canPost": true,
    "canFetchAnalytics": true,
    "missingRequired": [
      "string"
    ]
  },
  "issues": [
    "string"
  ],
  "recommendations": [
    "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"
  },
  "platformConnection": {
    "status": "connected",
    "checkedAt": "2026-10-02T09:00:00.000Z",
    "phoneStatus": "+14155550123",
    "metaError": {
      "code": 1,
      "subcode": 1,
      "message": "Hello from Pozy"
    },
    "inboundWebhookSubscribed": true
  }
}

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.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Accounts