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

Create a post

Authentication

The following security requirement applies to this operation.

  1. bearerhttp

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

Parameters

Idempotency-Keyheaderoptional

Five-minute replay key scoped by team and execution mode. Takes precedence over x-request-id, so an SDK retry that reuses the key replays the original response instead of creating a second post.

Idempotency-Keystring
maxLength
255
Original schema
{
  "type": "string",
  "maxLength": 255
}
x-request-idheaderoptional

Five-minute replay key scoped by team and execution mode. Used only when Idempotency-Key is absent.

x-request-idstring
minLength
1
maxLength
200
pattern
^[A-Za-z0-9_-]{1,200}$
Original schema
{
  "type": "string",
  "minLength": 1,
  "maxLength": 200,
  "pattern": "^[A-Za-z0-9_-]{1,200}$"
}

Request body

Required body
application/json
Bodyobjectrequired
#/components/schemas/CreatePostDto
additionalProperties
false
titlestring

Durable root title. YouTube consumes it natively unless that target supplies options.title; YouTube limits it to 100 characters.

maxLength
10000
contentstring

Post text. May be omitted or blank only when at least one owned media attachment is supplied; each target adapter still enforces its provider content contract.

example
Hello from zumpo
tagsarray

Durable keywords. Exact duplicates are removed; YouTube consumes them natively and enforces 100 characters per tag and 500 combined.

maxItems
100
Array itemstring
hashtagsarray

Reference-only hashtags; content is never mutated from this list.

maxItems
100
Array itemstring
mentionsarray

Reference-only mentions. Provider-native mentions must still be embedded in content/options.

maxItems
100
Array itemstring
crosspostingEnabledboolean

Durable caller intent. It does not create targets or synthesize provider-side crossposts.

default
true
metadataobject

Bounded non-secret JSON metadata, echoed in post webhook payloads. Credential-like field names are rejected.

additionalProperties
true
platformsarray

Required and non-empty for every non-draft scheduling mode; drafts persist no targets. At most 100 targets per post.

maxItems
100
Array itemobject

Discriminated target union. Pinterest has a closed typed options contract; every other platform keeps the existing generic v1 options object.

#/components/schemas/CreatePostPlatformDto
discriminator
{ "propertyName": "platform", "mapping": { "instagram": "#/components/schemas/GenericCreatePostPlatformDto", "facebook": "#/components/schemas/GenericCreatePostPlatformDto", "threads": "#/components/schemas/GenericCreatePostPlatformDto", "whatsapp": "#/components/schemas/GenericCreatePostPlatformDto", "twitter": "#/components/schemas/GenericCreatePostPlatformDto", "linkedin": "#/components/schemas/GenericCreatePostPlatformDto", "youtube": "#/components/schemas/GenericCreatePostPlatformDto", "tiktok": "#/components/schemas/GenericCreatePostPlatformDto", "reddit": "#/components/schemas/GenericCreatePostPlatformDto", "bluesky": "#/components/schemas/GenericCreatePostPlatformDto", "telegram": "#/components/schemas/GenericCreatePostPlatformDto", "discord": "#/components/schemas/GenericCreatePostPlatformDto", "slack": "#/components/schemas/GenericCreatePostPlatformDto", "google_business": "#/components/schemas/GenericCreatePostPlatformDto", "snapchat": "#/components/schemas/GenericCreatePostPlatformDto", "mastodon": "#/components/schemas/GenericCreatePostPlatformDto", "pinterest": "#/components/schemas/PinterestCreatePostPlatformDto" } }
required
[ "platform", "accountId" ]
platformstringrequired
enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon" ]
example
pinterest
accountIdstringrequired
example
a1b2c3d4e5f6a7b8c9d0e1f2
customContentstring

Target-specific text. Omitted inherits the root post content.

customMediaarray

Ordered team-owned media override. Omitted inherits root media; [] overrides it with no media.

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.
scheduledForstring

Target-specific dispatch time. Omitted inherits the root schedule.

format
date-time
optionsobject
additionalProperties
true
example
{ "boardId": "200000000000000001" }
platformSpecificDataobject

Zernio-compatible alias of options. A target must not send both fields.

additionalProperties
true
oneOf / 1object
#/components/schemas/GenericCreatePostPlatformDto
additionalProperties
false
required
[ "platform", "accountId" ]
platformstringrequired

Existing v1 target shape for every supported platform except Pinterest.

enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon" ]
example
mastodon
accountIdstringrequired
example
a1b2c3d4e5f6a7b8c9d0e1f2
customContentstring

Target-specific text. Omitted inherits the root post content.

customMediaarray

Ordered team-owned media override. Omitted inherits root media; an empty array deliberately publishes without root media.

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.
scheduledForstring

Target-specific dispatch time. Omitted inherits the root schedule.

format
date-time
optionsobject
additionalProperties
true
example
{ "__simulate": "rate_limited" }
platformSpecificDataobject

Zernio-compatible alias of options. A target must not send both fields.

additionalProperties
true
oneOf / 2object
#/components/schemas/PinterestCreatePostPlatformDto
additionalProperties
false
required
[ "platform", "accountId" ]
platformstringrequired
enum
[ "pinterest" ]
example
pinterest
accountIdstringrequired
pattern
^[0-9a-f]{24}$
example
a1b2c3d4e5f6a7b8c9d0e1f2
customContentstring
customMediaarray
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.
scheduledForstring
format
date-time
optionsobject
#/components/schemas/PinterestPostOptionsDto
additionalProperties
false
required
[ "boardId" ]
boardIdstringrequired

Positive 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
titlestring

Optional 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
linkstring

Destination 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
altTextstring

Legacy 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.
boardSectionIdstring

Optional 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
isAiGeneratedboolean

When true, sends Pinterest's AI_MODIFIED disclosure. False omits the disclosure.

default
false
example
true
coverImageUrlstring

Optional 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
coverImageKeyFrameTimeinteger

Optional 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
platformSpecificDataallOf

Zernio-compatible alias of options. A target must not send both fields.

allOf / 1object
#/components/schemas/PinterestPostOptionsDto
additionalProperties
false
required
[ "boardId" ]
boardIdstringrequired

Positive 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
titlestring

Optional 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
linkstring

Destination 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
altTextstring

Legacy 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.
boardSectionIdstring

Optional 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
isAiGeneratedboolean

When true, sends Pinterest's AI_MODIFIED disclosure. False omits the disclosure.

default
false
example
true
coverImageUrlstring

Optional 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
coverImageKeyFrameTimeinteger

Optional 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
tiktokSettingsobject

Root TikTok compatibility settings normalized into canonical adapter options for every TikTok target; per-target values win.

additionalProperties
true
facebookSettingsobject

Root Facebook settings normalized into each Facebook target adapter options; direct per-target values and nested per-target facebookSettings win.

additionalProperties
true
mediaIdsarray

Ordered team-owned media ids. Each target is constrained by its platform-specific capability.

maxItems
35
example
[ "a1b2c3d4e5f6a7b8c9d0e1f2" ]
Array itemstring
mediaItemsarray

Ordered team-owned media attachments with optional accessibility text. Mutually exclusive with mediaIds.

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.
scheduledForstring
format
date-time
example
2026-07-30T09:00:00.000Z
publishNowboolean
default
false
example
true
isDraftboolean
default
false
example
true
recyclingallOf

Automatically creates scheduled copies after the source is published. YouTube and TikTok targets are not eligible.

allOf / 1object
#/components/schemas/RecyclingConfigDto
additionalProperties
false
enabledboolean

Set false to disable recurring copies while preserving its cadence.

default
true
gapinteger
minimum
1
example
2
gapFreqstring
enum
[ "week", "month" ]
default
month
startDatestring

Cycle anchor. Defaults to the resolved post schedule.

format
date-time
expireCountinteger

Maximum generated copies; null clears the existing limit on update.

nullable
true
minimum
1
expireDatestring

Last allowed occurrence; null clears the existing limit on update.

nullable
true
format
date-time
contentVariationsarray

Round-robin base content. Use 2-20 entries, or [] on update to clear it. Target customContent still wins.

maxItems
20
Array itemstring
timezonestring

IANA timezone for non-queue schedules. In queue mode, when supplied it must match the selected queue timezone.

example
Europe/Istanbul
exactTimingboolean
default
false
example
true
queuedFromProfilestring

Selects recurring queue mode. If queueId is omitted, this profile must contain exactly one queue.

example
a1b2c3d4e5f6a7b8c9d0e1f2
queueIdstring

Queue to allocate from. Optional only when queuedFromProfile contains exactly one queue.

example
b2c3d4e5f6a7b8c9d0e1f2a3
skipDuplicateCheckboolean

Bypasses only the 24-hour content duplicate fence; request replay remains active.

default
false
Original schema
{
  "$ref": "#/components/schemas/CreatePostDto"
}

Responses

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

200Existing post replayed

Existing post replayed

application/json
Response 200object
#/components/schemas/CreatePostResponseDto
required
[ "message", "existingPost", "post", "targets" ]
messagestringrequired
example
Post scheduled successfully
existingPostbooleanrequired

True only for a five-minute request replay.

default
false
postobjectrequired
#/components/schemas/CreatedPostDto
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
Original schema
{
  "$ref": "#/components/schemas/CreatePostResponseDto"
}
201Draft created

Draft created

application/json
Response 201object
#/components/schemas/CreatePostResponseDto
required
[ "message", "existingPost", "post", "targets" ]
messagestringrequired
example
Post scheduled successfully
existingPostbooleanrequired

True only for a five-minute request replay.

default
false
postobjectrequired
#/components/schemas/CreatedPostDto
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
Original schema
{
  "$ref": "#/components/schemas/CreatePostResponseDto"
}
202Response schema
application/json
Response 202object
#/components/schemas/CreatePostResponseDto
required
[ "message", "existingPost", "post", "targets" ]
messagestringrequired
example
Post scheduled successfully
existingPostbooleanrequired

True only for a five-minute request replay.

default
false
postobjectrequired
#/components/schemas/CreatedPostDto
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
Original schema
{
  "$ref": "#/components/schemas/CreatePostResponseDto"
}
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"
}
409Response schema
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"
}
422Response schema
application/json
Response 422object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

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

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

Stable error category (does not change across versions).

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

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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

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

Rate limit exceeded

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

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

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

Stable error category (does not change across versions).

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

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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

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

Response headers

X-RateLimit-Limit

Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.

X-RateLimit-Limitinteger
minimum
1
Original schema
{
  "type": "integer",
  "minimum": 1
}

X-RateLimit-Remaining

Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.

X-RateLimit-Remaininginteger
minimum
0
Original schema
{
  "type": "integer",
  "minimum": 0
}

X-RateLimit-Reset

Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.

X-RateLimit-Resetinteger
format
int64
minimum
0
Original schema
{
  "type": "integer",
  "format": "int64",
  "minimum": 0
}

Retry-After

Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.

Retry-Afterinteger
minimum
1
maximum
86400
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 86400
}
500Server error

Server error

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

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

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

Stable error category (does not change across versions).

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

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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

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

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

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

Stable error category (does not change across versions).

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

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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

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

Platform error

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

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

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

Stable error category (does not change across versions).

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

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

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

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

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

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

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

CreatePostDto

#/components/schemas/CreatePostDto

{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 10000,
      "description": "Durable root title. YouTube consumes it natively unless that target supplies options.title; YouTube limits it to 100 characters."
    },
    "content": {
      "type": "string",
      "example": "Hello from zumpo",
      "description": "Post text. May be omitted or blank only when at least one owned media attachment is supplied; each target adapter still enforces its provider content contract."
    },
    "tags": {
      "maxItems": 100,
      "description": "Durable keywords. Exact duplicates are removed; YouTube consumes them natively and enforces 100 characters per tag and 500 combined.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "hashtags": {
      "maxItems": 100,
      "description": "Reference-only hashtags; content is never mutated from this list.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mentions": {
      "maxItems": 100,
      "description": "Reference-only mentions. Provider-native mentions must still be embedded in content/options.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "crosspostingEnabled": {
      "type": "boolean",
      "default": true,
      "description": "Durable caller intent. It does not create targets or synthesize provider-side crossposts."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true,
      "description": "Bounded non-secret JSON metadata, echoed in post webhook payloads. Credential-like field names are rejected."
    },
    "platforms": {
      "maxItems": 100,
      "description": "Required and non-empty for every non-draft scheduling mode; drafts persist no targets. At most 100 targets per post.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreatePostPlatformDto"
      }
    },
    "tiktokSettings": {
      "type": "object",
      "additionalProperties": true,
      "description": "Root TikTok compatibility settings normalized into canonical adapter options for every TikTok target; per-target values win."
    },
    "facebookSettings": {
      "type": "object",
      "additionalProperties": true,
      "description": "Root Facebook settings normalized into each Facebook target adapter options; direct per-target values and nested per-target facebookSettings win."
    },
    "mediaIds": {
      "maxItems": 35,
      "description": "Ordered team-owned media ids. Each target is constrained by its platform-specific capability.",
      "example": [
        "a1b2c3d4e5f6a7b8c9d0e1f2"
      ],
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mediaItems": {
      "maxItems": 35,
      "description": "Ordered team-owned media attachments with optional accessibility text. Mutually exclusive with mediaIds.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostMediaItemDto"
      }
    },
    "scheduledFor": {
      "type": "string",
      "format": "date-time",
      "example": "2026-07-30T09:00:00.000Z"
    },
    "publishNow": {
      "type": "boolean",
      "default": false,
      "example": true
    },
    "isDraft": {
      "type": "boolean",
      "default": false,
      "example": true
    },
    "recycling": {
      "description": "Automatically creates scheduled copies after the source is published. YouTube and TikTok targets are not eligible.",
      "allOf": [
        {
          "$ref": "#/components/schemas/RecyclingConfigDto"
        }
      ]
    },
    "timezone": {
      "type": "string",
      "example": "Europe/Istanbul",
      "description": "IANA timezone for non-queue schedules. In queue mode, when supplied it must match the selected queue timezone."
    },
    "exactTiming": {
      "type": "boolean",
      "default": false,
      "example": true
    },
    "queuedFromProfile": {
      "type": "string",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2",
      "description": "Selects recurring queue mode. If queueId is omitted, this profile must contain exactly one queue."
    },
    "queueId": {
      "type": "string",
      "example": "b2c3d4e5f6a7b8c9d0e1f2a3",
      "description": "Queue to allocate from. Optional only when queuedFromProfile contains exactly one queue."
    },
    "skipDuplicateCheck": {
      "type": "boolean",
      "default": false,
      "description": "Bypasses only the 24-hour content duplicate fence; request replay remains active."
    }
  },
  "additionalProperties": false
}
CreatePostPlatformDto

#/components/schemas/CreatePostPlatformDto

{
  "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",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2"
    },
    "customContent": {
      "type": "string",
      "description": "Target-specific text. Omitted inherits the root post content."
    },
    "customMedia": {
      "maxItems": 35,
      "description": "Ordered team-owned media override. Omitted inherits root media; [] overrides it with no media.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostMediaItemDto"
      }
    },
    "scheduledFor": {
      "type": "string",
      "format": "date-time",
      "description": "Target-specific dispatch time. Omitted inherits the root schedule."
    },
    "options": {
      "type": "object",
      "additionalProperties": true,
      "example": {
        "boardId": "200000000000000001"
      }
    },
    "platformSpecificData": {
      "type": "object",
      "additionalProperties": true,
      "description": "Zernio-compatible alias of options. A target must not send both fields."
    }
  },
  "description": "Discriminated target union. Pinterest has a closed typed options contract; every other platform keeps the existing generic v1 options object.",
  "oneOf": [
    {
      "$ref": "#/components/schemas/GenericCreatePostPlatformDto"
    },
    {
      "$ref": "#/components/schemas/PinterestCreatePostPlatformDto"
    }
  ],
  "discriminator": {
    "propertyName": "platform",
    "mapping": {
      "instagram": "#/components/schemas/GenericCreatePostPlatformDto",
      "facebook": "#/components/schemas/GenericCreatePostPlatformDto",
      "threads": "#/components/schemas/GenericCreatePostPlatformDto",
      "whatsapp": "#/components/schemas/GenericCreatePostPlatformDto",
      "twitter": "#/components/schemas/GenericCreatePostPlatformDto",
      "linkedin": "#/components/schemas/GenericCreatePostPlatformDto",
      "youtube": "#/components/schemas/GenericCreatePostPlatformDto",
      "tiktok": "#/components/schemas/GenericCreatePostPlatformDto",
      "reddit": "#/components/schemas/GenericCreatePostPlatformDto",
      "bluesky": "#/components/schemas/GenericCreatePostPlatformDto",
      "telegram": "#/components/schemas/GenericCreatePostPlatformDto",
      "discord": "#/components/schemas/GenericCreatePostPlatformDto",
      "slack": "#/components/schemas/GenericCreatePostPlatformDto",
      "google_business": "#/components/schemas/GenericCreatePostPlatformDto",
      "snapchat": "#/components/schemas/GenericCreatePostPlatformDto",
      "mastodon": "#/components/schemas/GenericCreatePostPlatformDto",
      "pinterest": "#/components/schemas/PinterestCreatePostPlatformDto"
    }
  },
  "required": [
    "platform",
    "accountId"
  ]
}
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"
  ]
}
GenericCreatePostPlatformDto

#/components/schemas/GenericCreatePostPlatformDto

{
  "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": "mastodon",
      "description": "Existing v1 target shape for every supported platform except Pinterest."
    },
    "accountId": {
      "type": "string",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2"
    },
    "customContent": {
      "type": "string",
      "description": "Target-specific text. Omitted inherits the root post content."
    },
    "customMedia": {
      "maxItems": 35,
      "description": "Ordered team-owned media override. Omitted inherits root media; an empty array deliberately publishes without root media.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostMediaItemDto"
      }
    },
    "scheduledFor": {
      "type": "string",
      "format": "date-time",
      "description": "Target-specific dispatch time. Omitted inherits the root schedule."
    },
    "options": {
      "type": "object",
      "additionalProperties": true,
      "example": {
        "__simulate": "rate_limited"
      }
    },
    "platformSpecificData": {
      "type": "object",
      "additionalProperties": true,
      "description": "Zernio-compatible alias of options. A target must not send both fields."
    }
  },
  "additionalProperties": false,
  "required": [
    "platform",
    "accountId"
  ]
}
PinterestCreatePostPlatformDto

#/components/schemas/PinterestCreatePostPlatformDto

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "pinterest"
      ],
      "example": "pinterest"
    },
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2"
    },
    "customContent": {
      "type": "string"
    },
    "customMedia": {
      "maxItems": 35,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PostMediaItemDto"
      }
    },
    "scheduledFor": {
      "type": "string",
      "format": "date-time"
    },
    "options": {
      "$ref": "#/components/schemas/PinterestPostOptionsDto"
    },
    "platformSpecificData": {
      "description": "Zernio-compatible alias of options. A target must not send both fields.",
      "allOf": [
        {
          "$ref": "#/components/schemas/PinterestPostOptionsDto"
        }
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "platform",
    "accountId"
  ]
}
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"
  ]
}
RecyclingConfigDto

#/components/schemas/RecyclingConfigDto

{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "default": true,
      "description": "Set false to disable recurring copies while preserving its cadence."
    },
    "gap": {
      "type": "integer",
      "minimum": 1,
      "example": 2
    },
    "gapFreq": {
      "type": "string",
      "enum": [
        "week",
        "month"
      ],
      "default": "month"
    },
    "startDate": {
      "type": "string",
      "format": "date-time",
      "description": "Cycle anchor. Defaults to the resolved post schedule."
    },
    "expireCount": {
      "type": "integer",
      "nullable": true,
      "minimum": 1,
      "description": "Maximum generated copies; null clears the existing limit on update."
    },
    "expireDate": {
      "type": "string",
      "nullable": true,
      "format": "date-time",
      "description": "Last allowed occurrence; null clears the existing limit on update."
    },
    "contentVariations": {
      "maxItems": 20,
      "description": "Round-robin base content. Use 2-20 entries, or [] on update to clear it. Target customContent still wins.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
CreatePostResponseDto

#/components/schemas/CreatePostResponseDto

{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "example": "Post scheduled successfully"
    },
    "existingPost": {
      "type": "boolean",
      "default": false,
      "description": "True only for a five-minute request replay."
    },
    "post": {
      "$ref": "#/components/schemas/CreatedPostDto"
    },
    "targets": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreatedPostTargetDto"
      }
    }
  },
  "required": [
    "message",
    "existingPost",
    "post",
    "targets"
  ]
}
CreatedPostDto

#/components/schemas/CreatedPostDto

{
  "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"
  ]
}
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"
  ]
}