Summarise stored health for every account in scope
The summary covers the WHOLE scope, never the returned page; the scope itself is echoed in scope so a filtered total is never mistaken for the fleet. Only limit, cursor, profileId and platform are accepted — any other query parameter (status included) is rejected with 400 unknown_parameter instead of being ignored. Filter by connection status with GET /v1/accounts.
Authentication
The following security requirement applies to this operation.
Read the authentication guideParameters
platformqueryoptional- style
form- explode
false
platformarray
Array itemstring- enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon", "shopify", "google_ads", "tiktok_ads", "pinterest_ads", "x_ads", "openai_ads" ]
Original schema
{
"type": "array",
"items": {
"type": "string",
"enum": [
"instagram",
"facebook",
"threads",
"whatsapp",
"twitter",
"linkedin",
"youtube",
"tiktok",
"pinterest",
"reddit",
"bluesky",
"telegram",
"discord",
"slack",
"google_business",
"snapchat",
"mastodon",
"shopify",
"google_ads",
"tiktok_ads",
"pinterest_ads",
"x_ads",
"openai_ads"
]
}
}profileIdqueryoptional- style
form- explode
false
profileIdarray
Array itemstring- pattern
^[0-9a-f]{24}$
Original schema
{
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-f]{24}$"
}
}cursorqueryoptionalcursorstringOriginal schema
{
"type": "string"
}limitqueryoptionallimitinteger- minimum
1- maximum
100- default
25
Original schema
{
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 25
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
200Response schema
Response 200object
- required
[ "generatedAt", "scope", "summary", "data", "hasMore", "nextCursor" ]
generatedAtstringrequiredThe moment the response was produced; evidenceAgeSeconds is relative to this moment.
- format
date-time
scopeallOfrequired
summary and data ALWAYS describe the same scope; that scope is written here.
allOf / 1object
- required
[ "filtered", "profileIds", "platforms" ]
filteredbooleanrequiredIf true, summary and data describe the scope NARROWED by the filters in the request. If false there is no request narrowing; the scope is all accounts the key can see (on a profile-scoped key the fleet already consists of exactly that scope).
profileIdsarrayrequired
The applied profileId filter; empty array = no profile narrowing.
Array itemstringplatformsarrayrequired
The applied platform filter; empty array = no platform narrowing.
Array itemstring- enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon", "shopify", "google_ads", "tiktok_ads", "pinterest_ads", "x_ads", "openai_ads" ]
summaryallOfrequired
A summary of the scope described by scope; not of the page.
allOf / 1object
- required
[ "total", "healthy", "degraded", "blocked", "unknown", "needsRefresh", "oldestCheckedAt", "issues", "recommendations" ]
totalnumberrequiredALL accounts in scope - not the returned page. What the scope is (narrowed, or everything the key sees) is written in the scope field.
healthynumberrequiredwarningnumbererrornumberneedsReconnectnumberdegradednumberrequiredblockednumberrequiredunknownnumberrequiredAccounts with no measurement at all. NOT SUMMED with healthy.
needsRefreshnumberrequiredThe number of accounts whose evidence is older than 24 hours or absent.
oldestCheckedAtstringrequiredThe stalest measurement in scope; null if there is no measurement at all.
- format
date-time- nullable
true
issuesarrayrequired
Array itemstring- enum
[ "account_disconnected", "connection_error", "token_revoked", "token_expired", "permissions_insufficient", "reconnect_required", "last_check_failed", "health_unknown", "health_stale" ]
recommendationsarrayrequired
Array itemstring- enum
[ "reconnect_account", "reauthorize_scopes", "wait_for_health_check" ]
dataarrayrequired
Array itemobject
- required
[ "id", "profileId", "platform", "status", "state", "canPost", "tokenValid", "needsReconnect", "needsRefresh", "lastCheckedAt", "evidenceAgeSeconds", "nextCheckAt", "issues", "recommendations" ]
idstringrequired- example
a1b2c3d4e5f6a7b8c9d0e1f2
profileIdstringrequired- example
b1c2d3e4f5a6b7c8d9e0f1a2
platformstringrequired- enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon", "shopify", "google_ads", "tiktok_ads", "pinterest_ads", "x_ads", "openai_ads" ]
statusstringrequiredConnection state; the same value as GET /v1/accounts.
- enum
[ "active", "reconnect_required", "disconnected", "error" ]
statestringrequiredThe single discriminator. unknown = there is no health measurement at all; it IS NOT healthy.
- enum
[ "healthy", "degraded", "blocked", "unknown" ]
canPostbooleanrequirednull = not measured yet. The true claim is made only when there is evidence.
- nullable
true
tokenValidbooleanrequirednull = there is no stored health measurement.
- nullable
true
needsReconnectbooleanrequirednull = there is no stored health measurement and the account state does not tell either.
- nullable
true
needsRefreshbooleanrequiredThe evidence is older than 24 hours or absent. The threshold is locked by the PRD.
lastCheckedAtstringrequiredTime of the stored measurement; null means it was never measured.
- format
date-time- nullable
true
evidenceAgeSecondsnumberrequiredAge of the evidence (seconds). The response makes no LIVE provider call; staleness is declared explicitly here.
- nullable
true
nextCheckAtstringrequiredThe moment background maintenance has scheduled for the next check.
- format
date-time- nullable
true
issuesarrayrequired
A fixed catalog, in severity order. It is not derived from customer input.
Array itemstring- enum
[ "account_disconnected", "connection_error", "token_revoked", "token_expired", "permissions_insufficient", "reconnect_required", "last_check_failed", "health_unknown", "health_stale" ]
recommendationsarrayrequired
Array itemstring- enum
[ "reconnect_account", "reauthorize_scopes", "wait_for_health_check" ]
accountsarray
Canonical Zernio projection of the same stored evidence in data. Provider-only fields are omitted when Zumpo has no durable evidence.
Array itemobject
accountIdstringplatformstringprofileIdstringstatusstring- enum
[ "healthy", "warning", "error" ]
displayNamestringtokenExpiresAtstring- format
date-time- nullable
true
canPostbooleantokenValidbooleanneedsReconnectbooleanissuesarray
Array itemstringhasMorebooleanrequirednextCursorstringrequired- nullable
true
Original schema
{
"$ref": "#/components/schemas/AccountHealthOverviewDto"
}400Invalid request
Invalid request
Response 400object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}401Authentication failed
Authentication failed
Response 401object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}403Permission denied
Permission denied
Response 403object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}404Resource not found
Resource not found
Response 404object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}409Conflict
Conflict
Response 409object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}429Rate limit exceeded
Rate limit exceeded
Response 429object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}Response headers
X-RateLimit-Limit
Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.
X-RateLimit-Limitinteger- minimum
1
Original schema
{
"type": "integer",
"minimum": 1
}X-RateLimit-Remaining
Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.
X-RateLimit-Remaininginteger- minimum
0
Original schema
{
"type": "integer",
"minimum": 0
}X-RateLimit-Reset
Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.
X-RateLimit-Resetinteger- format
int64- minimum
0
Original schema
{
"type": "integer",
"format": "int64",
"minimum": 0
}Retry-After
Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.
Retry-Afterinteger- minimum
1- maximum
86400
Original schema
{
"type": "integer",
"minimum": 1,
"maximum": 86400
}500Server error
Server error
Response 500object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}502Platform error
Platform error
Response 502object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}503Service unavailable
Service unavailable
Response 503object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}Referenced schemas
Original local definitions used by this operation. Recursive and deeply nested references can be inspected here without expanding them repeatedly.
AccountHealthOverviewDto
#/components/schemas/AccountHealthOverviewDto
{
"type": "object",
"properties": {
"generatedAt": {
"type": "string",
"format": "date-time",
"description": "The moment the response was produced; evidenceAgeSeconds is relative to this moment."
},
"scope": {
"description": "summary and data ALWAYS describe the same scope; that scope is written here.",
"allOf": [
{
"$ref": "#/components/schemas/AccountHealthScopeDto"
}
]
},
"summary": {
"description": "A summary of the scope described by `scope`; not of the page.",
"allOf": [
{
"$ref": "#/components/schemas/AccountHealthSummaryDto"
}
]
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountHealthEntryDto"
}
},
"accounts": {
"description": "Canonical Zernio projection of the same stored evidence in data. Provider-only fields are omitted when Zumpo has no durable evidence.",
"type": "array",
"items": {
"$ref": "#/components/schemas/CanonicalAccountHealthEntryDto"
}
},
"hasMore": {
"type": "boolean"
},
"nextCursor": {
"type": "string",
"nullable": true
}
},
"required": [
"generatedAt",
"scope",
"summary",
"data",
"hasMore",
"nextCursor"
]
}AccountHealthScopeDto
#/components/schemas/AccountHealthScopeDto
{
"type": "object",
"properties": {
"filtered": {
"type": "boolean",
"description": "If true, summary and data describe the scope NARROWED by the filters in the request. If false there is no request narrowing; the scope is all accounts the key can see (on a profile-scoped key the fleet already consists of exactly that scope)."
},
"profileIds": {
"description": "The applied profileId filter; empty array = no profile narrowing.",
"type": "array",
"items": {
"type": "string"
}
},
"platforms": {
"type": "array",
"description": "The applied platform filter; empty array = no platform narrowing.",
"items": {
"type": "string",
"enum": [
"instagram",
"facebook",
"threads",
"whatsapp",
"twitter",
"linkedin",
"youtube",
"tiktok",
"pinterest",
"reddit",
"bluesky",
"telegram",
"discord",
"slack",
"google_business",
"snapchat",
"mastodon",
"shopify",
"google_ads",
"tiktok_ads",
"pinterest_ads",
"x_ads",
"openai_ads"
]
}
}
},
"required": [
"filtered",
"profileIds",
"platforms"
]
}AccountHealthSummaryDto
#/components/schemas/AccountHealthSummaryDto
{
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "ALL accounts in scope - not the returned page. What the scope is (narrowed, or everything the key sees) is written in the `scope` field."
},
"healthy": {
"type": "number"
},
"warning": {
"type": "number"
},
"error": {
"type": "number"
},
"needsReconnect": {
"type": "number"
},
"degraded": {
"type": "number"
},
"blocked": {
"type": "number"
},
"unknown": {
"type": "number",
"description": "Accounts with no measurement at all. NOT SUMMED with healthy."
},
"needsRefresh": {
"type": "number",
"description": "The number of accounts whose evidence is older than 24 hours or absent."
},
"oldestCheckedAt": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The stalest measurement in scope; null if there is no measurement at all."
},
"issues": {
"type": "array",
"items": {
"type": "string",
"enum": [
"account_disconnected",
"connection_error",
"token_revoked",
"token_expired",
"permissions_insufficient",
"reconnect_required",
"last_check_failed",
"health_unknown",
"health_stale"
]
}
},
"recommendations": {
"type": "array",
"items": {
"type": "string",
"enum": [
"reconnect_account",
"reauthorize_scopes",
"wait_for_health_check"
]
}
}
},
"required": [
"total",
"healthy",
"degraded",
"blocked",
"unknown",
"needsRefresh",
"oldestCheckedAt",
"issues",
"recommendations"
]
}AccountHealthEntryDto
#/components/schemas/AccountHealthEntryDto
{
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "a1b2c3d4e5f6a7b8c9d0e1f2"
},
"profileId": {
"type": "string",
"example": "b1c2d3e4f5a6b7c8d9e0f1a2"
},
"platform": {
"type": "string",
"enum": [
"instagram",
"facebook",
"threads",
"whatsapp",
"twitter",
"linkedin",
"youtube",
"tiktok",
"pinterest",
"reddit",
"bluesky",
"telegram",
"discord",
"slack",
"google_business",
"snapchat",
"mastodon",
"shopify",
"google_ads",
"tiktok_ads",
"pinterest_ads",
"x_ads",
"openai_ads"
]
},
"status": {
"type": "string",
"enum": [
"active",
"reconnect_required",
"disconnected",
"error"
],
"description": "Connection state; the same value as GET /v1/accounts."
},
"state": {
"type": "string",
"enum": [
"healthy",
"degraded",
"blocked",
"unknown"
],
"description": "The single discriminator. unknown = there is no health measurement at all; it IS NOT healthy."
},
"canPost": {
"type": "boolean",
"nullable": true,
"description": "null = not measured yet. The true claim is made only when there is evidence."
},
"tokenValid": {
"type": "boolean",
"nullable": true,
"description": "null = there is no stored health measurement."
},
"needsReconnect": {
"type": "boolean",
"nullable": true,
"description": "null = there is no stored health measurement and the account state does not tell either."
},
"needsRefresh": {
"type": "boolean",
"description": "The evidence is older than 24 hours or absent. The threshold is locked by the PRD."
},
"lastCheckedAt": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "Time of the stored measurement; null means it was never measured."
},
"evidenceAgeSeconds": {
"type": "number",
"nullable": true,
"description": "Age of the evidence (seconds). The response makes no LIVE provider call; staleness is declared explicitly here."
},
"nextCheckAt": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The moment background maintenance has scheduled for the next check."
},
"issues": {
"type": "array",
"description": "A fixed catalog, in severity order. It is not derived from customer input.",
"items": {
"type": "string",
"enum": [
"account_disconnected",
"connection_error",
"token_revoked",
"token_expired",
"permissions_insufficient",
"reconnect_required",
"last_check_failed",
"health_unknown",
"health_stale"
]
}
},
"recommendations": {
"type": "array",
"items": {
"type": "string",
"enum": [
"reconnect_account",
"reauthorize_scopes",
"wait_for_health_check"
]
}
}
},
"required": [
"id",
"profileId",
"platform",
"status",
"state",
"canPost",
"tokenValid",
"needsReconnect",
"needsRefresh",
"lastCheckedAt",
"evidenceAgeSeconds",
"nextCheckAt",
"issues",
"recommendations"
]
}CanonicalAccountHealthEntryDto
#/components/schemas/CanonicalAccountHealthEntryDto
{
"type": "object",
"properties": {
"accountId": {
"type": "string"
},
"platform": {
"type": "string"
},
"profileId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"healthy",
"warning",
"error"
]
},
"displayName": {
"type": "string"
},
"tokenExpiresAt": {
"type": "string",
"format": "date-time",
"nullable": true
},
"canPost": {
"type": "boolean"
},
"tokenValid": {
"type": "boolean"
},
"needsReconnect": {
"type": "boolean"
},
"issues": {
"type": "array",
"items": {
"type": "string"
}
}
}
}ZumpoErrorDto
#/components/schemas/ZumpoErrorDto
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Human-readable message. UNSTABLE — do not branch on it.",
"example": "WhatsApp session window expired; use a template message."
},
"type": {
"type": "string",
"description": "Stable error category (does not change across versions).",
"enum": [
"invalid_request_error",
"authentication_error",
"permission_error",
"not_found",
"conflict",
"rate_limit_error",
"platform_error",
"platform_rejected",
"account_disconnected",
"media_error",
"api_error"
],
"example": "invalid_request_error"
},
"code": {
"type": "string",
"description": "Stable machine-readable code.",
"example": "whatsapp_window_expired"
},
"param": {
"type": "string",
"description": "Offending parameter, present only when relevant.",
"example": "body"
},
"docUrl": {
"type": "string",
"description": "https://docs.zumpo.io/errors/{code}",
"example": "https://docs.zumpo.io/errors/whatsapp_window_expired"
},
"requestId": {
"type": "string",
"description": "Support correlation id: req_ + 16 hex.",
"example": "req_7f3a9c2e1b8d4056"
},
"details": {
"type": "object",
"additionalProperties": true,
"description": "Additional structured context, present only when an error has more to say than a single `param` can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.",
"example": {
"created": [
{
"kind": "campaign",
"platformId": "120210000000000001"
},
{
"kind": "adSet",
"platformId": "120210000000000002"
}
]
}
}
},
"required": [
"error",
"type",
"code",
"docUrl",
"requestId"
]
}