zumpo/docs
Dashboard
Skip to content
inbox / API reference
GETlistInboxConversations

List conversations

Reads conversation threads live from every eligible connected account in one request. Omit accountId to fan out across all eligible accounts; supply it to read a single account. An account is eligible only when its platform adapter implements conversation listing, so a platform without that capability is skipped rather than reported as a failure. A per-account failure does not fail the request: it is counted in meta.accountsFailed and named in meta.failedAccounts, and the remaining accounts are still returned.

Authentication

The following security requirement applies to this operation.

  1. bearerhttp

    scheme
    bearer
    bearerFormat
    zumpo-api-key
Read the authentication guide

Parameters

cursorqueryoptional

Opaque cursor returned by this endpoint. It encodes one resume position per account and is only valid for the query that produced it.

cursorstring
minLength
1
maxLength
8192
Original schema
{
  "type": "string",
  "minLength": 1,
  "maxLength": 8192
}
limitqueryoptional
limitinteger
minimum
1
maximum
100
default
50
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 100,
  "default": 50
}
sortOrderqueryoptional

Order by last message time. Conversations with no known last message always sort last, in both directions.

sortOrderstring
enum
[ "asc", "desc" ]
default
desc
Original schema
{
  "type": "string",
  "enum": [
    "asc",
    "desc"
  ],
  "default": "desc"
}
statusqueryoptional

Conversation status filter. Only active is supported today; archived returns 400 because no connected platform exposes archived conversations here.

statusstring
enum
[ "active", "archived" ]
Original schema
{
  "type": "string",
  "enum": [
    "active",
    "archived"
  ]
}
platformqueryoptional

Restrict the fan-out to accounts on one platform.

platformstring
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": "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

Restrict the fan-out to accounts on one profile.

profileIdstring
pattern
^[0-9a-f]{24}$
Original schema
{
  "type": "string",
  "pattern": "^[0-9a-f]{24}$"
}
accountIdqueryoptional

Restrict the fan-out to one account. Omit to read every eligible account.

accountIdstring
pattern
^[0-9a-f]{24}$
Original schema
{
  "type": "string",
  "pattern": "^[0-9a-f]{24}$"
}

Responses

Status codes and shapes declared for this operation. Read each description for the meaning of that response.

200Response schema
application/json
Response 200object
#/components/schemas/InboxConversationsResponseDto
additionalProperties
false
required
[ "data", "pagination", "meta" ]
dataarrayrequired
Array itemobject
#/components/schemas/InboxConversationDto
additionalProperties
false
required
[ "accountId", "platform", "id", "participantId" ]
accountIdstringrequired

Zumpo account this conversation was read from.

pattern
^[0-9a-f]{24}$
platformstringrequired

Platform of the account this conversation was read from.

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" ]
idstringrequired

Provider conversation id, opaque and platform specific.

minLength
1
maxLength
256
participantIdstringrequired

Provider id of the other participant.

minLength
1
maxLength
256
participantNamestring

Display name of the participant when the provider returns one.

maxLength
256
lastMessageAtstring

Timestamp of the last known message, when the provider reports it.

nullable
true
format
date-time
unreadCountnumber

Unread message count when the provider reports it.

minimum
0
windowExpiresAtstring

End of the platform messaging window, when the platform enforces one.

nullable
true
format
date-time
paginationobjectrequired
#/components/schemas/InboxConversationsPaginationDto
additionalProperties
false
required
[ "hasMore", "nextCursor" ]
hasMorebooleanrequired

True when at least one eligible account still has pages to read. A round that fails for an account keeps this true while that account is retried; after a few consecutive failures the account is abandoned for this cursor chain so pagination can terminate.

nextCursorstringrequired

Opaque cursor that resumes the fan-out. Pass it back unchanged as the cursor query parameter.

nullable
true
metaobjectrequired
#/components/schemas/InboxConversationsMetaDto
additionalProperties
false
required
[ "accountsQueried", "accountsFailed", "failedAccounts", "lastUpdated" ]
accountsQueriednumberrequired

Eligible accounts this request actually issued a provider read for, failures included. Accounts already exhausted by an earlier page are not re-read and not counted.

minimum
0
accountsFailednumberrequired

Eligible accounts this round could not read, whether or not the provider was reached. Each one is named in failedAccounts.

minimum
0
failedAccountsarrayrequired

One entry per failed account. Empty when nothing failed.

Array itemobject
#/components/schemas/InboxConversationFailedAccountDto
additionalProperties
false
required
[ "accountId", "platform", "code" ]
accountIdstringrequired
pattern
^[0-9a-f]{24}$
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" ]
codestringrequired

Stable Zumpo error code explaining why this account was not read.

pattern
^[a-z][a-z0-9_]{0,63}$
lastUpdatedstringrequired

Server time this fan-out was assembled.

format
date-time
Original schema
{
  "$ref": "#/components/schemas/InboxConversationsResponseDto"
}
400Response schema
application/json
Response 400object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
401Response schema
application/json
Response 401object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
403Response schema
application/json
Response 403object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
404Response schema
application/json
Response 404object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
409Conflict

Conflict

application/json
Response 409object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
429Response schema
application/json
Response 429object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

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

application/json
Response 500object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
502Response schema
application/json
Response 502object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
503Response schema
application/json
Response 503object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

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
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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.

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.

InboxConversationsResponseDto

#/components/schemas/InboxConversationsResponseDto

{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InboxConversationDto"
      }
    },
    "pagination": {
      "$ref": "#/components/schemas/InboxConversationsPaginationDto"
    },
    "meta": {
      "$ref": "#/components/schemas/InboxConversationsMetaDto"
    }
  },
  "additionalProperties": false,
  "required": [
    "data",
    "pagination",
    "meta"
  ]
}
InboxConversationDto

#/components/schemas/InboxConversationDto

{
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$",
      "description": "Zumpo account this conversation was read from."
    },
    "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"
      ],
      "description": "Platform of the account this conversation was read from."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "description": "Provider conversation id, opaque and platform specific."
    },
    "participantId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "description": "Provider id of the other participant."
    },
    "participantName": {
      "type": "string",
      "maxLength": 256,
      "description": "Display name of the participant when the provider returns one."
    },
    "lastMessageAt": {
      "type": "string",
      "nullable": true,
      "format": "date-time",
      "description": "Timestamp of the last known message, when the provider reports it."
    },
    "unreadCount": {
      "type": "number",
      "minimum": 0,
      "description": "Unread message count when the provider reports it."
    },
    "windowExpiresAt": {
      "type": "string",
      "nullable": true,
      "format": "date-time",
      "description": "End of the platform messaging window, when the platform enforces one."
    }
  },
  "additionalProperties": false,
  "required": [
    "accountId",
    "platform",
    "id",
    "participantId"
  ]
}
InboxConversationsPaginationDto

#/components/schemas/InboxConversationsPaginationDto

{
  "type": "object",
  "properties": {
    "hasMore": {
      "type": "boolean",
      "description": "True when at least one eligible account still has pages to read. A round that fails for an account keeps this true while that account is retried; after a few consecutive failures the account is abandoned for this cursor chain so pagination can terminate."
    },
    "nextCursor": {
      "type": "string",
      "nullable": true,
      "description": "Opaque cursor that resumes the fan-out. Pass it back unchanged as the cursor query parameter."
    }
  },
  "additionalProperties": false,
  "required": [
    "hasMore",
    "nextCursor"
  ]
}
InboxConversationsMetaDto

#/components/schemas/InboxConversationsMetaDto

{
  "type": "object",
  "properties": {
    "accountsQueried": {
      "type": "number",
      "minimum": 0,
      "description": "Eligible accounts this request actually issued a provider read for, failures included. Accounts already exhausted by an earlier page are not re-read and not counted."
    },
    "accountsFailed": {
      "type": "number",
      "minimum": 0,
      "description": "Eligible accounts this round could not read, whether or not the provider was reached. Each one is named in failedAccounts."
    },
    "failedAccounts": {
      "description": "One entry per failed account. Empty when nothing failed.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InboxConversationFailedAccountDto"
      }
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time",
      "description": "Server time this fan-out was assembled."
    }
  },
  "additionalProperties": false,
  "required": [
    "accountsQueried",
    "accountsFailed",
    "failedAccounts",
    "lastUpdated"
  ]
}
InboxConversationFailedAccountDto

#/components/schemas/InboxConversationFailedAccountDto

{
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$"
    },
    "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"
      ]
    },
    "code": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]{0,63}$",
      "description": "Stable Zumpo error code explaining why this account was not read."
    }
  },
  "additionalProperties": false,
  "required": [
    "accountId",
    "platform",
    "code"
  ]
}
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"
  ]
}