---
title: "Check account health"
method: GET
path: "/v1/accounts/{accountId}/health"
tags: ["Accounts"]
---

# Check account health

`GET /v1/accounts/{accountId}/health`

Returns detailed health info for a specific account including token status, permissions, and recommendations.

## Path parameters

- `accountId` string, required

## Response `200`

Account health details

- object
  - `accountId` string
  - `platform` string
  - `username` string
  - `displayName` string
  - `status` 'healthy' | 'warning' | 'error' — Overall health status
  - `tokenStatus` object
    - `valid` boolean — Whether the token is valid
    - `expiresAt` string, date-time
    - `expiresIn` string — Human-readable time until expiry
    - `needsRefresh` boolean — Whether token expires within 24 hours
  - `permissions` object
    - `posting` object[]
      - `scope` string
      - `granted` boolean
      - `required` boolean
    - `analytics` object[]
      - `scope` string
      - `granted` boolean
      - `required` boolean
    - `optional` object[]
      - `scope` string
      - `granted` boolean
      - `required` boolean
    - `canPost` boolean
    - `canFetchAnalytics` boolean
    - `missingRequired` string[]
  - `issues` string[] — List of issues found
  - `recommendations` string[] — Actionable recommendations to fix issues

## Other responses

- `401` — Unauthorized
- `404` — Resource not found

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/revisions/875093317201/schema)
