zumpo/docs
Dashboard
Skip to content
posts / API reference
POSTcancelPendingTargets

Cancel pending targets of a post

Authentication

The following security requirement applies to this operation.

  1. bearerhttp

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

Parameters

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

Responses

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

200Response schema
application/json
Response 200object
#/components/schemas/PostDetailResponseDto
required
[ "post", "targets", "mediaIds", "mediaItems" ]
messagestring

Present on mutation responses; omitted by non-mutation post actions.

example
Post updated successfully
warningsarray

Present on post updates; empty when the update completed without warnings.

Array itemstring
postobjectrequired
#/components/schemas/PostDetailDto
required
[ "id", "_id", "profileId", "content", "status", "scheduledFor", "timezone", "scheduleKind", "exactTiming", "scheduleAdjusted", "queueId", "queueSlot", "createdAt", "updatedAt" ]
idstringrequired
example
a1b2c3d4e5f6a7b8c9d0e1f2
_idstringrequired

Zernio-compatible alias of the canonical zumpo id.

example
a1b2c3d4e5f6a7b8c9d0e1f2
profileIdstringrequired
example
c3d4e5f6a7b8c9d0e1f2a3b4
contentstringrequired
example
Hello from zumpo
titlestring
maxLength
10000
tagsarray
maxItems
100
Array itemstring
hashtagsarray
maxItems
100
Array itemstring
mentionsarray
maxItems
100
Array itemstring
visibilitystring
enum
[ "public", "private", "unlisted" ]
metadataobject

Bounded non-secret metadata supplied by the caller.

additionalProperties
true
statusstringrequired
enum
[ "draft", "scheduled", "queued", "publishing", "published", "partial", "failed", "cancelled" ]
example
scheduled
scheduledForstringrequired
nullable
true
format
date-time
example
2026-07-29T09:00:00.000Z
timezonestringrequired
example
Europe/Istanbul
scheduleKindstringrequired
nullable
true
enum
[ "absolute", "recurring" ]
example
absolute
exactTimingbooleanrequired
example
true
scheduleAdjustedbooleanrequired
example
false
queueIdstringrequired
nullable
true
example
null
queueSlotobjectrequired
nullable
true
example
null
allOf / 1object
#/components/schemas/PostQueueSlotDto
required
[ "id", "dayOfWeek", "time" ]
idstringrequired
example
weekday-morning
dayOfWeeknumberrequired
minimum
0
maximum
6
example
1
timestringrequired
pattern
^([01][0-9]|2[0-3]):[0-5][0-9]$
example
09:30
recyclingallOf

Durable recurring configuration and runtime cursor.

allOf / 1object
#/components/schemas/RecyclingStateDto
required
[ "enabled", "contentVariations", "contentVariationIndex", "recycleCount" ]
enabledbooleanrequired
gapinteger
minimum
1
gapFreqstring
enum
[ "week", "month" ]
startDatestring
format
date-time
expireCountinteger
minimum
1
expireDatestring
format
date-time
contentVariationsarrayrequired
maxItems
20
Array itemstring
contentVariationIndexintegerrequired
minimum
0
recycleCountintegerrequired
minimum
0
nextRecycleAtstring
format
date-time
lastRecycledAtstring
format
date-time
recycledFromPostIdstring

Original source post for a generated recurring copy.

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

Present only for a post allocated from a recurring queue; derived from its durable profile binding.

example
c3d4e5f6a7b8c9d0e1f2a3b4
platformsarray

Zernio-compatible target projection. Omitted on collection reads that do not load target relations.

Array itemobject
#/components/schemas/PostResponsePlatformDto
required
[ "platform", "accountId", "status" ]
platformstringrequired
enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon" ]
example
mastodon
accountIdstringrequired
example
b2c3d4e5f6a7b8c9d0e1f2a3
customContentstring

Stored target-specific text override. Absent when root content is inherited.

customMediaarray

Stored target-specific ordered media override. Absent when root media is inherited; [] is an explicit no-media override.

maxItems
35
Array itemobject
#/components/schemas/PostMediaItemDto
required
[ "mediaId" ]
mediaIdstringrequired

Team-owned media id.

example
a1b2c3d4e5f6a7b8c9d0e1f2
pattern
^[0-9a-f]{24}$
altTextstring

Accessibility description for this ordered attachment. Empty string is preserved intentionally.

maxLength
10000
example
A product dashboard showing weekly growth.
statusstringrequired
enum
[ "scheduled", "queued", "publishing", "published", "failed", "held", "cancelled" ]
example
scheduled
scheduledForstring
format
date-time
example
2026-07-29T09:00:00.000Z
platformPostIdstring
example
1900000000000000001
platformPostUrlstring
format
uri
example
https://social.example/posts/1900000000000000001
publishedAtstring
format
date-time
example
2026-07-29T09:00:05.000Z
deletedAtstring

Provider-observed native deletion time; present only after deletion is detected.

format
date-time
platformSpecificDataobject

The exact platforms[].options object stored for this target at create time. Absent when no options were recorded for the row.

additionalProperties
true
example
{ "visibility": "unlisted" }
isTrialReelboolean

Present and true only when this Instagram Reel was created with persisted trialParams.

enum
[ true ]
trialGraduationStrategystring

Exact creation-time Instagram Trial Reel graduation strategy.

enum
[ "MANUAL", "SS_PERFORMANCE" ]
errorMessagestring

Provider failure text recorded by the dispatcher on the last delivery attempt. UNSTABLE free text — do not branch on it. Absent until a delivery attempt failed.

example
Validation failed: Text character limit of 500 exceeded
errorCategorystring

Stable error category derived from the durable machine error code, never from errorMessage.

enum
[ "auth_expired", "user_content", "user_abuse", "account_issue", "platform_rejected", "platform_error", "platform_rate_limit", "quota_exhausted", "system_error", "unknown" ]
errorSourcestring

Stable error origin derived from the durable machine error code.

enum
[ "user", "platform", "system" ]
mediaItemsarray

Zernio-compatible durable attachment projection. Omitted on collection reads that do not load media relations.

Array itemobject
#/components/schemas/PostResponseMediaItemDto
required
[ "mediaId" ]
mediaIdstringrequired

Team-owned media id.

example
a1b2c3d4e5f6a7b8c9d0e1f2
pattern
^[0-9a-f]{24}$
altTextstring

Accessibility description for this ordered attachment. Empty string is preserved intentionally.

maxLength
10000
example
A product dashboard showing weekly growth.
typestring

Durable media kind. GIF is derived only from an image attachment with image/gif MIME metadata.

enum
[ "image", "video", "gif", "document" ]
example
image
mimeTypestring

Verified MIME type, falling back to the persisted upload expectation.

example
image/png
sizeinteger

Verified byte size, falling back to the persisted upload expectation.

minimum
0
example
4096
createdAtstringrequired
format
date-time
example
2026-07-29T09:00:00.000Z
updatedAtstringrequired
format
date-time
example
2026-07-29T09:00:00.000Z
targetsarrayrequired
Array itemobject
#/components/schemas/CreatedPostTargetDto
required
[ "id", "accountId", "platform", "status", "scheduledFor" ]
idstringrequired
example
b2c3d4e5f6a7b8c9d0e1f2a3
accountIdstringrequired
example
c3d4e5f6a7b8c9d0e1f2a3b4
platformstringrequired
example
mastodon
statusstringrequired
enum
[ "scheduled", "queued", "publishing", "published", "failed", "held", "cancelled" ]
example
scheduled
scheduledForstringrequired
nullable
true
format
date-time
example
2026-07-29T09:00:00.000Z
mediaIdsarrayrequired
Array itemstring
mediaItemsarrayrequired
Array itemobject
#/components/schemas/PostMediaItemDto
required
[ "mediaId" ]
mediaIdstringrequired

Team-owned media id.

example
a1b2c3d4e5f6a7b8c9d0e1f2
pattern
^[0-9a-f]{24}$
altTextstring

Accessibility description for this ordered attachment. Empty string is preserved intentionally.

maxLength
10000
example
A product dashboard showing weekly growth.
Original schema
{
  "$ref": "#/components/schemas/PostDetailResponseDto"
}
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"
}
401Authentication failed

Authentication failed

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

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

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

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

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

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

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

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

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

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

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

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

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

Conflict

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

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

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

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
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"
}
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"
}
503Service unavailable

Service unavailable

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.

PostDetailResponseDto

#/components/schemas/PostDetailResponseDto

{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "example": "Post updated successfully",
      "description": "Present on mutation responses; omitted by non-mutation post actions."
    },
    "warnings": {
      "description": "Present on post updates; empty when the update completed without warnings.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "post": {
      "$ref": "#/components/schemas/PostDetailDto"
    },
    "targets": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreatedPostTargetDto"
      }
    },
    "mediaIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mediaItems": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostMediaItemDto"
      }
    }
  },
  "required": [
    "post",
    "targets",
    "mediaIds",
    "mediaItems"
  ]
}
PostDetailDto

#/components/schemas/PostDetailDto

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2"
    },
    "_id": {
      "type": "string",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2",
      "description": "Zernio-compatible alias of the canonical zumpo `id`."
    },
    "profileId": {
      "type": "string",
      "example": "c3d4e5f6a7b8c9d0e1f2a3b4"
    },
    "content": {
      "type": "string",
      "example": "Hello from zumpo"
    },
    "title": {
      "type": "string",
      "maxLength": 10000
    },
    "tags": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "hashtags": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mentions": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "visibility": {
      "type": "string",
      "enum": [
        "public",
        "private",
        "unlisted"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true,
      "description": "Bounded non-secret metadata supplied by the caller."
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "scheduled",
        "queued",
        "publishing",
        "published",
        "partial",
        "failed",
        "cancelled"
      ],
      "example": "scheduled"
    },
    "scheduledFor": {
      "type": "string",
      "nullable": true,
      "format": "date-time",
      "example": "2026-07-29T09:00:00.000Z"
    },
    "timezone": {
      "type": "string",
      "example": "Europe/Istanbul"
    },
    "scheduleKind": {
      "type": "string",
      "nullable": true,
      "enum": [
        "absolute",
        "recurring"
      ],
      "example": "absolute"
    },
    "exactTiming": {
      "type": "boolean",
      "example": true
    },
    "scheduleAdjusted": {
      "type": "boolean",
      "example": false
    },
    "queueId": {
      "type": "string",
      "nullable": true,
      "example": null
    },
    "queueSlot": {
      "nullable": true,
      "example": null,
      "type": "object",
      "allOf": [
        {
          "$ref": "#/components/schemas/PostQueueSlotDto"
        }
      ]
    },
    "recycling": {
      "description": "Durable recurring configuration and runtime cursor.",
      "allOf": [
        {
          "$ref": "#/components/schemas/RecyclingStateDto"
        }
      ]
    },
    "recycledFromPostId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$",
      "description": "Original source post for a generated recurring copy."
    },
    "queuedFromProfile": {
      "type": "string",
      "example": "c3d4e5f6a7b8c9d0e1f2a3b4",
      "description": "Present only for a post allocated from a recurring queue; derived from its durable profile binding."
    },
    "platforms": {
      "description": "Zernio-compatible target projection. Omitted on collection reads that do not load target relations.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostResponsePlatformDto"
      }
    },
    "mediaItems": {
      "description": "Zernio-compatible durable attachment projection. Omitted on collection reads that do not load media relations.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostResponseMediaItemDto"
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "example": "2026-07-29T09:00:00.000Z"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "example": "2026-07-29T09:00:00.000Z"
    }
  },
  "required": [
    "id",
    "_id",
    "profileId",
    "content",
    "status",
    "scheduledFor",
    "timezone",
    "scheduleKind",
    "exactTiming",
    "scheduleAdjusted",
    "queueId",
    "queueSlot",
    "createdAt",
    "updatedAt"
  ]
}
PostQueueSlotDto

#/components/schemas/PostQueueSlotDto

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "weekday-morning"
    },
    "dayOfWeek": {
      "type": "number",
      "minimum": 0,
      "maximum": 6,
      "example": 1
    },
    "time": {
      "type": "string",
      "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
      "example": "09:30"
    }
  },
  "required": [
    "id",
    "dayOfWeek",
    "time"
  ]
}
RecyclingStateDto

#/components/schemas/RecyclingStateDto

{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "gap": {
      "type": "integer",
      "minimum": 1
    },
    "gapFreq": {
      "type": "string",
      "enum": [
        "week",
        "month"
      ]
    },
    "startDate": {
      "type": "string",
      "format": "date-time"
    },
    "expireCount": {
      "type": "integer",
      "minimum": 1
    },
    "expireDate": {
      "type": "string",
      "format": "date-time"
    },
    "contentVariations": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "contentVariationIndex": {
      "type": "integer",
      "minimum": 0
    },
    "recycleCount": {
      "type": "integer",
      "minimum": 0
    },
    "nextRecycleAt": {
      "type": "string",
      "format": "date-time"
    },
    "lastRecycledAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "enabled",
    "contentVariations",
    "contentVariationIndex",
    "recycleCount"
  ]
}
PostResponsePlatformDto

#/components/schemas/PostResponsePlatformDto

{
  "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": "mastodon"
    },
    "accountId": {
      "type": "string",
      "example": "b2c3d4e5f6a7b8c9d0e1f2a3"
    },
    "customContent": {
      "type": "string",
      "description": "Stored target-specific text override. Absent when root content is inherited."
    },
    "customMedia": {
      "maxItems": 35,
      "description": "Stored target-specific ordered media override. Absent when root media is inherited; [] is an explicit no-media override.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostMediaItemDto"
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "queued",
        "publishing",
        "published",
        "failed",
        "held",
        "cancelled"
      ],
      "example": "scheduled"
    },
    "scheduledFor": {
      "type": "string",
      "format": "date-time",
      "example": "2026-07-29T09:00:00.000Z"
    },
    "platformPostId": {
      "type": "string",
      "example": "1900000000000000001"
    },
    "platformPostUrl": {
      "type": "string",
      "format": "uri",
      "example": "https://social.example/posts/1900000000000000001"
    },
    "publishedAt": {
      "type": "string",
      "format": "date-time",
      "example": "2026-07-29T09:00:05.000Z"
    },
    "deletedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Provider-observed native deletion time; present only after deletion is detected."
    },
    "platformSpecificData": {
      "type": "object",
      "additionalProperties": true,
      "example": {
        "visibility": "unlisted"
      },
      "description": "The exact platforms[].options object stored for this target at create time. Absent when no options were recorded for the row."
    },
    "isTrialReel": {
      "type": "boolean",
      "enum": [
        true
      ],
      "description": "Present and true only when this Instagram Reel was created with persisted trialParams."
    },
    "trialGraduationStrategy": {
      "type": "string",
      "enum": [
        "MANUAL",
        "SS_PERFORMANCE"
      ],
      "description": "Exact creation-time Instagram Trial Reel graduation strategy."
    },
    "errorMessage": {
      "type": "string",
      "example": "Validation failed: Text character limit of 500 exceeded",
      "description": "Provider failure text recorded by the dispatcher on the last delivery attempt. UNSTABLE free text — do not branch on it. Absent until a delivery attempt failed."
    },
    "errorCategory": {
      "type": "string",
      "enum": [
        "auth_expired",
        "user_content",
        "user_abuse",
        "account_issue",
        "platform_rejected",
        "platform_error",
        "platform_rate_limit",
        "quota_exhausted",
        "system_error",
        "unknown"
      ],
      "description": "Stable error category derived from the durable machine error code, never from errorMessage."
    },
    "errorSource": {
      "type": "string",
      "enum": [
        "user",
        "platform",
        "system"
      ],
      "description": "Stable error origin derived from the durable machine error code."
    }
  },
  "required": [
    "platform",
    "accountId",
    "status"
  ]
}
PostMediaItemDto

#/components/schemas/PostMediaItemDto

{
  "type": "object",
  "properties": {
    "mediaId": {
      "type": "string",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2",
      "pattern": "^[0-9a-f]{24}$",
      "description": "Team-owned media id."
    },
    "altText": {
      "type": "string",
      "maxLength": 10000,
      "example": "A product dashboard showing weekly growth.",
      "description": "Accessibility description for this ordered attachment. Empty string is preserved intentionally."
    }
  },
  "required": [
    "mediaId"
  ]
}
PostResponseMediaItemDto

#/components/schemas/PostResponseMediaItemDto

{
  "type": "object",
  "properties": {
    "mediaId": {
      "type": "string",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2",
      "pattern": "^[0-9a-f]{24}$",
      "description": "Team-owned media id."
    },
    "altText": {
      "type": "string",
      "maxLength": 10000,
      "example": "A product dashboard showing weekly growth.",
      "description": "Accessibility description for this ordered attachment. Empty string is preserved intentionally."
    },
    "type": {
      "type": "string",
      "enum": [
        "image",
        "video",
        "gif",
        "document"
      ],
      "example": "image",
      "description": "Durable media kind. GIF is derived only from an image attachment with image/gif MIME metadata."
    },
    "mimeType": {
      "type": "string",
      "example": "image/png",
      "description": "Verified MIME type, falling back to the persisted upload expectation."
    },
    "size": {
      "type": "integer",
      "minimum": 0,
      "example": 4096,
      "description": "Verified byte size, falling back to the persisted upload expectation."
    }
  },
  "required": [
    "mediaId"
  ]
}
CreatedPostTargetDto

#/components/schemas/CreatedPostTargetDto

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "b2c3d4e5f6a7b8c9d0e1f2a3"
    },
    "accountId": {
      "type": "string",
      "example": "c3d4e5f6a7b8c9d0e1f2a3b4"
    },
    "platform": {
      "type": "string",
      "example": "mastodon"
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "queued",
        "publishing",
        "published",
        "failed",
        "held",
        "cancelled"
      ],
      "example": "scheduled"
    },
    "scheduledFor": {
      "type": "string",
      "nullable": true,
      "format": "date-time",
      "example": "2026-07-29T09:00:00.000Z"
    }
  },
  "required": [
    "id",
    "accountId",
    "platform",
    "status",
    "scheduledFor"
  ]
}
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"
  ]
}