Declare posts published outside zumpo
PUSH direction: the customer declares posts they published outside zumpo and zumpo stores a read-only mirror. zumpo makes NO provider request here. Idempotency is STATE-based, not request-based: the natural key is (account, platformPostId) and an exact re-submission returns every item as "unchanged" and emits no webhooks — the five-minute x-request-id replay fence used by POST /v1/posts does NOT apply. post.external.deleted carries source: 'client_assertion' because the deletion is asserted by you, not observed by zumpo.
Authentication
The following security requirement applies to this operation.
Read the authentication guideParameters
This operation declares no path, query, header or cookie parameters.
Request body
Bodyobjectrequired
- additionalProperties
false- required
[ "posts" ]
postsarrayrequired
Array itemobject
- required
[ "accountId", "platformPostId" ]
accountIdstringrequired24 hex account id
- example
a1b2c3d4e5f6a7b8c9d0e1f2
platformPostIdstringrequiredThe id the platform itself assigned. Combined with accountId this is the natural key: re-syncing the same pair updates instead of duplicating.
- example
1789234567890123456
publishedAtstringISO-8601 date-time with an offset or Z, e.g. 2026-08-01T09:00:00Z or 2026-08-01T12:00:00+03:00. Required unless deleted is true. Immutable: re-syncing the same natural key with a different instant answers 409 rather than silently rewriting history.
- format
date-time- example
2026-08-01T09:00:00.000Z
contentstringOptional. Changing it is what makes the next sync report "updated". Must not contain a NUL (U+0000) character; it is rejected rather than stripped, so what you send is exactly what is stored.
- nullable
true- example
Something we posted straight from the app.
mediaItemsarray
Actual provider media metadata. Omitted on re-sync to preserve the prior snapshot; [] explicitly clears it.
- maxItems
20
Array itemobject
- additionalProperties
false- required
[ "type", "url" ]
typestringrequired- enum
[ "image", "video" ]
urlstringrequired- nullable
true- format
uri- maxLength
4096
thumbnailstring- nullable
true- format
uri- maxLength
4096
altTextstring- maxLength
10000
mediaStatusstring- enum
[ "available", "unavailable" ]
unavailableReasonstring- enum
[ "platform_withheld" ]
deletedbooleanAssert the post no longer exists on the platform. When true, publishedAt and content must be absent. The resulting post.external.deleted event carries source: 'client_assertion' because zumpo did not observe this.
- default
false- example
true
Original schema
{
"$ref": "#/components/schemas/SyncExternalPostsBodyDto"
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
207Response schema
Response 207object
- required
[ "total", "created", "updated", "unchanged", "deleted", "failed", "results" ]
totalnumberrequired- example
4
creatednumberrequired- example
1
updatednumberrequired- example
1
unchangednumberrequired- example
1
deletednumberrequired- example
1
failednumberrequired- example
0
resultsarrayrequired
Array itemobject
- required
[ "index", "status" ]
indexnumberrequired0-based index into the submitted posts array.
- example
0
statusnumberrequiredPer-item status. 200 is overloaded (updated / unchanged / deleted) — branch on result, not on this.
- example
201
resultstring- enum
[ "created", "updated", "unchanged", "deleted" ]- example
created
externalPostobject
- required
[ "id", "accountId", "platform", "platformPostId", "publishedAt", "syncedAt" ]
idstringrequired- example
a1b2c3d4e5f6a7b8c9d0e1f2
accountIdstringrequired- example
b2c3d4e5f6a7b8c9d0e1f2a3
platformstringrequiredDerived from the account, never sent by the client.
- example
twitter
platformPostIdstringrequired- example
1789234567890123456
mediaItemsarray
Exact provider media metadata supplied to this sync operation or retained from an earlier sync.
Array itemobject
- additionalProperties
false- required
[ "type", "url" ]
typestringrequired- enum
[ "image", "video" ]
urlstringrequired- nullable
true- format
uri- maxLength
4096
thumbnailstring- nullable
true- format
uri- maxLength
4096
altTextstring- maxLength
10000
mediaStatusstring- enum
[ "available", "unavailable" ]
unavailableReasonstring- enum
[ "platform_withheld" ]
publishedAtstringrequired- format
date-time- example
2026-08-01T09:00:00.000Z
syncedAtstringrequired- format
date-time- example
2026-08-04T12:00:00.000Z
errorobject
- required
[ "type", "code", "message" ]
typestringrequired- example
invalid_request_error
codestringrequired- example
invalid_platform
messagestringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
platform is not supported
paramstring- example
platforms.0.platform
Original schema
{
"$ref": "#/components/schemas/SyncExternalPostsResponseDto"
}400Response schema
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"
}403Response schema
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.
SyncExternalPostsBodyDto
#/components/schemas/SyncExternalPostsBodyDto
{
"type": "object",
"properties": {
"posts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SyncExternalPostItemDto"
}
}
},
"additionalProperties": false,
"required": [
"posts"
]
}SyncExternalPostItemDto
#/components/schemas/SyncExternalPostItemDto
{
"type": "object",
"properties": {
"accountId": {
"type": "string",
"example": "a1b2c3d4e5f6a7b8c9d0e1f2",
"description": "24 hex account id"
},
"platformPostId": {
"type": "string",
"example": "1789234567890123456",
"description": "The id the platform itself assigned. Combined with accountId this is the natural key: re-syncing the same pair updates instead of duplicating."
},
"publishedAt": {
"type": "string",
"format": "date-time",
"example": "2026-08-01T09:00:00.000Z",
"description": "ISO-8601 date-time with an offset or Z, e.g. 2026-08-01T09:00:00Z or 2026-08-01T12:00:00+03:00. Required unless deleted is true. Immutable: re-syncing the same natural key with a different instant answers 409 rather than silently rewriting history."
},
"content": {
"type": "string",
"nullable": true,
"example": "Something we posted straight from the app.",
"description": "Optional. Changing it is what makes the next sync report \"updated\". Must not contain a NUL (U+0000) character; it is rejected rather than stripped, so what you send is exactly what is stored."
},
"mediaItems": {
"maxItems": 20,
"description": "Actual provider media metadata. Omitted on re-sync to preserve the prior snapshot; [] explicitly clears it.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ExternalPostMediaItemDto"
}
},
"deleted": {
"type": "boolean",
"default": false,
"example": true,
"description": "Assert the post no longer exists on the platform. When true, publishedAt and content must be absent. The resulting post.external.deleted event carries source: 'client_assertion' because zumpo did not observe this."
}
},
"required": [
"accountId",
"platformPostId"
]
}ExternalPostMediaItemDto
#/components/schemas/ExternalPostMediaItemDto
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video"
]
},
"url": {
"type": "string",
"nullable": true,
"format": "uri",
"maxLength": 4096
},
"thumbnail": {
"type": "string",
"nullable": true,
"format": "uri",
"maxLength": 4096
},
"altText": {
"type": "string",
"maxLength": 10000
},
"mediaStatus": {
"type": "string",
"enum": [
"available",
"unavailable"
]
},
"unavailableReason": {
"type": "string",
"enum": [
"platform_withheld"
]
}
},
"additionalProperties": false,
"required": [
"type",
"url"
]
}SyncExternalPostsResponseDto
#/components/schemas/SyncExternalPostsResponseDto
{
"type": "object",
"properties": {
"total": {
"type": "number",
"example": 4
},
"created": {
"type": "number",
"example": 1
},
"updated": {
"type": "number",
"example": 1
},
"unchanged": {
"type": "number",
"example": 1
},
"deleted": {
"type": "number",
"example": 1
},
"failed": {
"type": "number",
"example": 0
},
"results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SyncExternalPostResultDto"
}
}
},
"required": [
"total",
"created",
"updated",
"unchanged",
"deleted",
"failed",
"results"
]
}SyncExternalPostResultDto
#/components/schemas/SyncExternalPostResultDto
{
"type": "object",
"properties": {
"index": {
"type": "number",
"example": 0,
"description": "0-based index into the submitted posts array."
},
"status": {
"type": "number",
"example": 201,
"description": "Per-item status. 200 is overloaded (updated / unchanged / deleted) — branch on `result`, not on this."
},
"result": {
"type": "string",
"enum": [
"created",
"updated",
"unchanged",
"deleted"
],
"example": "created"
},
"externalPost": {
"$ref": "#/components/schemas/ExternalPostDto"
},
"error": {
"$ref": "#/components/schemas/BulkPostErrorDto"
}
},
"required": [
"index",
"status"
]
}ExternalPostDto
#/components/schemas/ExternalPostDto
{
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "a1b2c3d4e5f6a7b8c9d0e1f2"
},
"accountId": {
"type": "string",
"example": "b2c3d4e5f6a7b8c9d0e1f2a3"
},
"platform": {
"type": "string",
"example": "twitter",
"description": "Derived from the account, never sent by the client."
},
"platformPostId": {
"type": "string",
"example": "1789234567890123456"
},
"mediaItems": {
"description": "Exact provider media metadata supplied to this sync operation or retained from an earlier sync.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ExternalPostMediaItemDto"
}
},
"publishedAt": {
"type": "string",
"format": "date-time",
"example": "2026-08-01T09:00:00.000Z"
},
"syncedAt": {
"type": "string",
"format": "date-time",
"example": "2026-08-04T12:00:00.000Z"
}
},
"required": [
"id",
"accountId",
"platform",
"platformPostId",
"publishedAt",
"syncedAt"
]
}BulkPostErrorDto
#/components/schemas/BulkPostErrorDto
{
"type": "object",
"properties": {
"type": {
"type": "string",
"example": "invalid_request_error"
},
"code": {
"type": "string",
"example": "invalid_platform"
},
"message": {
"type": "string",
"description": "Human-readable message. UNSTABLE — do not branch on it.",
"example": "platform is not supported"
},
"param": {
"type": "string",
"example": "platforms.0.platform"
}
},
"required": [
"type",
"code",
"message"
]
}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"
]
}