zumpo/docs
Dashboard
Skip to content
messages / API reference
GETsearchInboxConversations

Search conversations

Searches durable Facebook, Instagram, Telegram, and WhatsApp inbox projections. Message text uses case/accent-insensitive exact tokens; identity uses a case/accent-insensitive name or WhatsApp phone substring. Direction disables identity matching. Slack and SMS are rejected because this service has no durable searchable message projection for them.

Authentication

The following security requirement applies to this operation.

  1. bearerhttp

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

Parameters

cursorqueryoptional
cursorstring
maxLength
2048
Original schema
{
  "type": "string",
  "maxLength": 2048
}
limitqueryoptional
limitinteger
minimum
1
maximum
50
default
20
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 50,
  "default": 20
}
accountIdqueryoptional
accountIdstring
Original schema
{
  "type": "string"
}
platformqueryoptional

Target-compatible filter values. SMS and Slack return a typed 501 until a durable local message projection exists.

platformstring
enum
[ "facebook", "instagram", "telegram", "whatsapp", "sms", "slack" ]
Original schema
{
  "type": "string",
  "enum": [
    "facebook",
    "instagram",
    "telegram",
    "whatsapp",
    "sms",
    "slack"
  ]
}
profileIdqueryoptional
profileIdstring
Original schema
{
  "type": "string"
}
directionqueryoptional
directionstring
enum
[ "incoming", "outgoing" ]
Original schema
{
  "type": "string",
  "enum": [
    "incoming",
    "outgoing"
  ]
}
queryqueryrequired
querystringrequired
minLength
2
maxLength
200
Original schema
{
  "type": "string",
  "minLength": 2,
  "maxLength": 200
}

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/InboxConversationSearchResponseDto
additionalProperties
false
required
[ "data", "pagination", "meta" ]
dataarrayrequired
Array itemobject
#/components/schemas/InboxConversationSearchItemDto
additionalProperties
false
required
[ "conversation", "matchCount", "matches" ]
conversationobjectrequired
#/components/schemas/InboxConversationSearchConversationDto
additionalProperties
false
required
[ "id", "platform", "accountId", "participantName", "participantUsername", "participantPicture", "status", "lastMessage", "lastMessageAt" ]
idstringrequired
minLength
1
maxLength
256
platformstringrequired
enum
[ "facebook", "instagram", "telegram", "whatsapp" ]
accountIdstringrequired
pattern
^[0-9a-f]{24}$
participantNamestringrequired
nullable
true
maxLength
512
participantUsernamestringrequired
nullable
true
maxLength
512
participantPicturestringrequired
nullable
true
format
uri
statusstringrequired
enum
[ "active", "archived" ]
lastMessagestringrequired
nullable
true
maxLength
4096
lastMessageAtstringrequired
nullable
true
format
date-time
matchCountnumberrequired
minimum
0
matchesarrayrequired
maxItems
3
Array itemobject
#/components/schemas/InboxConversationSearchMessageDto
additionalProperties
false
required
[ "id", "text", "direction", "timestamp" ]
idstringrequired
minLength
1
maxLength
2054
textstringrequired
nullable
true
maxLength
4096
directionstringrequired
enum
[ "incoming", "outgoing" ]
timestampstringrequired
format
date-time
paginationobjectrequired
#/components/schemas/InboxConversationSearchPaginationDto
additionalProperties
false
required
[ "hasMore", "nextCursor" ]
hasMorebooleanrequired
nextCursorstringrequired
nullable
true
maxLength
2048
metaobjectrequired
#/components/schemas/InboxConversationSearchMetaDto
additionalProperties
false
required
[ "accountsQueried", "accountsFailed", "failedAccounts", "lastUpdated", "accountsSkipped" ]
accountsQueriednumberrequired

Accessible accounts whose durable local projection was searched.

minimum
0
accountsFailednumberrequired
minimum
0
failedAccountsarrayrequired
Array itemobject
#/components/schemas/InboxConversationSearchFailedAccountDto
additionalProperties
false
required
[ "accountId", "accountUsername", "platform", "error" ]
accountIdstringrequired
pattern
^[0-9a-f]{24}$
accountUsernamestringrequired
nullable
true
maxLength
512
platformstringrequired
errorstringrequired
maxLength
1024
lastUpdatedstringrequired

Server time at which the durable search page was assembled.

format
date-time
accountsSkippedarrayrequired

Accessible connected messaging accounts without a searchable local message projection.

Array itemobject
#/components/schemas/InboxConversationSearchSkippedAccountDto
additionalProperties
false
required
[ "accountId", "platform" ]
accountIdstringrequired
pattern
^[0-9a-f]{24}$
platformstringrequired
enum
[ "slack" ]
Original schema
{
  "$ref": "#/components/schemas/InboxConversationSearchResponseDto"
}
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"
}
404Resource not found

Resource not found

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"
}
429Rate limit exceeded

Rate limit exceeded

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"
}
501Response schema
application/json
Response 501object
#/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"
}
502Platform error

Platform error

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.

InboxConversationSearchResponseDto

#/components/schemas/InboxConversationSearchResponseDto

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

#/components/schemas/InboxConversationSearchItemDto

{
  "type": "object",
  "properties": {
    "conversation": {
      "$ref": "#/components/schemas/InboxConversationSearchConversationDto"
    },
    "matchCount": {
      "type": "number",
      "minimum": 0
    },
    "matches": {
      "maxItems": 3,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InboxConversationSearchMessageDto"
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "conversation",
    "matchCount",
    "matches"
  ]
}
InboxConversationSearchConversationDto

#/components/schemas/InboxConversationSearchConversationDto

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "platform": {
      "type": "string",
      "enum": [
        "facebook",
        "instagram",
        "telegram",
        "whatsapp"
      ]
    },
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$"
    },
    "participantName": {
      "type": "string",
      "nullable": true,
      "maxLength": 512
    },
    "participantUsername": {
      "type": "string",
      "nullable": true,
      "maxLength": 512
    },
    "participantPicture": {
      "type": "string",
      "nullable": true,
      "format": "uri"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "archived"
      ]
    },
    "lastMessage": {
      "type": "string",
      "nullable": true,
      "maxLength": 4096
    },
    "lastMessageAt": {
      "type": "string",
      "nullable": true,
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "required": [
    "id",
    "platform",
    "accountId",
    "participantName",
    "participantUsername",
    "participantPicture",
    "status",
    "lastMessage",
    "lastMessageAt"
  ]
}
InboxConversationSearchMessageDto

#/components/schemas/InboxConversationSearchMessageDto

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2054
    },
    "text": {
      "type": "string",
      "nullable": true,
      "maxLength": 4096
    },
    "direction": {
      "type": "string",
      "enum": [
        "incoming",
        "outgoing"
      ]
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "required": [
    "id",
    "text",
    "direction",
    "timestamp"
  ]
}
InboxConversationSearchPaginationDto

#/components/schemas/InboxConversationSearchPaginationDto

{
  "type": "object",
  "properties": {
    "hasMore": {
      "type": "boolean"
    },
    "nextCursor": {
      "type": "string",
      "nullable": true,
      "maxLength": 2048
    }
  },
  "additionalProperties": false,
  "required": [
    "hasMore",
    "nextCursor"
  ]
}
InboxConversationSearchMetaDto

#/components/schemas/InboxConversationSearchMetaDto

{
  "type": "object",
  "properties": {
    "accountsQueried": {
      "type": "number",
      "minimum": 0,
      "description": "Accessible accounts whose durable local projection was searched."
    },
    "accountsFailed": {
      "type": "number",
      "minimum": 0
    },
    "failedAccounts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InboxConversationSearchFailedAccountDto"
      }
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time",
      "description": "Server time at which the durable search page was assembled."
    },
    "accountsSkipped": {
      "description": "Accessible connected messaging accounts without a searchable local message projection.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InboxConversationSearchSkippedAccountDto"
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "accountsQueried",
    "accountsFailed",
    "failedAccounts",
    "lastUpdated",
    "accountsSkipped"
  ]
}
InboxConversationSearchFailedAccountDto

#/components/schemas/InboxConversationSearchFailedAccountDto

{
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$"
    },
    "accountUsername": {
      "type": "string",
      "nullable": true,
      "maxLength": 512
    },
    "platform": {
      "type": "string"
    },
    "error": {
      "type": "string",
      "maxLength": 1024
    }
  },
  "additionalProperties": false,
  "required": [
    "accountId",
    "accountUsername",
    "platform",
    "error"
  ]
}
InboxConversationSearchSkippedAccountDto

#/components/schemas/InboxConversationSearchSkippedAccountDto

{
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$"
    },
    "platform": {
      "type": "string",
      "enum": [
        "slack"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "accountId",
    "platform"
  ]
}
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"
  ]
}