Validate a post against platform rules (legacy route)
Deprecated transport alias for POST /v1/tools/validate/post.
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
Additive validation request union: the original single-target body or a create-like multi-target dry run.
oneOf / 1object
Discriminated validation request. Pinterest uses its closed public options contract; other platforms retain the generic v1 options object.
- additionalProperties
false- discriminator
{ "propertyName": "platform", "mapping": { "instagram": "#/components/schemas/GenericValidatePostDto", "facebook": "#/components/schemas/GenericValidatePostDto", "threads": "#/components/schemas/GenericValidatePostDto", "whatsapp": "#/components/schemas/GenericValidatePostDto", "twitter": "#/components/schemas/GenericValidatePostDto", "linkedin": "#/components/schemas/GenericValidatePostDto", "youtube": "#/components/schemas/GenericValidatePostDto", "tiktok": "#/components/schemas/GenericValidatePostDto", "reddit": "#/components/schemas/GenericValidatePostDto", "bluesky": "#/components/schemas/GenericValidatePostDto", "telegram": "#/components/schemas/GenericValidatePostDto", "discord": "#/components/schemas/GenericValidatePostDto", "slack": "#/components/schemas/GenericValidatePostDto", "google_business": "#/components/schemas/GenericValidatePostDto", "snapchat": "#/components/schemas/GenericValidatePostDto", "mastodon": "#/components/schemas/GenericValidatePostDto", "pinterest": "#/components/schemas/PinterestValidatePostDto" } }- required
[ "platform", "content" ]
platformstringrequired- enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon" ]- example
bluesky
contentstringrequired- example
Hello from zumpo- maxLength
50000
optionsobject- additionalProperties
true- example
{}
oneOf / 1object
- additionalProperties
false- required
[ "platform", "content" ]
platformstringrequired- enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon" ]- example
bluesky
contentstringrequired- example
Hello from zumpo- maxLength
50000
optionsobject- additionalProperties
true- example
{}
oneOf / 2object
- additionalProperties
false- required
[ "platform", "content", "options" ]
platformstringrequired- enum
[ "pinterest" ]- example
pinterest
contentstringrequired- example
A description for the Pin.- maxLength
50000
optionsobjectrequired
- additionalProperties
false- required
[ "boardId" ]
boardIdstringrequiredPositive numeric Pinterest board id. It must identify the board selected by the connected account.
- minLength
1- maxLength
20- pattern
^[1-9][0-9]{0,19}$- example
200000000000000001
titlestringOptional Pin title. When omitted, the Pinterest adapter uses the first non-empty description line; if none exists, the title is omitted.
- maxLength
100- example
A product launch Pin
linkstringDestination URI. At runtime the Pinterest adapter accepts only trimmed public HTTPS URLs without credentials, fragments, private/reserved hosts or known URL-shortener hosts.
- format
uri- maxLength
2048- example
https://www.example.com/products/launch
altTextstringLegacy alias for accessibility text. Canonical callers use mediaItems[].altText, or validate media descriptor altText for dry runs.
- maxLength
500- deprecated
true- example
A ceramic vase beside a sunlit window.
boardSectionIdstringOptional positive numeric Pinterest board-section id, bounded to the canonical public provider-id envelope.
- pattern
^[1-9][0-9]{0,63}$- maxLength
64- example
300000000000000000001
isAiGeneratedbooleanWhen true, sends Pinterest's AI_MODIFIED disclosure. False omits the disclosure.
- default
false- example
true
coverImageUrlstringOptional public HTTPS cover image URL for a video Pin. Mutually exclusive with coverImageKeyFrameTime.
- format
uri- maxLength
2048- example
https://cdn.example.com/pinterest/video-cover.jpg
coverImageKeyFrameTimeintegerOptional whole-second video keyframe used as the Pin cover. Defaults to 0 when no coverImageUrl is supplied and is mutually exclusive with it.
- minimum
0- maximum
900- example
0
oneOf / 2object
- additionalProperties
false- required
[ "platforms" ]
contentstringOptional post text. It may be omitted or blank for media-only dry runs.
- example
Hello from zumpo- maxLength
50000
platformsarrayrequired
Dry-run targets. accountId may be supplied for create-shape compatibility but is never resolved.
- minItems
1- maxItems
100
Array itemobject
Closed dry-run target union. accountId is optional and is never resolved during validation.
- additionalProperties
false- discriminator
{ "propertyName": "platform", "mapping": { "instagram": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "facebook": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "threads": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "whatsapp": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "twitter": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "linkedin": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "youtube": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "tiktok": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "reddit": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "bluesky": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "telegram": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "discord": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "slack": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "google_business": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "snapchat": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "mastodon": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto", "pinterest": "#/components/schemas/PinterestCreateLikeValidatePostPlatformDto" } }- required
[ "platform" ]
platformstringrequired- enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon" ]- example
pinterest
accountIdstringOptional compatibility field only; no account or credential lookup occurs.
- pattern
^[0-9a-f]{24}$
optionsobject- additionalProperties
true
oneOf / 1object
- additionalProperties
false- required
[ "platform" ]
platformstringrequired- enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon" ]- example
bluesky
accountIdstringOptional create-shape compatibility field. Validation never looks up this account or its credentials.
- pattern
^[0-9a-f]{24}$- example
a1b2c3d4e5f6a7b8c9d0e1f2
optionsobject- additionalProperties
true- example
{}
oneOf / 2object
- additionalProperties
false- required
[ "platform", "options" ]
platformstringrequired- enum
[ "pinterest" ]- example
pinterest
accountIdstringOptional create-shape compatibility field. Validation never looks up this account or its credentials.
- pattern
^[0-9a-f]{24}$- example
a1b2c3d4e5f6a7b8c9d0e1f2
optionsobjectrequired
- additionalProperties
false- required
[ "boardId" ]
boardIdstringrequiredPositive numeric Pinterest board id. It must identify the board selected by the connected account.
- minLength
1- maxLength
20- pattern
^[1-9][0-9]{0,19}$- example
200000000000000001
titlestringOptional Pin title. When omitted, the Pinterest adapter uses the first non-empty description line; if none exists, the title is omitted.
- maxLength
100- example
A product launch Pin
linkstringDestination URI. At runtime the Pinterest adapter accepts only trimmed public HTTPS URLs without credentials, fragments, private/reserved hosts or known URL-shortener hosts.
- format
uri- maxLength
2048- example
https://www.example.com/products/launch
altTextstringLegacy alias for accessibility text. Canonical callers use mediaItems[].altText, or validate media descriptor altText for dry runs.
- maxLength
500- deprecated
true- example
A ceramic vase beside a sunlit window.
boardSectionIdstringOptional positive numeric Pinterest board-section id, bounded to the canonical public provider-id envelope.
- pattern
^[1-9][0-9]{0,63}$- maxLength
64- example
300000000000000000001
isAiGeneratedbooleanWhen true, sends Pinterest's AI_MODIFIED disclosure. False omits the disclosure.
- default
false- example
true
coverImageUrlstringOptional public HTTPS cover image URL for a video Pin. Mutually exclusive with coverImageKeyFrameTime.
- format
uri- maxLength
2048- example
https://cdn.example.com/pinterest/video-cover.jpg
coverImageKeyFrameTimeintegerOptional whole-second video keyframe used as the Pin cover. Defaults to 0 when no coverImageUrl is supplied and is mutually exclusive with it.
- minimum
0- maximum
900- example
0
mediaItemsarray
Metadata-only dry-run descriptors; this endpoint never fetches, uploads or persists media.
- maxItems
35
Array itemobject
Closed metadata-only dry-run descriptor. Validation does not fetch, upload or persist media.
- discriminator
{ "propertyName": "type", "mapping": { "image": "#/components/schemas/ValidateImageMediaItemDto", "video": "#/components/schemas/ValidateVideoMediaItemDto", "gif": "#/components/schemas/ValidateGifMediaItemDto", "document": "#/components/schemas/ValidateDocumentMediaItemDto" } }
oneOf / 1object
- additionalProperties
false- required
[ "type", "mimeType" ]
urlstringOptional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it.
- format
uri- maxLength
2048- example
https://cdn.example.com/media.jpg
titlestringOptional bounded media title.
- minLength
1- maxLength
500
filenamestringOptional bounded filename.
- minLength
1- maxLength
255
sizeintegerOfficial Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied.
- minimum
1- maximum
9007199254740991- example
524288
sizeBytesintegerBackward-compatible byte-size alias. If size is also supplied, both values must match.
- minimum
1- maximum
9007199254740991- example
524288
thumbnailstringOptional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost.
- format
uri- maxLength
2048
instagramThumbnailstringOptional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost.
- format
uri- maxLength
2048
tiktokProcessedbooleantypestringrequired- enum
[ "image" ]- example
image
mimeTypestringrequiredRequired declared image media type; no remote content is fetched to infer it.
- example
image/jpeg- minLength
1- maxLength
255
altTextstringCanonical image accessibility text forwarded unchanged to the adapter TargetMedia descriptor.
- maxLength
10000- example
A ceramic vase beside a sunlit window.
aspectRatiostring- example
1:1- minLength
1- maxLength
32
anyOf / 1unspecified type- required
[ "size" ]
anyOf / 2unspecified type- required
[ "sizeBytes" ]
oneOf / 2object
- additionalProperties
false- required
[ "type", "mimeType" ]
urlstringOptional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it.
- format
uri- maxLength
2048- example
https://cdn.example.com/media.jpg
titlestringOptional bounded media title.
- minLength
1- maxLength
500
filenamestringOptional bounded filename.
- minLength
1- maxLength
255
sizeintegerOfficial Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied.
- minimum
1- maximum
9007199254740991- example
524288
sizeBytesintegerBackward-compatible byte-size alias. If size is also supplied, both values must match.
- minimum
1- maximum
9007199254740991- example
524288
thumbnailstringOptional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost.
- format
uri- maxLength
2048
instagramThumbnailstringOptional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost.
- format
uri- maxLength
2048
tiktokProcessedbooleantypestringrequired- enum
[ "video" ]- example
video
mimeTypestringrequiredRequired declared video media type; no remote content is fetched to infer it.
- example
video/mp4- minLength
1- maxLength
255
durationSecnumber- minimum
0- example
12.5
aspectRatiostring- example
9:16- minLength
1- maxLength
32
anyOf / 1unspecified type- required
[ "size" ]
anyOf / 2unspecified type- required
[ "sizeBytes" ]
oneOf / 3object
- additionalProperties
false- required
[ "type" ]
urlstringOptional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it.
- format
uri- maxLength
2048- example
https://cdn.example.com/media.jpg
titlestringOptional bounded media title.
- minLength
1- maxLength
500
filenamestringOptional bounded filename.
- minLength
1- maxLength
255
sizeintegerOfficial Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied.
- minimum
1- maximum
9007199254740991- example
524288
sizeBytesintegerBackward-compatible byte-size alias. If size is also supplied, both values must match.
- minimum
1- maximum
9007199254740991- example
524288
thumbnailstringOptional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost.
- format
uri- maxLength
2048
instagramThumbnailstringOptional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost.
- format
uri- maxLength
2048
tiktokProcessedbooleantypestringrequired- enum
[ "gif" ]- example
gif
mimeTypestringOptional for type=gif because validatePost maps that discriminator to image/gif without fetching the URL.
- enum
[ "image/gif" ]
altTextstring- maxLength
10000- example
An animated launch sequence.
aspectRatiostring- example
1:1- minLength
1- maxLength
32
anyOf / 1unspecified type- required
[ "size" ]
anyOf / 2unspecified type- required
[ "sizeBytes" ]
oneOf / 4object
- additionalProperties
false- required
[ "type", "mimeType" ]
urlstringOptional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it.
- format
uri- maxLength
2048- example
https://cdn.example.com/media.jpg
titlestringOptional bounded media title.
- minLength
1- maxLength
500
filenamestringOptional bounded filename.
- minLength
1- maxLength
255
sizeintegerOfficial Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied.
- minimum
1- maximum
9007199254740991- example
524288
sizeBytesintegerBackward-compatible byte-size alias. If size is also supplied, both values must match.
- minimum
1- maximum
9007199254740991- example
524288
thumbnailstringOptional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost.
- format
uri- maxLength
2048
instagramThumbnailstringOptional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost.
- format
uri- maxLength
2048
tiktokProcessedbooleantypestringrequired- enum
[ "document" ]- example
document
mimeTypestringrequired- enum
[ "application/pdf", "application/zip", "application/octet-stream" ]- example
application/pdf
anyOf / 1unspecified type- required
[ "size" ]
anyOf / 2unspecified type- required
[ "sizeBytes" ]
Original schema
{
"$ref": "#/components/schemas/LegacyValidatePostRequestDto"
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
200Response schema
Response 200object
- additionalProperties
false- required
[ "valid", "issues" ]
validbooleanrequired- example
true
issuesarrayrequired
Array itemobject
- additionalProperties
false- required
[ "code", "message" ]
codestringrequired- example
text_too_long
messagestringrequired- example
Text exceeds the platform limit.
paramstring- example
text
Original schema
{
"$ref": "#/components/schemas/LegacyValidatePostResponseDto"
}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.
LegacyValidatePostRequestDto
#/components/schemas/LegacyValidatePostRequestDto
{
"type": "object",
"properties": {},
"description": "Additive validation request union: the original single-target body or a create-like multi-target dry run.",
"oneOf": [
{
"$ref": "#/components/schemas/LegacyValidatePostDto"
},
{
"$ref": "#/components/schemas/CreateLikeValidatePostDto"
}
]
}LegacyValidatePostDto
#/components/schemas/LegacyValidatePostDto
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"instagram",
"facebook",
"threads",
"whatsapp",
"twitter",
"linkedin",
"youtube",
"tiktok",
"pinterest",
"reddit",
"bluesky",
"telegram",
"discord",
"slack",
"google_business",
"snapchat",
"mastodon"
],
"example": "bluesky"
},
"content": {
"type": "string",
"example": "Hello from zumpo",
"maxLength": 50000
},
"options": {
"type": "object",
"additionalProperties": true,
"example": {}
}
},
"additionalProperties": false,
"description": "Discriminated validation request. Pinterest uses its closed public options contract; other platforms retain the generic v1 options object.",
"oneOf": [
{
"$ref": "#/components/schemas/GenericValidatePostDto"
},
{
"$ref": "#/components/schemas/PinterestValidatePostDto"
}
],
"discriminator": {
"propertyName": "platform",
"mapping": {
"instagram": "#/components/schemas/GenericValidatePostDto",
"facebook": "#/components/schemas/GenericValidatePostDto",
"threads": "#/components/schemas/GenericValidatePostDto",
"whatsapp": "#/components/schemas/GenericValidatePostDto",
"twitter": "#/components/schemas/GenericValidatePostDto",
"linkedin": "#/components/schemas/GenericValidatePostDto",
"youtube": "#/components/schemas/GenericValidatePostDto",
"tiktok": "#/components/schemas/GenericValidatePostDto",
"reddit": "#/components/schemas/GenericValidatePostDto",
"bluesky": "#/components/schemas/GenericValidatePostDto",
"telegram": "#/components/schemas/GenericValidatePostDto",
"discord": "#/components/schemas/GenericValidatePostDto",
"slack": "#/components/schemas/GenericValidatePostDto",
"google_business": "#/components/schemas/GenericValidatePostDto",
"snapchat": "#/components/schemas/GenericValidatePostDto",
"mastodon": "#/components/schemas/GenericValidatePostDto",
"pinterest": "#/components/schemas/PinterestValidatePostDto"
}
},
"required": [
"platform",
"content"
]
}GenericValidatePostDto
#/components/schemas/GenericValidatePostDto
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"instagram",
"facebook",
"threads",
"whatsapp",
"twitter",
"linkedin",
"youtube",
"tiktok",
"reddit",
"bluesky",
"telegram",
"discord",
"slack",
"google_business",
"snapchat",
"mastodon"
],
"example": "bluesky"
},
"content": {
"type": "string",
"example": "Hello from zumpo",
"maxLength": 50000
},
"options": {
"type": "object",
"additionalProperties": true,
"example": {}
}
},
"additionalProperties": false,
"required": [
"platform",
"content"
]
}PinterestValidatePostDto
#/components/schemas/PinterestValidatePostDto
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"pinterest"
],
"example": "pinterest"
},
"content": {
"type": "string",
"example": "A description for the Pin.",
"maxLength": 50000
},
"options": {
"$ref": "#/components/schemas/PinterestPostOptionsDto"
}
},
"additionalProperties": false,
"required": [
"platform",
"content",
"options"
]
}PinterestPostOptionsDto
#/components/schemas/PinterestPostOptionsDto
{
"type": "object",
"properties": {
"boardId": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"pattern": "^[1-9][0-9]{0,19}$",
"example": "200000000000000001",
"description": "Positive numeric Pinterest board id. It must identify the board selected by the connected account."
},
"title": {
"type": "string",
"maxLength": 100,
"example": "A product launch Pin",
"description": "Optional Pin title. When omitted, the Pinterest adapter uses the first non-empty description line; if none exists, the title is omitted."
},
"link": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"example": "https://www.example.com/products/launch",
"description": "Destination URI. At runtime the Pinterest adapter accepts only trimmed public HTTPS URLs without credentials, fragments, private/reserved hosts or known URL-shortener hosts."
},
"altText": {
"type": "string",
"maxLength": 500,
"deprecated": true,
"example": "A ceramic vase beside a sunlit window.",
"description": "Legacy alias for accessibility text. Canonical callers use mediaItems[].altText, or validate media descriptor altText for dry runs."
},
"boardSectionId": {
"type": "string",
"pattern": "^[1-9][0-9]{0,63}$",
"maxLength": 64,
"example": "300000000000000000001",
"description": "Optional positive numeric Pinterest board-section id, bounded to the canonical public provider-id envelope."
},
"isAiGenerated": {
"type": "boolean",
"default": false,
"example": true,
"description": "When true, sends Pinterest's AI_MODIFIED disclosure. False omits the disclosure."
},
"coverImageUrl": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"example": "https://cdn.example.com/pinterest/video-cover.jpg",
"description": "Optional public HTTPS cover image URL for a video Pin. Mutually exclusive with coverImageKeyFrameTime."
},
"coverImageKeyFrameTime": {
"type": "integer",
"minimum": 0,
"maximum": 900,
"example": 0,
"description": "Optional whole-second video keyframe used as the Pin cover. Defaults to 0 when no coverImageUrl is supplied and is mutually exclusive with it."
}
},
"additionalProperties": false,
"required": [
"boardId"
]
}CreateLikeValidatePostDto
#/components/schemas/CreateLikeValidatePostDto
{
"type": "object",
"properties": {
"content": {
"type": "string",
"example": "Hello from zumpo",
"maxLength": 50000,
"description": "Optional post text. It may be omitted or blank for media-only dry runs."
},
"platforms": {
"minItems": 1,
"maxItems": 100,
"description": "Dry-run targets. accountId may be supplied for create-shape compatibility but is never resolved.",
"type": "array",
"items": {
"$ref": "#/components/schemas/CreateLikeValidatePostPlatformDto"
}
},
"mediaItems": {
"maxItems": 35,
"description": "Metadata-only dry-run descriptors; this endpoint never fetches, uploads or persists media.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidatePostMediaItemDto"
}
}
},
"additionalProperties": false,
"required": [
"platforms"
]
}CreateLikeValidatePostPlatformDto
#/components/schemas/CreateLikeValidatePostPlatformDto
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"instagram",
"facebook",
"threads",
"whatsapp",
"twitter",
"linkedin",
"youtube",
"tiktok",
"pinterest",
"reddit",
"bluesky",
"telegram",
"discord",
"slack",
"google_business",
"snapchat",
"mastodon"
],
"example": "pinterest"
},
"accountId": {
"type": "string",
"pattern": "^[0-9a-f]{24}$",
"description": "Optional compatibility field only; no account or credential lookup occurs."
},
"options": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false,
"description": "Closed dry-run target union. accountId is optional and is never resolved during validation.",
"oneOf": [
{
"$ref": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto"
},
{
"$ref": "#/components/schemas/PinterestCreateLikeValidatePostPlatformDto"
}
],
"discriminator": {
"propertyName": "platform",
"mapping": {
"instagram": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"facebook": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"threads": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"whatsapp": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"twitter": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"linkedin": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"youtube": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"tiktok": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"reddit": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"bluesky": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"telegram": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"discord": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"slack": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"google_business": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"snapchat": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"mastodon": "#/components/schemas/GenericCreateLikeValidatePostPlatformDto",
"pinterest": "#/components/schemas/PinterestCreateLikeValidatePostPlatformDto"
}
},
"required": [
"platform"
]
}GenericCreateLikeValidatePostPlatformDto
#/components/schemas/GenericCreateLikeValidatePostPlatformDto
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"instagram",
"facebook",
"threads",
"whatsapp",
"twitter",
"linkedin",
"youtube",
"tiktok",
"reddit",
"bluesky",
"telegram",
"discord",
"slack",
"google_business",
"snapchat",
"mastodon"
],
"example": "bluesky"
},
"accountId": {
"type": "string",
"pattern": "^[0-9a-f]{24}$",
"example": "a1b2c3d4e5f6a7b8c9d0e1f2",
"description": "Optional create-shape compatibility field. Validation never looks up this account or its credentials."
},
"options": {
"type": "object",
"additionalProperties": true,
"example": {}
}
},
"additionalProperties": false,
"required": [
"platform"
]
}PinterestCreateLikeValidatePostPlatformDto
#/components/schemas/PinterestCreateLikeValidatePostPlatformDto
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"pinterest"
],
"example": "pinterest"
},
"accountId": {
"type": "string",
"pattern": "^[0-9a-f]{24}$",
"example": "a1b2c3d4e5f6a7b8c9d0e1f2",
"description": "Optional create-shape compatibility field. Validation never looks up this account or its credentials."
},
"options": {
"$ref": "#/components/schemas/PinterestPostOptionsDto"
}
},
"additionalProperties": false,
"required": [
"platform",
"options"
]
}ValidatePostMediaItemDto
#/components/schemas/ValidatePostMediaItemDto
{
"type": "object",
"properties": {},
"description": "Closed metadata-only dry-run descriptor. Validation does not fetch, upload or persist media.",
"oneOf": [
{
"$ref": "#/components/schemas/ValidateImageMediaItemDto"
},
{
"$ref": "#/components/schemas/ValidateVideoMediaItemDto"
},
{
"$ref": "#/components/schemas/ValidateGifMediaItemDto"
},
{
"$ref": "#/components/schemas/ValidateDocumentMediaItemDto"
}
],
"discriminator": {
"propertyName": "type",
"mapping": {
"image": "#/components/schemas/ValidateImageMediaItemDto",
"video": "#/components/schemas/ValidateVideoMediaItemDto",
"gif": "#/components/schemas/ValidateGifMediaItemDto",
"document": "#/components/schemas/ValidateDocumentMediaItemDto"
}
}
}ValidateImageMediaItemDto
#/components/schemas/ValidateImageMediaItemDto
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"example": "https://cdn.example.com/media.jpg",
"description": "Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Optional bounded media title."
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Optional bounded filename."
},
"size": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"example": 524288,
"description": "Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."
},
"sizeBytes": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"example": 524288,
"description": "Backward-compatible byte-size alias. If size is also supplied, both values must match."
},
"thumbnail": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."
},
"instagramThumbnail": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."
},
"tiktokProcessed": {
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"image"
],
"example": "image"
},
"mimeType": {
"type": "string",
"example": "image/jpeg",
"minLength": 1,
"maxLength": 255,
"description": "Required declared image media type; no remote content is fetched to infer it."
},
"altText": {
"type": "string",
"maxLength": 10000,
"example": "A ceramic vase beside a sunlit window.",
"description": "Canonical image accessibility text forwarded unchanged to the adapter TargetMedia descriptor."
},
"aspectRatio": {
"type": "string",
"example": "1:1",
"minLength": 1,
"maxLength": 32
}
},
"additionalProperties": false,
"anyOf": [
{
"required": [
"size"
]
},
{
"required": [
"sizeBytes"
]
}
],
"required": [
"type",
"mimeType"
]
}ValidateVideoMediaItemDto
#/components/schemas/ValidateVideoMediaItemDto
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"example": "https://cdn.example.com/media.jpg",
"description": "Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Optional bounded media title."
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Optional bounded filename."
},
"size": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"example": 524288,
"description": "Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."
},
"sizeBytes": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"example": 524288,
"description": "Backward-compatible byte-size alias. If size is also supplied, both values must match."
},
"thumbnail": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."
},
"instagramThumbnail": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."
},
"tiktokProcessed": {
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"video"
],
"example": "video"
},
"mimeType": {
"type": "string",
"example": "video/mp4",
"minLength": 1,
"maxLength": 255,
"description": "Required declared video media type; no remote content is fetched to infer it."
},
"durationSec": {
"type": "number",
"minimum": 0,
"example": 12.5
},
"aspectRatio": {
"type": "string",
"example": "9:16",
"minLength": 1,
"maxLength": 32
}
},
"additionalProperties": false,
"anyOf": [
{
"required": [
"size"
]
},
{
"required": [
"sizeBytes"
]
}
],
"required": [
"type",
"mimeType"
]
}ValidateGifMediaItemDto
#/components/schemas/ValidateGifMediaItemDto
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"example": "https://cdn.example.com/media.jpg",
"description": "Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Optional bounded media title."
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Optional bounded filename."
},
"size": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"example": 524288,
"description": "Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."
},
"sizeBytes": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"example": 524288,
"description": "Backward-compatible byte-size alias. If size is also supplied, both values must match."
},
"thumbnail": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."
},
"instagramThumbnail": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."
},
"tiktokProcessed": {
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"gif"
],
"example": "gif"
},
"mimeType": {
"type": "string",
"enum": [
"image/gif"
],
"description": "Optional for type=gif because validatePost maps that discriminator to image/gif without fetching the URL."
},
"altText": {
"type": "string",
"maxLength": 10000,
"example": "An animated launch sequence."
},
"aspectRatio": {
"type": "string",
"example": "1:1",
"minLength": 1,
"maxLength": 32
}
},
"additionalProperties": false,
"anyOf": [
{
"required": [
"size"
]
},
{
"required": [
"sizeBytes"
]
}
],
"required": [
"type"
]
}ValidateDocumentMediaItemDto
#/components/schemas/ValidateDocumentMediaItemDto
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"example": "https://cdn.example.com/media.jpg",
"description": "Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Optional bounded media title."
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Optional bounded filename."
},
"size": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"example": 524288,
"description": "Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."
},
"sizeBytes": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"example": 524288,
"description": "Backward-compatible byte-size alias. If size is also supplied, both values must match."
},
"thumbnail": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."
},
"instagramThumbnail": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."
},
"tiktokProcessed": {
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"document"
],
"example": "document"
},
"mimeType": {
"type": "string",
"enum": [
"application/pdf",
"application/zip",
"application/octet-stream"
],
"example": "application/pdf"
}
},
"additionalProperties": false,
"anyOf": [
{
"required": [
"size"
]
},
{
"required": [
"sizeBytes"
]
}
],
"required": [
"type",
"mimeType"
]
}LegacyValidatePostResponseDto
#/components/schemas/LegacyValidatePostResponseDto
{
"type": "object",
"properties": {
"valid": {
"type": "boolean",
"example": true
},
"issues": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidationIssueDto"
}
}
},
"additionalProperties": false,
"required": [
"valid",
"issues"
]
}ValidationIssueDto
#/components/schemas/ValidationIssueDto
{
"type": "object",
"properties": {
"code": {
"type": "string",
"example": "text_too_long"
},
"message": {
"type": "string",
"example": "Text exceeds the platform limit."
},
"param": {
"type": "string",
"example": "text"
}
},
"additionalProperties": false,
"required": [
"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"
]
}