{"openapi":"3.0.0","paths":{"/public/v1/channels":{"get":{"description":"The accounts this organization has connected. The first call any integration makes: an `id` from here is what `channels[].channelId` targets when creating a post.\n\nCheck `needsReconnect` before scheduling. A post to a channel in that state is accepted and then fails at publish time, because only a human in a browser can re-authorize it.\n\nConnecting an account is deliberately not on this API. It is an interactive OAuth flow ending in a redirect, so it cannot be driven by a key. Customers connect in the app and automate against what they connected.","operationId":"PublicChannelsController_list","parameters":[],"responses":{"200":{"description":"Every connected account, including any needing reconnection.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"List connected channels","tags":["Channels"]}},"/public/v1/channels/{id}/capabilities":{"get":{"description":"Some rules belong to the account rather than the platform: the privacy levels a TikTok creator may post as, a setting they switched off account-wide that every post must then match, the flair a subreddit requires. `GET /platforms` cannot publish those, which is why some of its `choices` are null. This is where they are.\n\nRead live from the platform, so it is the best answer right now rather than a promise, and the same rules are checked again when the post goes out. A platform that declares everything up front answers with an empty `options` and nulls, and `GET /platforms` already said it all.\n\nA channel that needs reconnecting is a 409. A platform that refused the read is a 422, and one that failed it is a 502; both carry the platform’s own reason.","operationId":"PublicChannelsController_capabilities","parameters":[{"name":"id","required":true,"in":"path","description":"The channel id.","schema":{"type":"string"}}],"responses":{"200":{"description":"What this account allows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelCapabilities"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`platform_error`: the social platform refused or failed the call this request made on your behalf. `error.message` carries the platform’s own reason. Retry only if that reason is temporary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get what one channel allows","tags":["Channels"]}},"/public/v1/channels/{id}/options/{key}/choices":{"get":{"description":"For an option whose `type` is `search` on `GET /platforms`, such as Instagram’s `location_id`: a set too large to publish, so it is searched instead. Pass `q` to turn a name into values, and send the chosen `value` as the option. Pass `value` instead to turn a stored value back into its label (zero or one result).\n\nWith neither, the answer is an empty list. An option that is not a `search`, or that this platform does not have, is a 400, and so is a search that runs on your own platform app when none is set up. A platform that refused the search is a 422, and one that failed it is a 502; both carry the platform’s own reason.","operationId":"PublicChannelsController_searchOptionChoices","parameters":[{"name":"id","required":true,"in":"path","description":"The channel id.","schema":{"type":"string"}},{"name":"key","required":true,"in":"path","description":"The option’s `key` on `GET /platforms`.","schema":{"example":"location_id","type":"string"}},{"name":"q","required":false,"in":"query","description":"What to search for. Read first when both are sent.","schema":{}},{"name":"value","required":false,"in":"query","description":"A value already stored, whose label you want.","schema":{}}],"responses":{"200":{"description":"The matching values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionChoices"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`platform_error`: the social platform refused or failed the call this request made on your behalf. `error.message` carries the platform’s own reason. Retry only if that reason is temporary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Search an option’s values","tags":["Channels"]}},"/public/v1/media":{"get":{"description":"Newest first, a page at a time, in the same envelope as `GET /posts`. Every `url` here is short-lived and minted fresh per response, so key anything durable off `id`, which is also what a post’s `blocks[].mediaIds` references.","operationId":"PublicMediaController_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"The previous page’s `nextCursor`. Opaque: a value we did not issue is rejected rather than silently restarting at page one.","schema":{}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"default":25},"description":"Page size. Clamped to 100; asking for more is not an error."}],"responses":{"200":{"description":"A page of the organization’s library.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaPage"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"List the media library","tags":["Media"]},"post":{"description":"`multipart/form-data` under the field name `file`. Returns an id usable straight away in `blocks[].mediaIds`.\n\nBytes are proxied through the API rather than handed a presigned bucket URL, so the server sees the real content: a file whose bytes disagree with its declared type is rejected here rather than at publish time.\n\nJPEG, PNG, WebP, GIF, MP4, MOV, PDF, VTT or SRT. Images up to 10 MB, video and PDFs up to 100 MB, subtitle files up to 5 MB. A larger video goes through `POST /media/uploads`. Uploads count against the plan’s storage allowance, which is a stock: deleting a file frees it immediately.","operationId":"PublicMediaController_upload","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UploadMediaRequest"}}}},"responses":{"201":{"description":"The stored item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaItem"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan’s allowance for this period is spent (`quota_exceeded`). NOT retryable: nothing about your request timing will help, and the limit resets at `periodEnd` from `GET /public/v1/usage`. Distinct from 429 on purpose.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`: an upload past the per-kind ceiling (10 MB for images, 100 MB for video and documents, 5 MB for subtitle files), or a JSON body past the one a request may carry. A larger video goes through `POST /media/uploads`, where the ceiling is the plan’s video cap instead and going over it is a 402. A limit on the resource, not on the plan: a bigger plan does not raise it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"`unsupported_media_type`: that file type is not something any supported platform can publish. Accepting it would upload cleanly and then fail at publish, which is the failure this refusal exists to prevent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Upload media","tags":["Media"]}},"/public/v1/media/uploads":{"post":{"description":"For a video too large for `POST /media`, up to the plan’s video cap. The file goes straight to storage in parts, so a dropped connection costs one part rather than the whole file:\n\n1. Start a session here with the file’s name, type and exact size.\n2. Ask for part URLs with `POST /media/uploads/{id}/parts`, a batch at a time.\n3. PUT each part’s bytes to its URL. Parts may go in parallel and in any order.\n4. Finish with `POST /media/uploads/{id}/complete`, which returns the media item.\n\nMP4 and MOV only. The plan’s video cap (402 over it) and storage allowance are checked now, before a byte moves. A session left unfinished for a day is cleaned up; `DELETE /media/uploads/{id}` gives it up sooner.","operationId":"PublicMediaController_startUpload","parameters":[{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartMediaUploadRequest"}}}},"responses":{"201":{"description":"The open session and how to cut the file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUpload"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan’s allowance for this period is spent (`quota_exceeded`). NOT retryable: nothing about your request timing will help, and the limit resets at `periodEnd` from `GET /public/v1/usage`. Distinct from 429 on purpose.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`: an upload past the per-kind ceiling (10 MB for images, 100 MB for video and documents, 5 MB for subtitle files), or a JSON body past the one a request may carry. A larger video goes through `POST /media/uploads`, where the ceiling is the plan’s video cap instead and going over it is a 402. A limit on the resource, not on the plan: a bigger plan does not raise it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"`unsupported_media_type`: that file type is not something any supported platform can publish. Accepting it would upload cleanly and then fail at publish, which is the failure this refusal exists to prevent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Start a large video upload","tags":["Media"]}},"/public/v1/media/uploads/{id}":{"delete":{"description":"Throws the session away, parts and all, and frees what it held against the storage allowance. A session that already finished, completed or abandoned, is a 404.","operationId":"PublicMediaController_abortUpload","parameters":[{"name":"id","required":true,"in":"path","description":"The upload session id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Abandoned. No body."},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Abandon a large video upload","tags":["Media"]}},"/public/v1/media/uploads/{id}/complete":{"post":{"description":"Joins the parts, checks the file and adds it to the library. The returned `id` is usable straight away in `blocks[].mediaIds`.\n\nA part that is missing or the wrong length is a 400 that leaves the session open: send that part again and complete again. Anything wrong with the joined FILE (not the size declared, not the type declared) is final, and the session is closed. A complete that races another for the same session is a 409. Send an `Idempotency-Key`: a retry after a timeout then gets the media item back. Without one, a session that has finished is gone, and completing or abandoning it again is a 404.","operationId":"PublicMediaController_completeUpload","parameters":[{"name":"id","required":true,"in":"path","description":"The upload session id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"The stored item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaItem"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"`unsupported_media_type`: that file type is not something any supported platform can publish. Accepting it would upload cleanly and then fail at publish, which is the failure this refusal exists to prevent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Complete a large video upload","tags":["Media"]}},"/public/v1/media/uploads/{id}/parts":{"post":{"description":"Signed URLs for some of a session’s parts. Each is valid for an hour and for that part’s exact length, so ask in batches as you go rather than all at once on a large file. Asking again for a part re-signs it, which is how a failed part is retried.","operationId":"PublicMediaController_signUploadParts","parameters":[{"name":"id","required":true,"in":"path","description":"The upload session id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignMediaUploadPartsRequest"}}}},"responses":{"200":{"description":"One URL per part asked for.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MediaUploadPart"}}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Sign upload part URLs","tags":["Media"]}},"/public/v1/media/{id}":{"delete":{"description":"Does not un-publish anything: an image already sent to a platform lives on that platform’s storage. A post scheduled to use it will fail at publish time rather than silently going out without it.","operationId":"PublicMediaController_remove","parameters":[{"name":"id","required":true,"in":"path","description":"The media id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted. No body."},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Delete a library item","tags":["Media"]}},"/public/v1/platforms":{"get":{"description":"Character counts, attachments per block, thread length and whether media is mandatory, served live from the same declarations this API validates against.\n\nRead these rather than hardcoding them. A client carrying its own copy of \"280\" will be wrong before we are, and it surfaces as a rejected post rather than a stale constant.\n\nNot organization-scoped: this describes the platforms, not what you have connected. That is `GET /channels`.","operationId":"PublicPlatformsController_list","parameters":[],"responses":{"200":{"description":"Every supported platform.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Platform"}}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"List platform capabilities","tags":["Platforms"]}},"/public/v1/posts":{"get":{"description":"Newest first, cursor-paginated. A submission matches a `status` filter if ANY of its channels does.","operationId":"PublicPostsController_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"The previous page’s `nextCursor`. Opaque: a value we did not issue is rejected rather than silently restarting at page one, because a paged export that quietly rewinds re-processes everything and the client has no way to notice.","schema":{}},{"name":"from","required":false,"in":"query","schema":{"type":"string","format":"date-time"},"description":"Inclusive start of a scheduling window."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"default":25},"description":"Page size. Clamped to 100; asking for more is not an error."},{"name":"status","required":false,"in":"query","style":"form","explode":true,"description":"Repeatable: `?status=scheduled&status=failed`. `partially_published` is absent because it is computed across a submission’s channels rather than stored on any of them. Filter on `published` or `failed` and read the rolled-up `status` you get back.","schema":{"type":"array","items":{"type":"string","enum":["draft","scheduled","publishing","published","failed"]}}},{"name":"tag","required":false,"in":"query","style":"form","explode":true,"description":"Repeatable: `?tag=tag_a&tag=tag_b`. Tag ids from `GET /public/v1/tags`. ORs, like `status`: a submission matches if it carries any of them. An id this workspace does not own matches nothing rather than erroring.","schema":{"type":"array","items":{"type":"string"}}},{"name":"to","required":false,"in":"query","schema":{"type":"string","format":"date-time"},"description":"Inclusive end of a scheduling window."}],"responses":{"200":{"description":"A page of submissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPage"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"List submissions","tags":["Posts"]},"post":{"description":"One call, one submission, however many channels. Sending this once per channel instead produces that many unrelated submissions, each with its own id and schedule.\n\n`intent: \"now\"` is **asynchronous**: the response comes back `publishing`, not published. Poll `GET /posts/{id}` for the outcome.\n\nEvery channel is validated against its own platform’s rules (and your allowance checked) before anything is written. So a REFUSAL is total: a `4xx` here created nothing, and there is no state where two of four channels exist because the third had a typo.\n\nThe write itself is one transaction, so a database failure is total too: there is no half-written submission.\n\nSCHEDULING is where the channels stop being one thing: each gets its own workflow, and an outage while starting the fourth must not unschedule three that are already correct. So a submission where some channels started comes back **2xx with the failures per channel** (that channel reads `failed` and carries the reason) rather than as a blanket error. Retry it by sending the submission again to `PUT /posts/{id}`, which reschedules the failed channels without duplicating the ones that worked. Only a submission where EVERY channel failed to start is a `503`.\n\nSend an `Idempotency-Key` regardless: on that `503` the retry replays the failure instead of creating the submission twice, and `GET /posts` shows what exists.","operationId":"PublicPostsController_create","parameters":[{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostRequest"},"examples":{"schedule":{"summary":"Schedule one post to two channels","value":{"intent":"schedule","scheduledAt":"2030-06-15T09:00:00.000Z","channels":[{"channelId":"clx3k2p9q0001abcd1234efgh","blocks":[{"content":"We cut our build time in half. Here is how."}]},{"channelId":"clx3k2p9q0002abcd1234efgh","blocks":[{"content":"Our build used to take 14 minutes. Today it takes 7. Here is what we changed and what we learned along the way."}]}]}}}}}},"responses":{"201":{"description":"The submission, with one entry per channel. A channel that failed to schedule is in it too, reading `failed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan’s allowance for this period is spent (`quota_exceeded`). NOT retryable: nothing about your request timing will help, and the limit resets at `periodEnd` from `GET /public/v1/usage`. Distinct from 429 on purpose.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`: an upload past the per-kind ceiling (10 MB for images, 100 MB for video and documents, 5 MB for subtitle files), or a JSON body past the one a request may carry. A larger video goes through `POST /media/uploads`, where the ceiling is the plan’s video cap instead and going over it is a 402. A limit on the resource, not on the plan: a bigger plan does not raise it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Create a submission","tags":["Posts"]}},"/public/v1/posts/{id}":{"get":{"description":"Every channel it went to and every block of each. This is what you poll after `intent: \"now\"`. Publishing is asynchronous, so the create response tells you it was queued and this tells you what happened.","operationId":"PublicPostsController_get","parameters":[{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The submission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get one submission","tags":["Posts"]},"put":{"description":"A full resubmission, not a patch. The server reconciles the difference: a channel absent from the body is removed and its timer terminated, a new one is created and scheduled.\n\nThat is why this is a PUT: a partial body would delete every channel it did not mention. Send the whole submission every time.\n\nOnly channels the edit ADDS count against your posts allowance; re-saving the ones already there is free, so fixing a typo never costs an allowance.\n\nRescheduling behaves as it does on create: a channel that fails to start comes back `failed` alongside the ones that did, rather than failing the whole call. So this doubles as the retry for a partially-scheduled submission.","operationId":"PublicPostsController_replace","parameters":[{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostRequest"}}}},"responses":{"200":{"description":"The submission as it now stands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan’s allowance for this period is spent (`quota_exceeded`). NOT retryable: nothing about your request timing will help, and the limit resets at `periodEnd` from `GET /public/v1/usage`. Distinct from 429 on purpose.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`payload_too_large`: an upload past the per-kind ceiling (10 MB for images, 100 MB for video and documents, 5 MB for subtitle files), or a JSON body past the one a request may carry. A larger video goes through `POST /media/uploads`, where the ceiling is the plan’s video cap instead and going over it is a 402. A limit on the resource, not on the plan: a bigger plan does not raise it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Replace a submission","tags":["Posts"]},"delete":{"description":"Removes **our** record. Anything already published stays live on the platform.\n\nThat is deliberate and not a limitation: `POST /posts/{id}/retract` takes the published copies down. This route keeps its meaning because it is the one people call to tidy a list, and turning that into a takedown of real content would be far worse than leaving it as it is.\n\nUse this to forget a post; use `retract` to unpublish one.","operationId":"PublicPostsController_remove","parameters":[{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted. No body."},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Delete a submission","tags":["Posts"]}},"/public/v1/posts/{id}/comments":{"get":{"description":"Comments on ONE channel’s copy of the submission, read live from the platform. Nothing is stored, so a comment deleted on the platform is gone here too.\n\nTop-level comments, each with its direct replies (one level). Your own thread’s later blocks are never listed.\n\nRead `commentsStatus` on `GET /public/v1/channels` first. A channel that is not `available` is refused with `comments_not_supported` or `comments_not_granted` rather than answered with an empty page, because an empty page would read as \"nobody commented\".\n\nSome platforms only let a connected app read recent comments, or only at certain access levels. Where the platform refuses, the error says so in its own words: `platform_refused` (422) when retrying won’t help, such as comments turned off on the post, and `platform_error` (502) when the platform failed and a retry might.","operationId":"PublicPostsController_listComments","parameters":[{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}},{"name":"channelId","required":true,"in":"query","description":"Which channel’s copy, an id from `GET /public/v1/channels`.","schema":{}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous page’s `nextCursor`.","schema":{}}],"responses":{"200":{"description":"One page of comments.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentPage"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`platform_error`: the social platform refused or failed the call this request made on your behalf. `error.message` carries the platform’s own reason. Retry only if that reason is temporary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"List comments on a published submission","tags":["Posts"]}},"/public/v1/posts/{id}/comments/{commentId}/replies":{"post":{"description":"Posts a reply to one comment on a published submission, as the connected account. It is public the moment this returns.\n\n**A reply counts as a post** against the plan’s allowance, like a submission to one channel. Out of allowance is `402 quota_exceeded`.\n\n`commentId` must be a comment on THIS submission’s copy on that channel, as `GET /posts/{id}/comments` returned it; any other id is `comment_not_found`.\n\nSend an `Idempotency-Key`: a retried reply without one is a second public reply.","operationId":"PublicPostsController_replyToComment","parameters":[{"name":"commentId","required":true,"in":"path","description":"The comment to answer, an `id` from `GET /posts/{id}/comments`.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyToCommentRequest"}}}},"responses":{"201":{"description":"The reply that was posted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentReply"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan’s allowance for this period is spent (`quota_exceeded`). NOT retryable: nothing about your request timing will help, and the limit resets at `periodEnd` from `GET /public/v1/usage`. Distinct from 429 on purpose.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`platform_error`: the social platform refused or failed the call this request made on your behalf. `error.message` carries the platform’s own reason. Retry only if that reason is temporary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Reply to a comment","tags":["Posts"]}},"/public/v1/posts/{id}/metrics":{"get":{"description":"Every reading the sweep has stored for this submission, per channel, oldest first. `GET /public/v1/stats` sums the LATEST reading of many publications over a window; this is every reading of one.\n\nCUMULATIVE, NOT PER-INTERVAL. Each reading is the platform’s running total at that instant, so a curve only climbs, and a drop between two readings is real and means people undid something. The engagement gained BETWEEN two captures is their difference; this endpoint does not send it.\n\nTHE POINTS ARE NOT EVENLY SPACED. Sampling decays: roughly hourly for the first day, daily for a week, weekly out to thirty days, then it stops for good. Plot against `capturedAt` and never against the index, and read a month-old post as frozen at its last reading rather than as having stopped earning.\n\nAN ABSENT METRIC IS NOT A ZERO, exactly as on `/stats`. A key missing from a reading’s `values` was not reported at that capture: most platforms simply do not measure most metrics.\n\nA channel with an empty `readings` is the normal case, not an error, and this endpoint deliberately does not say which of the three reasons applies: the platform reports nothing to us, the connection was authorized before we asked for the read permission, or the post has not been swept yet. All three are facts about the CHANNEL, so join `channelId` against `metricsStatus` on `GET /public/v1/channels`.","operationId":"PublicPostsController_metrics","parameters":[{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The submission’s engagement curves, per channel.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostMetrics"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get one submission’s engagement over time","tags":["Posts"]}},"/public/v1/posts/{id}/publish":{"post":{"description":"Queues every channel of this submission that has not already published. The ones that have are skipped rather than re-published, which is what makes this safe to call on a `partially_published` submission: it finishes the job instead of duplicating the part that worked.\n\nAsynchronous, like `intent: \"now\"`: this returns once the work is durably queued.\n\nA write, despite reading like an action: a read-only key is refused here.","operationId":"PublicPostsController_publish","parameters":[{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The submission, with the queued channels now `publishing`. 201 rather than 200 (the framework default for POST); nothing new was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan’s allowance for this period is spent (`quota_exceeded`). NOT retryable: nothing about your request timing will help, and the limit resets at `periodEnd` from `GET /public/v1/usage`. Distinct from 429 on purpose.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Publish now, or retry","tags":["Posts"]}},"/public/v1/posts/{id}/retract":{"post":{"description":"Deletes each channel’s copy **on its platform**, then removes our record of the channels that came down. This is the one that takes a published post down; `DELETE` below does not.\n\nNot every channel can be retracted, so this always answers `200` with two lists rather than a bare success. `removed` is gone from the platform and from here; `remaining` is still live, each entry carrying a sentence saying why: the platform offers no delete at all (`supportsRemoteDelete` on `GET /platforms`), this connection was never granted the permission (`manageStatus` on `GET /channels`), or the platform refused.\n\nA non-empty `remaining` means the submission still exists, holding exactly those channels, so `GET /posts/{id}` keeps working and calling this again retracts what is left. Retracting is idempotent for that reason.\n\nChannels that never published are simply cancelled and removed, so a half-published submission can be retracted as one thing.","operationId":"PublicPostsController_retract","parameters":[{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}}],"responses":{"200":{"description":"What came down and what stayed up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetractResult"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Retract a submission","tags":["Posts"]}},"/public/v1/posts/{id}/revise":{"post":{"description":"Rewrites the copy that is **live on each platform**. Use this on a submission that has already published; use `PUT /posts/{id}` on one that has not.\n\n**A revision changes wording, never structure.** Send every channel and every block of each thread, in order, including the ones that did not change. The channel list and each thread’s length must match what was published. Adding a block is publishing a reply, removing one is a delete, and adding a channel is a new post; all three come back as `revision_structure_changed`.\n\nWhat each platform will change is `limits.remoteEdit` on `GET /platforms`. Sending a part it does not list (a title to a platform that only rewrites text) is `edit_not_supported`, and nothing is sent. **No platform will change a published post’s attachments**, which is why there is no field for them here.\n\nOnly blocks whose text actually differs are sent, so an unchanged block never puts an \"edited\" marker on a post nobody touched. Answers two lists for the same reason retract does: `revised` reached its platform, and `unchanged` either had nothing to send (`reason` is null) or was refused by the platform (`reason` says how).","operationId":"PublicPostsController_revise","parameters":[{"name":"id","required":true,"in":"path","description":"The submission id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisePostRequest"}}}},"responses":{"200":{"description":"What was rewritten and what was left alone.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviseResult"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The request is well-formed but conflicts with current state. `post_publishing` / `post_already_published`: nothing about the request needs fixing. `post_changed`: the post changed while this edit was in flight (another edit, or a publish started), so read it again and resubmit. `post_not_published`: a revision was asked of a post that has not gone out yet, so edit it as a scheduled post instead. `post_test_mode`: the post was created with a test key and is never published or scheduled, so publish a copy with a live key instead. `request_in_progress`: an earlier request with this `Idempotency-Key` is still running; retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Revise a published submission","tags":["Posts"]}},"/public/v1/stats":{"get":{"description":"Publications per day, per channel, per tag and in total, over a window you name. A publication is one submission going to one channel: a post sent to three accounts counts three times, and a five-block thread counts once.\n\nANALYTICS, NOT BILLING. These are counted from the posts themselves, so deleting a post changes the history: the figures can go down. Use `GET /public/v1/usage` for anything commercial. It reads the meter an invoice is computed from, and it is the only endpoint that predicts a `402`.\n\n`totals`, `daily`, `channels` and `tags` describe the window. `queue` is a snapshot of right now and ignores `from`/`to` entirely.\n\nEvery channel connected right now appears in `channels`, including those that published nothing. Publications whose account has since been disconnected collect in a single row with a null `channelId`, so the per-channel figures always sum to `totals`. Publications to a channel whose platform's terms require deleting its API data when access ends (YouTube) are the exception: when that channel is disconnected or its access revoked, its publications and their readings leave these figures entirely rather than joining that row.\n\n`tags` behaves differently on purpose, and the difference matters: only tags something landed under appear, and the counts OVERLAP. A publication carrying two tags is counted under both, one carrying none under neither, so unlike `channels`, these do not sum to `totals` and must not be rendered as shares of it.\n\nENGAGEMENT IS A DIFFERENT KIND OF NUMBER from everything above. `engagement` on the response, and on each channel and tag, is what the PLATFORMS reported back (likes, comments, shares and whatever else each one measures) rather than something counted from our own rows. Three consequences follow, and all three matter before you build on it:\n\n1. It is PARTIAL. Engagement is only read back from platforms that expose it, so a workspace publishing to several may have figures for some channels and none for others. `engagement.measured` is how many publications carried any reading at all; compare it against `totals.published` before presenting a figure as covering the window.\n2. AN ABSENT METRIC IS NOT A ZERO. `engagement.values` carries a key only where something reported it. No two platforms measure the same set, so a missing `impressions` means nobody could answer, not that nobody saw the post. `metrics` lists every name present in the response.\n3. The values are CUMULATIVE and still moving. Each is the latest reading of a publication since it went out, not what it earned during the window, and it changes when somebody likes or unlikes the post. Readings are sampled for roughly the first month of a post’s life and then stop.","operationId":"PublicStatsController_get","parameters":[{"name":"from","required":true,"in":"query","schema":{"type":"string","format":"date-time"},"description":"Inclusive start of the window, ISO 8601."},{"name":"timezone","required":false,"in":"query","schema":{"type":"string","default":"UTC"},"description":"IANA zone the `daily[].date` buckets are cut at, e.g. `Europe/Paris`. Defaults to `UTC`. A day boundary is the whole meaning of a daily series, so a value that is not a real zone is rejected rather than ignored."},{"name":"to","required":true,"in":"query","schema":{"type":"string","format":"date-time"},"description":"EXCLUSIVE end of the window, ISO 8601. Exclusive so two adjacent windows tile without counting the publication on the boundary twice. At most 400 days from `from`."}],"responses":{"200":{"description":"Publishing activity over the window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stats"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get publishing stats","tags":["Stats"]}},"/public/v1/stats/insights":{"get":{"description":"Which kind of post, and which time, does best: the window’s posts split by format, thread or single, weekday, hour, weekday and hour together, and tag.\n\nEVERY `score` IS RELATIVE TO THE POST’S OWN CHANNEL. A post scores its engagement (likes + comments + shares + saves + quotes) divided by its channel’s usual, which is that channel’s average over the 90 days before the window ends. A group scores the average of its posts. So `1.4` means \"these posts did 40% better than their accounts normally do\", and `1` is usual. Raw engagement would rank accounts by size instead of posts by how well they did.\n\nOnly posts that can be scored are counted: published in the window, reporting some engagement, on a channel with at least 3 such posts. `compared` is how many that was, and it is often far below what was published, since most platforms report no engagement at all.\n\nSMALL GROUPS ARE NOISE. Every group is returned however few posts it holds; apply a floor before calling one better than another. The app compares nothing under 5 posts, and shades a `slots` cell from 3.\n\n`channel`, `platform` and `tag` narrow the posts scored, never the usual they are scored against: a channel’s usual is always all of its posts.","operationId":"PublicStatsController_insights","parameters":[{"name":"channel","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"description":"Repeatable channel id from `GET /public/v1/channels`. ORs. An unknown id matches nothing."},{"name":"from","required":true,"in":"query","schema":{"type":"string","format":"date-time"},"description":"Inclusive start of the window, ISO 8601."},{"name":"platform","required":false,"in":"query","schema":{"type":"array","items":{"type":"string","enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"]}},"style":"form","explode":true,"description":"Repeatable platform id. ORs."},{"name":"tag","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"description":"Repeatable tag id from `GET /public/v1/tags`. ORs. An unknown id matches nothing."},{"name":"timezone","required":false,"in":"query","schema":{"type":"string","default":"UTC"},"description":"IANA zone weekdays and hours are read in, e.g. `Europe/Paris`. Defaults to `UTC`. Rejected, not ignored, when it is not a real zone: a best hour in the wrong zone is a confidently wrong answer."},{"name":"to","required":true,"in":"query","schema":{"type":"string","format":"date-time"},"description":"EXCLUSIVE end of the window, ISO 8601. At most 400 days from `from`."}],"responses":{"200":{"description":"The window’s posts, grouped and scored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsInsights"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get posting insights","tags":["Stats"]}},"/public/v1/tags":{"get":{"description":"The workspace’s own labels for its submissions, such as `launch-week`, `client-acme` and `evergreen`. An `id` from here is what `tagIds` takes when you create a submission, and what `?tag=` filters on when you list them.\n\nThese are ours, not any platform’s. A tag is not a hashtag: it is never published, never sent to a provider, and never appears in a post’s text. It exists so you can ask the questions the workspace organizes its work around.\n\nAddress them by `id`, never by `name`. The name is the one field a workspace edits, so a client that matched on the word would silently stop matching the day somebody fixed a typo.\n\nCreating and deleting tags is deliberately not on this API: they are a human’s filing system, and a scripted typo should not become a permanent entry in somebody’s dropdown. Manage them in the app.","operationId":"PublicTagsController_list","parameters":[],"responses":{"200":{"description":"Every tag in the workspace, alphabetically.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"List tags","tags":["Tags"]}},"/public/v1/usage":{"get":{"description":"What your account has consumed this period and what its plan allows, read from the meter an invoice is computed from, so this number and the bill are the same number by construction.\n\nFigures cover the whole ACCOUNT, not just the workspace this key belongs to. A plan is bought once, and every workspace its owner owns draws from one pool, so this is what will refuse your next write even when the workspace you are writing to has barely been used.\n\nPoll it to predict a `402`: `posts.created.used` against `posts.created.limit` is what refuses the next write, and `periodEnd` is when it resets.\n\n`channels` and `storage` have no period: they are stocks, freed the moment you disconnect an account or delete a file.\n\nRequires the `read` scope explicitly, unlike the other reads on this API: consumption is commercial information about the workspace rather than your own content, and a key handed to a third party to publish posts has no business reading how close its owner is to a billing limit.","operationId":"PublicUsageController_get","parameters":[],"responses":{"200":{"description":"Consumption against the plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get current usage","tags":["Usage"]}},"/public/v1/webhooks":{"get":{"description":"Every endpoint registered for this workspace, newest first, including disabled ones: an endpoint we switched off after repeated failures is exactly the one you came here to find.","operationId":"PublicWebhooksController_list","parameters":[],"responses":{"200":{"description":"The registered endpoints.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"List webhook endpoints","tags":["Webhooks"]},"post":{"description":"Registers a URL and returns its **signing secret**. Store the secret now: only an encrypted copy is kept, no route returns it, and the only way to get another is `POST /webhooks/{id}/roll-secret`, which invalidates this one.\n\nEvery delivery is signed with it. Verifying is not optional in any real sense: this URL is reachable by anyone on the internet, so an unverified handler acts on whatever a stranger posts to it. See the **Webhooks** section of this reference for the scheme and a working verifier.\n\nThe URL must be absolute `https://` (or `http://` for a local receiver, where the deployment allows it). Addresses only reachable from inside our own network are refused, because nothing sent to one would ever reach you.","operationId":"PublicWebhooksController_create","parameters":[{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}}},"responses":{"201":{"description":"The endpoint, with its signing secret. The secret is not returned again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuedWebhookEndpoint"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Register a webhook endpoint","tags":["Webhooks"],"callbacks":{"event":{"{$request.body#/url}":{"post":{"summary":"An event, delivered to your endpoint","description":"Sent whenever something you subscribed to happens. Not a request you make: this is what arrives at the `url` you registered.\n\nVerify `x-bulkit-signature` over the **raw** body before trusting anything in it, and dedupe on `id`: delivery is at-least-once, so a receiver that returns 200 after its own timeout will be sent the same event again. The Webhooks section of this reference has the scheme and a working verifier.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"2XX":{"description":"Accepted. Return a 2xx QUICKLY and do the work afterwards. The attempt times out at 10 seconds, and only a 2xx counts. Anything else is retried with exponential backoff for about five hours; redirects are not followed, because a 3xx would move the delivery to an address you never registered."}}}}}}}},"/public/v1/webhooks/{id}":{"get":{"operationId":"PublicWebhooksController_get","parameters":[{"name":"id","required":true,"in":"path","description":"The endpoint id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Get one webhook endpoint","tags":["Webhooks"]},"put":{"description":"Only the fields you send are changed. This is a partial update despite being a PUT: an endpoint is a URL, a subscription list and a switch, with no parts to reconcile, so there is no half-state a partial body could leave behind. (`PUT /posts/{id}` is a full resubmission for exactly the opposite reason.)\n\nThe signing secret is not touched. Re-enabling an endpoint we disabled also clears its failure streak, so a fixed receiver is not one flake away from being switched off again.","operationId":"PublicWebhooksController_update","parameters":[{"name":"id","required":true,"in":"path","description":"The endpoint id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookRequest"}}}},"responses":{"200":{"description":"The endpoint as it now stands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Update a webhook endpoint","tags":["Webhooks"]},"delete":{"description":"Deliveries still queued for it stop. Its history goes with it, so export anything you need from `GET /webhooks/{id}/deliveries` first. If you only want to pause, set `enabled: false` instead and keep the id and the secret.","operationId":"PublicWebhooksController_remove","parameters":[{"name":"id","required":true,"in":"path","description":"The endpoint id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted. No body."},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Delete a webhook endpoint","tags":["Webhooks"]}},"/public/v1/webhooks/{id}/deliveries":{"get":{"description":"Every event this endpoint was sent, newest first, with how many attempts it took and what came back. This is the evidence behind \"did you send it?\".\n\n`responseStatus` is your server’s own HTTP status. Your response BODY is never stored or returned. The URL is customer-supplied and we deliver from inside our network, so echoing back what it returned would make this a way of reading anything we can reach. `error` is our description of the failure, in our words.\n\nA `pending` delivery is one that has not been accepted yet and may still be retried; `failed` means the retry budget is spent and nothing more will be attempted.","operationId":"PublicWebhooksController_deliveries","parameters":[{"name":"id","required":true,"in":"path","description":"The endpoint id.","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","description":"The previous page’s `nextCursor`. Opaque.","schema":{}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"default":25},"description":"Page size. Clamped to 100; asking for more is not an error."}],"responses":{"200":{"description":"A page of delivery attempts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryPage"}}}},"400":{"description":"The request is malformed, or a platform rule rejects it. `error.field` points at the part of the body that caused it, and `error.details` lists every field when validation rejected more than one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"List delivery attempts","tags":["Webhooks"]}},"/public/v1/webhooks/{id}/roll-secret":{"post":{"description":"Mints a new signing secret and invalidates the old one **immediately**. The endpoint keeps its id, its URL and its subscriptions, so nothing else has to be reconfigured.\n\nThere is a gap by construction: deliveries already in flight are signed with whatever is stored when each attempt is made, so a redelivery your receiver was still waiting on may arrive signed with the new secret. Accept both for a few minutes when you roll.\n\nA write, despite reading like an action: a read-only key is refused here.","operationId":"PublicWebhooksController_rollSecret","parameters":[{"name":"id","required":true,"in":"path","description":"The endpoint id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Send one on every write. A retry carrying the same key returns the FIRST response instead of doing the work twice. Without it, a client that times out and retries schedules the post a second time, and the first is already queued.\n\nAny string up to 255 characters; a UUID per logical operation is the usual choice. Keys are scoped to your workspace and honoured for 24 hours. The same key on a different route or id, or with a different body, is a `422`; a request still running under this key is a `409 request_in_progress`.\n\nWhat a FAILED request does to its key depends on whether it could have changed anything. A `4xx` releases it: every one of them is raised before we write a thing, so fix the input and retry with the same key. A `5xx` pins it, and the retry replays that failure instead of doing the work: a write is several posts and several workflows, so a fault partway through leaves some of them done, and a fresh attempt would publish those a second time. Read `GET /posts/{id}` to see what exists, then continue with a new key.","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"201":{"description":"The endpoint with its new secret. 201 rather than 200 (the framework default for POST); nothing new was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuedWebhookEndpoint"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"This `Idempotency-Key` was already used with a different request: another route, another id or another body (`error.field` is `Idempotency-Key`). Replaying the stored response would silently discard what you just asked for, so it is refused instead. `platform_refused`: the platform understood the call and said no, in the words of the message (comments turned off on the post, a locked thread, an app access level that can’t search). The same call will be refused again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Roll the signing secret","tags":["Webhooks"]}},"/public/v1/webhooks/{id}/test":{"post":{"description":"Sends one signed `webhook.test` event to the endpoint now and reports how your receiver answered. The quickest way to check a receiver is wired up and verifying signatures, and the only one that works with a test key, which produces no real events.\n\nNothing is recorded: no entry in `GET /webhooks/{id}/deliveries`, no retry, and the endpoint’s failure streak is left alone. A disabled endpoint is sent one too, since fixing a receiver before switching it back on is exactly when you test. Answer it with a 2xx and otherwise ignore it.\n\nA failed test is still a 200: the request worked and your receiver did not, and the body says why.","operationId":"PublicWebhooksController_test","parameters":[{"name":"id","required":true,"in":"path","description":"The endpoint id.","schema":{"type":"string"}}],"responses":{"200":{"description":"How the receiver answered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestResult"}}}},"401":{"description":"No API key was presented, or the one presented is unknown, revoked or expired. Presented-but-rejected and never-presented are told apart in `error.message`; *why* a presented key failed is deliberately not.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is genuine but lacks the scope this route requires. Retrying will not help; a differently-scoped key will.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such resource in this workspace. Another workspace’s id is reported the same way, so an id cannot be probed for existence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too fast. RETRYABLE: `Retry-After` says when, and `X-RateLimit-*` say what the ceiling was. Distinct from 402: no upgrade is needed to make this exact call succeed.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key, from its plan.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current window. Zero on a 429.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window refills.","schema":{"type":"integer"}},"x-request-id":{"description":"This request’s id, on every response and echoed in the error envelope.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our end. The message is deliberately generic; quote `error.requestId` and we can find the failure exactly. RETRY WITH THE SAME `Idempotency-Key`: a 5xx is the one failure that may have half-happened, and the same key is what stops the retry from doing the other half twice.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`service_unavailable`: a dependency we need was unreachable and the request was not attempted, or not completed. Retryable, unlike a 500, and safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"summary":"Send a test event","tags":["Webhooks"]}}},"info":{"title":"Bulkit API","description":"Schedule and publish social media posts programmatically.\n\n## The model\n\nOne call to `POST /posts` creates a **submission**: one piece of content sent to one or\nmore connected channels. It is a single resource with a single id, and every\n`/posts/{id}` route addresses it.\n\nInside it, each channel publishes **independently**: its own status, its own error,\nits own retry. That is deliberate: an outage at X cannot hold up LinkedIn. So a\nsubmission can come back `partially_published`, and the per-channel entries in\n`channels[]` are where the real outcome lives.\n\nEach channel carries **blocks**: one is an ordinary post, several is a thread (a chain\nof tweets, a LinkedIn post and its comments). Blocks publish one at a time and each is\nconfirmed as it lands, which is what lets a retry resume at block four instead of\nre-posting the whole chain.\n\n> Call `POST /posts` **once** with several entries in `channels[]`. Calling it once per\n> channel produces several unrelated submissions, each with its own id and schedule.\n\n## Before you start\n\n**You need your own platform credentials.** Bulkit publishes through your\nworkspace’s own X / LinkedIn / Meta applications, which you register and get\napproved with each platform, then connect in the Bulkit app. That approval is days to\nweeks of work with the platforms themselves and it is a hard prerequisite: an API key\nalone cannot post anything. Connect at least one channel in the app first, then come\nback here.\n\nConnecting an account is not on this API and cannot be. It is an interactive OAuth\nflow that ends in a browser redirect, so it has no meaning for a machine caller.\n\n## Authentication\n\nEvery route requires an API key, minted under **API** in the app and shown exactly\nonce. Send it either way (they are equivalent):\n\n```http\nx-api-key: bk_live_...\nAuthorization: Bearer bk_live_...\n```\n\n**Scopes.** A key is `read` or `read+write`. A read-only key gets `403 forbidden` on\nanything that changes state, including `POST /posts/{id}/publish`, since publishing is a\nwrite no matter which verb it uses.\n\n**Test mode.** A key is either live (`bk_live_...`) or test (`bk_test_...`), and the\nprefix is there so you can tell which one is in a `.env` at a glance. A test key\nvalidates, stores and refuses exactly as a live one does (same platform rules, same\nquota check, same error for the same mistake) but starts no publishing workflow and\nrecords nothing on your bill. It is the safe way to build against this API without\nposting to a real account.\n\n## Quickstart\n\n```bash\n# 1. What can I post to?\ncurl -H \"x-api-key: $BULKIT_KEY\" \\\n  https://your-instance/public/v1/channels\n\n# 2. What will each platform accept?\ncurl -H \"x-api-key: $BULKIT_KEY\" \\\n  https://your-instance/public/v1/platforms\n\n# 3. Schedule one thing to two channels.\ncurl -X POST \\\n  -H \"x-api-key: $BULKIT_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  https://your-instance/public/v1/posts \\\n  -d '{\n    \"intent\": \"schedule\",\n    \"scheduledAt\": \"2026-09-01T09:00:00Z\",\n    \"channels\": [\n      { \"channelId\": \"chn_x\", \"blocks\": [{ \"content\": \"Shipping today.\" }] },\n      { \"channelId\": \"chn_li\", \"blocks\": [{ \"content\": \"A longer version, for LinkedIn.\" }] }\n    ]\n  }'\n```\n\n## Publishing is asynchronous\n\n`intent: \"now\"` queues the submission and returns; it does **not** wait for the\nplatforms. The response comes back `publishing`, and the outcome arrives minutes later\n(or days later, for a scheduled post). Anything else would hold an HTTP request open\nfor as long as a five-block thread takes and time out on exactly the submissions that\nmatter most.\n\nRegister a **webhook** and the outcome is pushed to you instead; see below. Polling\n`GET /posts/{id}` still works and is the right fallback, but a client that polls for a\npost scheduled next Tuesday spends a request a minute for a week to learn one fact.\n\n## Webhooks\n\nRegister a URL with `POST /webhooks` and we POST each event to it as it happens. The\nresponse to that call carries the **signing secret**. Store it then, because only an\nencrypted copy is kept and no route returns it.\n\n| Event | When |\n| --- | --- |\n| `post.published` | every block of one channel’s post is live |\n| `post.failed` | one channel’s post did not go out, and nothing of it is live |\n| `post.partially_failed` | a thread died partway: some blocks are live, the rest are not |\n| `channel.needs_reconnect` | an account can no longer publish without a human re-authorizing it |\n\nThe `post.*` events fire **once per channel**, not once per submission. That follows\nfrom the model above: each channel publishes independently, so there is no single moment\nat which \"the submission\" published. `data.channelId` says which one, and `data.post` is\nthe whole submission in the shape `GET /posts/{id}` returns, so an ordinary subscriber\nnever has to call back.\n\n### Verifying a delivery\n\nYour URL is reachable by anyone on the internet. An unverified handler acts on whatever\na stranger posts to it, so this is not optional:\n\n```http\nPOST /your/endpoint\nx-bulkit-signature: t=1755432000,v1=6f1a…\nx-bulkit-event-id: 0f9c8e2a-…\nx-bulkit-event-type: post.published\nx-bulkit-attempt: 1\n```\n\nThe signature is `HMAC-SHA256(secret, \"<t>.<raw body>\")`, hex. Verify with the **raw**\nbody, not a re-serialization of the parsed JSON, whose key order and whitespace will\ndiffer and produce a different digest. Then check `t` against your own clock and reject\nanything older than ~5 minutes; the timestamp is inside the signed material precisely so a\ncaptured delivery cannot be replayed forever.\n\n```js\nconst signed = `${t}.${rawBody}`;\nconst expected = crypto.createHmac(\"sha256\", secret).update(signed).digest(\"hex\");\nconst ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));\n```\n\nCompare in constant time. A `===` on hex digests leaks, through timing, how many leading\ncharacters of a guess were right.\n\n### Delivery, retries and duplicates\n\nDelivery is **at-least-once**. A receiver that returns 200 after its own timeout will be\nsent the event again, so treat `id` in the body (also `x-bulkit-event-id`) as the dedupe\nkey: it is stable across every redelivery of one fact.\n\nReturn a 2xx quickly and do the work afterwards. Anything else is retried with\nexponential backoff: 10s, 20s, 40s … capped hourly, for about five hours. Only a 2xx\ncounts: redirects are **not** followed, because a 3xx would move the delivery to an\naddress you never registered.\n\n`GET /webhooks/{id}/deliveries` is the record of every attempt: status, our description\nof the failure, and how long it took. Your response body is never stored or returned.\n\nAn endpoint whose deliveries fail for five consecutive events is **disabled**\nautomatically, with the reason on the endpoint. Fix the receiver and re-enable it with\n`PUT /webhooks/{id}`, which also clears the failure streak, so you are not one flake\naway from being switched off again.\n\n### Test mode\n\nA test key writes posts but starts no publishing workflow, and webhooks fire from that\nworkflow, so **a test key produces no events**. To check a receiver is wired up and\nverifying signatures, send it a `webhook.test` event with `POST /webhooks/{id}/test`, which\nworks with either kind of key. To exercise it end to end, use a live key against a channel\nyou do not mind posting to.\n\n## Idempotency\n\nSend an `Idempotency-Key` header on every write. A retry carrying the same key returns\nthe **first** response instead of doing the work again. Without one, a client that\ntimes out and retries schedules the post a second time, and the first one is already\nqueued, so the duplicate is not a duplicate row, it is a duplicate tweet.\n\nKeys are scoped to your workspace, honoured for 24 hours, and up to 255 characters\n(a UUID per logical operation is the usual choice). The same key on a different route or\nid, or with a different body, is a `422`; a request still running under the key is a\n`409 request_in_progress`.\n\nWhat a **failed** request does to its key turns on one question: could it have changed\nanything before it failed?\n\n- **`4xx` releases the key.** Every one of them is raised before a row is written, so fix\n  the input and retry with the same key.\n- **`5xx` keeps it, and the retry replays that same failure.** One write is several posts\n  and several publishing workflows, so a fault partway through leaves some of them done.\n  A retry that started over would publish those a second time, which is the duplicate this\n  header exists to prevent, arriving by the other road. Read `GET /posts/{id}` to see what\n  exists, then carry on with a new key.\n\n## Pagination\n\n`GET /posts` is cursor-paginated. Pass `nextCursor` from the previous page as `?cursor=`,\nand stop when it comes back `null`; an empty `data` is not the signal.\n\nDefault page size is 25 and the ceiling is 100; asking for more is clamped rather\nthan refused. Cursors are opaque strings: they name a position in the ordering, not an\noffset, so pages stay correct while posts are being created and published underneath\nyou. Do not parse or construct one.\n\n## Rate limits\n\nLimited **per API key**, at the ceiling your plan bought, across the whole API: one\nbucket, not one per route. Every response carries:\n\n| Header | Meaning |\n| --- | --- |\n| `X-RateLimit-Limit` | Requests allowed per minute |\n| `X-RateLimit-Remaining` | Left in the current window |\n| `X-RateLimit-Reset` | Seconds until it refills |\n\nA `429` carries them too, plus `Retry-After`. Requests that arrive without a usable key\nare limited to 20 a minute per IP. Every route here needs one, so a request without\nit is a misconfigured client or someone probing.\n\n## Quotas are not rate limits\n\nThese look alike and behaving as if they were the same is the most expensive mistake a\nclient can make here:\n\n- **`429 rate_limited`**: you are going too fast. Back off and retry; `Retry-After` says\n  when. No upgrade needed.\n- **`402 quota_exceeded`**: your plan’s allowance for the period is spent. Retrying will\n  never succeed. `GET /usage` has the numbers and `periodEnd` is when they reset.\n\nA client that retries a `402` backs off forever against a limit that moves once a month.\n\n## Stats are not usage\n\nTwo endpoints return numbers about your workspace, from two different sources, and they\nare not interchangeable:\n\n- **`GET /usage`** reads an append-only meter. It is what a bill is computed from, it only\n  rises within a period, and it is the only endpoint that predicts a `402`.\n- **`GET /stats`** counts the posts themselves. Delete a post and last month changes:\n  normal for analytics, disqualifying for an invoice.\n\nSo never poll `/stats` to decide whether the next write will be refused: those figures can\ngo down, and none of them is a ceiling.\n\n## Errors\n\nEvery failure arrives in one envelope:\n\n```json\n{\n  \"error\": {\n    \"code\": \"content_too_long\",\n    \"message\": \"X (Twitter) allows 280 characters; this one is 300\",\n    \"field\": \"channels[1].blocks[0].content\",\n    \"requestId\": \"req_a8b0c1d2-3e4f-5678-9abc-def012345678\"\n  }\n}\n```\n\nBranch on `code`. `message` is the best explanation we have and is safe to show your own\nusers, but it is prose and will change. `field` points into the request body you sent,\nor names the header at fault, for the failures a header produces.\n\nEvery failure arrives this way, including the ones raised before your request reaches a\nroute: an unparseable body, a body over the size ceiling, a path or method that does not\nexist. There is no second error shape to write a parser for.\n\nWhen schema validation rejects more than one field, all of them come back together in\n`details`, so a client fixes them in one pass instead of a round trip per mistake:\n\n```json\n{\n  \"error\": {\n    \"code\": \"invalid_request\",\n    \"message\": \"channels[0].channelId must be a string; channels[0].blocks[1].content must be a string\",\n    \"field\": \"channels[0].channelId\",\n    \"details\": [\n      { \"field\": \"channels[0].channelId\", \"message\": \"channels[0].channelId must be a string\" },\n      { \"field\": \"channels[0].blocks[1].content\", \"message\": \"channels[0].blocks[1].content must be a string\" }\n    ],\n    \"requestId\": \"req_a8b0c1d2-3e4f-5678-9abc-def012345678\"\n  }\n}\n```\n\nA platform rule refuses one thing at a time and carries `field` alone.\n\n`500` and `503` are not the same answer. A `500` is a fault on our side and may have\nhalf-happened; a `503` means a dependency was unreachable and the request was not\nattempted. Both are worth retrying, with the same `Idempotency-Key`, which is what makes\nthe retry safe either way.\n\n**New codes may be added at any time**. That is not a breaking change, so treat an\nunrecognised one as a generic failure of its HTTP status rather than crashing on it.\nCodes are never renamed or removed within `v1`.\n\n`requestId` is also on every response as the `x-request-id` header and is what we search\non. Quote it and a failure is one lookup away instead of a trawl. If you already\ncorrelate requests across your own services, send your own `x-request-id` and we will\nuse it.\n\n## Platform limits\n\nCharacter counts, attachments per block, thread length and whether media is mandatory\ndiffer per platform and change when the platforms change them. `GET /platforms` serves\nthem live, straight from the rules this API enforces.\n\nRead them; do not hardcode them. A client carrying its own copy of \"280\" will be wrong\nbefore we are, and the failure surfaces as a rejected post rather than a stale constant.\n\n## MCP\n\nThe same API is served to AI agents over the Model Context Protocol, at\n`POST /public/v1/mcp`: streamable HTTP, authenticated by the same key, sent the\nsame two ways. An MCP call is an API call: same scopes, same test mode, same quota, same\nrate limit.\n\nIt exposes twenty-one tools (`list_channels`, `list_platforms`,\n`get_channel_capabilities`, `search_option_choices`, `list_tags`, `list_posts`,\n`get_post`, `get_post_metrics`, `list_comments`, `reply_to_comment`, `create_post`,\n`update_post`, `publish_post`, `revise_post`, `retract_post`, `delete_post`, `list_media`,\n`upload_media_from_url`, `get_stats`, `get_posting_insights`, `get_usage`),\nwhose arguments are the request bodies documented here. A read-only key is shown only\nthe reads.\n\n`retract_post` is the only one flagged destructive: it is the only tool here that removes\nsomething a user can see, and nothing can undo it.\n\nUploading a file is absent: tool arguments are JSON, so an agent fetches media from a\npublic URL with `upload_media_from_url`, references media already in the library, or\nleaves posting the bytes to `POST /media`.\n\n### Connecting\n\nTwo ways, and which one you use depends on what the client can do.\n\n**OAuth**: paste the endpoint into a client that supports remote MCP servers. It discovers\nthe authorization server from a `WWW-Authenticate` header on the 401, registers itself\n(RFC 7591), and sends the user here to approve a workspace. No key is ever typed, and the\nperson who approved it can disconnect the app from the MCP screen in the app. PKCE (S256) is\nrequired, refresh tokens rotate, and both a replayed code and a replayed refresh token revoke\nthe authorization outright.\n\n**An API key**, for a client that takes a header instead of a browser. In Claude Code:\n\n```bash\nclaude mcp add --transport http bulkit https://your-host/public/v1/mcp \\\n  --header \"Authorization: Bearer bk_live_...\"\n```\n\n## Deleting and retracting\n\nThese are different calls and neither can be recovered from the other.\n\n`DELETE /posts/{id}` removes **our** record and leaves the published copies live. It is\nthe one to call to tidy a list or forget a submission.\n\n`POST /posts/{id}/retract` deletes the copies **on their platforms**, then removes our\nrecord of the channels that came down. It is permanent: the posts go with their likes,\ntheir replies and their URLs. Not every channel can be retracted, so it always answers\n`200` with `removed` and `remaining` rather than a bare success. Read both, and read\n`manageStatus` on `GET /channels` before promising a user a post can be recalled.\n\n`POST /posts/{id}/revise` rewrites live copy in place. Use it instead of `PUT /posts/{id}`\nonce a submission has published; what each platform will change is `limits.remoteEdit`\non `GET /platforms`, and no platform will change a published post’s attachments.\n\n## Versioning\n\nThe version is in the path (`/public/v1`) and a v2 would be a second prefix served\nalongside this one, never a change to it. Within v1 we may add routes, add response\nfields and add error codes; we will not remove or rename them, or change what an\nexisting field means.\n\nWrite clients that ignore unknown fields.","version":"1.0.0","contact":{"name":"Bulkit","url":"https://bulkit.io","email":"contact@bulkit.io"},"termsOfService":"https://bulkit.io/terms","x-logo":{"url":"https://bulkit.io/app_logo.png","altText":"Bulkit"}},"tags":[{"name":"Posts","description":"Create, schedule, inspect and publish submissions. One submission is one thing sent to one or more channels."},{"name":"Channels","description":"The social accounts this workspace has connected."},{"name":"Platforms","description":"What each supported platform accepts. Read your limits from here rather than hardcoding them."},{"name":"Media","description":"The media library that a post’s attachments come from."},{"name":"Tags","description":"The workspace’s own labels for its submissions. Ours, not any platform’s: a tag is never published. Read-only here: tags are a human’s filing system and are managed in the app."},{"name":"Usage","description":"Consumption against the plan, from the same meter that bills."},{"name":"Stats","description":"Publishing analytics: what went out, when, and to which channel. Counted from the posts themselves, so unlike Usage these figures change when you delete a post. Not a billing source."},{"name":"Webhooks","description":"Be told what happened instead of polling for it. Publishing is asynchronous, so the outcome of every post arrives here: signed, retried, and with a delivery record you can audit."}],"servers":[{"url":"{baseUrl}","description":"Your Bulkit instance","variables":{"baseUrl":{"default":"https://api.bulkit.io","description":"Scheme and host of the Bulkit deployment you were given a key for. Bulkit is self-hostable, so there is no single public host to hardcode."}}}],"components":{"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your API key. Keys are minted in the app under **API** and shown exactly once."},"BearerToken":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"The same key, sent as `Authorization: Bearer <key>`. Equivalent to `x-api-key`; use whichever your HTTP client makes easier."}},"schemas":{"Attachment":{"type":"object","description":"An attachment carried by one block of a post.","properties":{"id":{"type":"string","description":"Media library id. The stable identifier: key durable state off this.","example":"clx3k2p9q0001abcd1234efgh"},"url":{"type":"string","format":"uri","description":"Short-lived download URL, minted fresh on every response. NOT a stable identifier and not safe to cache: re-read the resource instead."},"fileName":{"type":"string","example":"launch-banner.png"},"mimeType":{"type":"string","example":"image/png"},"size":{"type":"integer","description":"Size in bytes.","example":184320},"altText":{"type":"string","nullable":true,"description":"What the attachment shows, for a reader who cannot see it, or null if nobody has said. Already resolved: a description the post gave this attachment wins over the one stored on the library item, so this is the text the platforms are actually sent. Which platforms take one at all is `limits.supportsAltText` on GET /platforms; a platform that does not simply ignores it.","example":"A hand-drawn logo on a pale background"}},"required":["id","url","fileName","mimeType","size","altText"]},"Channel":{"type":"object","description":"A connected social account.","properties":{"id":{"type":"string","description":"Use this as `channels[].channelId` when creating a post.","example":"clx3k2p9q0001abcd1234efgh"},"platform":{"type":"string","enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"description":"Matches an entry from `GET /public/v1/platforms`."},"name":{"type":"string","description":"Display name of the account."},"username":{"type":"string","nullable":true,"description":"Handle, where the platform has one."},"needsReconnect":{"type":"boolean","description":"True when this account can no longer publish without a human re-authorizing it. Check it before scheduling: a post to a channel in this state is accepted and then fails at publish time."},"revokedAt":{"type":"string","format":"date-time","description":"When the platform’s access to this account was found revoked by its owner (outside Bulkit, e.g. in their Google account). Null for every other channel, including one that merely needs reconnecting. A revoked channel is \"Disconnected: reauthorization required\": its platform data was deleted, so `name` is a generic placeholder and `username` is null, and `needsReconnect` is true. Only the account owner reconnecting it in the app restores it.","example":"2026-08-04T09:30:00.000Z","nullable":true},"metricsStatus":{"type":"string","enum":["reporting","needs-reconnect","unsupported"],"description":"Whether engagement figures are collected for this channel.\n\n`reporting`: they are, and `GET /public/v1/stats` carries them. `needs-reconnect`: the platform reports engagement but this connection was authorized before the read permission was requested; only the account owner re-authorizing in the app grants it, and no API call can. `unsupported`: the platform does not report engagement to this API at all.\n\nRead it before drawing a conclusion from a channel contributing no engagement to `GET /public/v1/stats`: anything other than `reporting` is a gap in COVERAGE, not a finding about the posts."},"manageStatus":{"type":"string","enum":["available","needs-reconnect","unsupported"],"description":"Whether a post already published to this channel can be taken down or rewritten: what `POST /public/v1/posts/{id}/retract` and `POST /public/v1/posts/{id}/revise` can actually do here.\n\n`available`: they can, under the permissions this connection holds. `needs-reconnect`: the platform allows it, but this connection was authorized before the permission was requested; only the account owner re-authorizing in the app grants it. `unsupported`: the platform offers no way to reach a post once it is out, so a copy published here is permanent.\n\nRead it BEFORE telling a user a post can be recalled. This is the one field here whose false answer nobody can fix: `unsupported` is a property of the platform, not of the connection."},"continuationStatus":{"type":"string","enum":["available","needs-reconnect","unsupported"],"description":"Whether this channel may publish a `blocks` entry after the first.\n\n`available`: it may, up to `limits.maxBlocks` on `GET /public/v1/platforms`. `needs-reconnect`: the platform chains, but continuing a post needs a permission this connection was authorized before we requested it; a second block is refused with `continuation_not_granted`, and only the account owner re-authorizing in the app changes that. `unsupported`: the platform publishes one post and stops.\n\nThe pair to read with `limits.maxBlocks`: that number is the PLATFORM’s and this is the CONNECTION’s. A client trusting the first alone composes a thread that is accepted nowhere."},"commentsStatus":{"type":"string","enum":["available","needs-reconnect","unsupported"],"description":"Whether the audience’s comments on this channel’s posts can be read and answered, through `GET /public/v1/posts/{id}/comments` and `POST /public/v1/posts/{id}/comments/{commentId}/replies`.\n\n`available`: they can, under the permissions this connection holds. `needs-reconnect`: the platform allows it, but this connection was authorized before the permission was requested; only the account owner re-authorizing in the app grants it. `unsupported`: comments on this platform can’t be read through this API.\n\nRead it before listing comments. On an `unsupported` channel there is nothing to list, which is not the same as nobody having commented."},"connectedAt":{"type":"string","format":"date-time","description":"When the account was connected.","example":"2026-08-04T09:30:00.000Z"}},"required":["id","platform","name","username","needsReconnect","revokedAt","metricsStatus","manageStatus","continuationStatus","commentsStatus","connectedAt"]},"ChannelCapabilities":{"type":"object","description":"What one connected account allows, where its platform decides per account rather than per platform. Read live from the platform: it is the best answer right now, not a promise, and the same rules are checked again when the post goes out. Where a platform declares everything up front, `options` is empty and the rest is null.","properties":{"options":{"type":"array","description":"The options this account narrows, settles or lacks. An option not listed here is exactly as `GET /platforms` describes it.","items":{"type":"object","properties":{"key":{"type":"string","description":"The option’s `key` on `GET /platforms`.","example":"privacy_level"},"choices":{"type":"array","nullable":true,"description":"The values this account may pick, for a `choice` whose platform-level `choices` is null. Null when the account does not narrow this option.","items":{"type":"object","properties":{"value":{"type":"string","description":"Send this."},"label":{"type":"string","description":"Show this."},"help":{"type":"string","nullable":true,"description":"Extra context, where the label needs it."}},"required":["value","label","help"]}},"forcedValue":{"type":"string","nullable":true,"description":"The account has already decided this one: send exactly this value, or the platform refuses the post. Null when the value is yours to choose.","example":"true"},"unavailable":{"type":"boolean","description":"This account does not offer the field at all. Leave it empty."},"required":{"type":"boolean","description":"This account refuses a post that leaves the field empty, where its platform does not. Many subreddits require a flair, for one."},"reason":{"type":"string","nullable":true,"description":"Why the option is settled, unavailable or required, in this account’s terms."}},"required":["key","choices","forcedValue","unavailable","required","reason"]}},"maxCharacters":{"type":"integer","nullable":true,"description":"What this account may write in one block, where that depends on the account (a paid X tier, for one). Null leaves the platform’s `limits.maxCharacters` standing.","example":25000},"media":{"type":"object","nullable":true,"description":"Stricter media rules for this account, read field by field over the platform’s `limits.media`: a null field here leaves the platform’s own rule standing. Null when the account adds nothing.","properties":{"maxDurationSeconds":{"type":"integer","nullable":true,"description":"Longest a video may run. Over it is `attachment_too_long`.","example":300},"minDurationSeconds":{"type":"integer","nullable":true,"description":"Shortest a video may run, exclusive. Under it is `attachment_too_short`; a `0` here rejects only a file that measured as empty.","example":0},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest accepted width ÷ height. Outside the range is `attachment_aspect_unsupported`.","example":0.01},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest accepted width ÷ height, measured as the video plays: rotation is already applied, so a portrait phone clip counts as portrait.","example":10},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels one attachment may contain (width × height). Over it is `attachment_too_many_pixels`. Not a byte ceiling in disguise, and the reason it is worth checking before you upload: a 40 megapixel camera JPEG is only a few megabytes, so it satisfies every `maxBytes` here and is still refused. Nothing on this side resizes anything, so a picture over the cap needs saving smaller first.","example":36152320},"durationIsPerAccount":{"type":"boolean","description":"True when the duration cap belongs to the connected ACCOUNT rather than the platform, so no number published here could be right for every channel: TikTok grants different creators different maximums. No endpoint will tell you the number: it's resolved when the post publishes, and an over-long video fails then with that account's real limit named in the error."},"perKind":{"type":"object","nullable":true,"description":"Rules that differ by what the file IS, where one number could not be right for both kinds: Bluesky takes a 1 MB image and a 50 MB video, and a LinkedIn post carries one document OR up to twenty images. `null` on a platform that publishes no per-kind rule. All four kinds are always present when it isn't; a `null` entry means this platform states nothing about that kind, not that it refuses it; `acceptedMimeTypes` is what says which types publish at all. Nothing here widens `maxMedia`; it only narrows it further.","properties":{"image":{"type":"object","nullable":true,"description":"What this platform allows for images specifically. Null when it publishes no rule about them.","properties":{"maxCount":{"type":"integer","nullable":true,"description":"Most images one post may carry, where that is tighter than `maxMedia`. Null means only `maxMedia` binds. Over it is `too_many_attachments_of_kind`.","example":1},"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE image may be, in bytes. Over it is `attachment_too_large`. The only media rule checked on every attachment: a stored file always has a size, where the duration and dimensions above are measured best-effort and are unknown for every image.","example":50000000},"alone":{"type":"boolean","description":"True when a image may not share a post with a file of any other kind. Mixing them is `attachment_kinds_mixed`."},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest width ÷ height accepted for a image, where that differs from the platform-wide `minAspectRatio` above. It REPLACES that value for this kind rather than narrowing it. Null means the platform-wide one applies. Outside it is `attachment_aspect_unsupported`. Instagram is why: a feed image publishes between 4:5 and 1.91:1 where a video publishes between 0.01:1 and 10:1.","example":0.8},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest width ÷ height accepted for a image, on the same terms as `minAspectRatio`.","example":1.91},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels ONE image may contain (width × height) where that differs from the platform-wide `maxPixels` above, which it REPLACES for this kind rather than narrowing. Null means the platform-wide one applies. Over it is `attachment_too_many_pixels`. LinkedIn is why it sits per kind: its image API refuses anything over 36,152,320 px and its video API publishes no pixel rule at all.","example":36152320}},"required":["maxCount","maxBytes","alone","minAspectRatio","maxAspectRatio","maxPixels"]},"video":{"type":"object","nullable":true,"description":"What this platform allows for videos specifically. Null when it publishes no rule about them.","properties":{"maxCount":{"type":"integer","nullable":true,"description":"Most videos one post may carry, where that is tighter than `maxMedia`. Null means only `maxMedia` binds. Over it is `too_many_attachments_of_kind`.","example":1},"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE video may be, in bytes. Over it is `attachment_too_large`. The only media rule checked on every attachment: a stored file always has a size, where the duration and dimensions above are measured best-effort and are unknown for every image.","example":50000000},"alone":{"type":"boolean","description":"True when a video may not share a post with a file of any other kind. Mixing them is `attachment_kinds_mixed`."},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest width ÷ height accepted for a video, where that differs from the platform-wide `minAspectRatio` above. It REPLACES that value for this kind rather than narrowing it. Null means the platform-wide one applies. Outside it is `attachment_aspect_unsupported`. Instagram is why: a feed image publishes between 4:5 and 1.91:1 where a video publishes between 0.01:1 and 10:1.","example":0.8},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest width ÷ height accepted for a video, on the same terms as `minAspectRatio`.","example":1.91},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels ONE video may contain (width × height) where that differs from the platform-wide `maxPixels` above, which it REPLACES for this kind rather than narrowing. Null means the platform-wide one applies. Over it is `attachment_too_many_pixels`. LinkedIn is why it sits per kind: its image API refuses anything over 36,152,320 px and its video API publishes no pixel rule at all.","example":36152320}},"required":["maxCount","maxBytes","alone","minAspectRatio","maxAspectRatio","maxPixels"]},"document":{"type":"object","nullable":true,"description":"What this platform allows for documents specifically. Null when it publishes no rule about them.","properties":{"maxCount":{"type":"integer","nullable":true,"description":"Most documents one post may carry, where that is tighter than `maxMedia`. Null means only `maxMedia` binds. Over it is `too_many_attachments_of_kind`.","example":1},"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE document may be, in bytes. Over it is `attachment_too_large`. The only media rule checked on every attachment: a stored file always has a size, where the duration and dimensions above are measured best-effort and are unknown for every image.","example":50000000},"alone":{"type":"boolean","description":"True when a document may not share a post with a file of any other kind. Mixing them is `attachment_kinds_mixed`."},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest width ÷ height accepted for a document, where that differs from the platform-wide `minAspectRatio` above. It REPLACES that value for this kind rather than narrowing it. Null means the platform-wide one applies. Outside it is `attachment_aspect_unsupported`. Instagram is why: a feed image publishes between 4:5 and 1.91:1 where a video publishes between 0.01:1 and 10:1.","example":0.8},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest width ÷ height accepted for a document, on the same terms as `minAspectRatio`.","example":1.91},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels ONE document may contain (width × height) where that differs from the platform-wide `maxPixels` above, which it REPLACES for this kind rather than narrowing. Null means the platform-wide one applies. Over it is `attachment_too_many_pixels`. LinkedIn is why it sits per kind: its image API refuses anything over 36,152,320 px and its video API publishes no pixel rule at all.","example":36152320}},"required":["maxCount","maxBytes","alone","minAspectRatio","maxAspectRatio","maxPixels"]},"caption":{"type":"object","nullable":true,"description":"Always null. A subtitle file is a kind the media library stores and never a kind a POST carries, so no platform has a rule about how many of them one may hold. Where a subtitle file reaches a platform is a `media` option (see YouTube’s `captionFile`) whose own `mimeTypes` and `maxBytes` are the rules that bind it.","properties":{"maxCount":{"type":"integer","nullable":true,"description":"Most subtitle files one post may carry, where that is tighter than `maxMedia`. Null means only `maxMedia` binds. Over it is `too_many_attachments_of_kind`.","example":1},"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE subtitle file may be, in bytes. Over it is `attachment_too_large`. The only media rule checked on every attachment: a stored file always has a size, where the duration and dimensions above are measured best-effort and are unknown for every image.","example":50000000},"alone":{"type":"boolean","description":"True when a subtitle file may not share a post with a file of any other kind. Mixing them is `attachment_kinds_mixed`."},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest width ÷ height accepted for a subtitle file, where that differs from the platform-wide `minAspectRatio` above. It REPLACES that value for this kind rather than narrowing it. Null means the platform-wide one applies. Outside it is `attachment_aspect_unsupported`. Instagram is why: a feed image publishes between 4:5 and 1.91:1 where a video publishes between 0.01:1 and 10:1.","example":0.8},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest width ÷ height accepted for a subtitle file, on the same terms as `minAspectRatio`.","example":1.91},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels ONE subtitle file may contain (width × height) where that differs from the platform-wide `maxPixels` above, which it REPLACES for this kind rather than narrowing. Null means the platform-wide one applies. Over it is `attachment_too_many_pixels`. LinkedIn is why it sits per kind: its image API refuses anything over 36,152,320 px and its video API publishes no pixel rule at all.","example":36152320}},"required":["maxCount","maxBytes","alone","minAspectRatio","maxAspectRatio","maxPixels"]}},"required":["image","video","document","caption"]},"perType":{"type":"object","nullable":true,"description":"Rules for one exact MIME type, where the kind above is too coarse (`null` on a platform that publishes none, which is most of them). Keyed by the mime type as `media.mimeType` reports it. X is why it exists, and it needs every field: X takes \"up to 4 photos, 1 animated GIF, or 1 video\", where a GIF and a JPEG are both `image`, so the ceiling (15 MB of animation against 5 MB of still), the count and the exclusion are all facts about a type. `maxBytes` REPLACES the kind's ceiling for this file; `maxCount` is counted alongside the kind's cap rather than replacing it, since five images with one GIF among them are five of the kind and one of the type.","additionalProperties":{"type":"object","properties":{"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE file of this exact type may be, in bytes. Over it is `attachment_too_large`, the same error the kind ceiling raises.","example":15728640},"maxCount":{"type":"integer","nullable":true,"description":"Most files of this exact type one post may carry. Null means only the kind cap and `maxMedia` bind. Over it is `too_many_attachments_of_type`.","example":1},"alone":{"type":"boolean","description":"True when a file of this type may not share a post with a file of any other type, its own kind included, which is what separates it from the per-kind flag. Mixing them is `attachment_types_mixed`."},"noun":{"type":"string","nullable":true,"description":"What this platform calls a file of this type in a refusal: \"GIF\". Null where the kind name is the right word.","example":"GIF"}},"required":["maxBytes","maxCount","alone","noun"]},"example":{"image/jpeg":{"maxBytes":5242880,"maxCount":null,"alone":false,"noun":null},"image/gif":{"maxBytes":15728640,"maxCount":1,"alone":true,"noun":"GIF"}}}},"required":["maxDurationSeconds","minDurationSeconds","minAspectRatio","maxAspectRatio","maxPixels","durationIsPerAccount","perKind","perType"]},"account":{"type":"object","nullable":true,"description":"Who this channel posts as, as the platform names them right now, which can differ from the name stored when it was connected. Null where the platform has nothing to add.","properties":{"name":{"type":"string","nullable":true},"avatarUrl":{"type":"string","format":"uri","nullable":true}},"required":["name","avatarUrl"]},"postingPaused":{"type":"string","nullable":true,"description":"Why this account can’t publish anything right now, such as a TikTok posting cap, in words for the user. Null when nothing is stopping it. Don’t publish to this channel until it clears: the platform refuses the post.","example":"This TikTok account has reached its posting limit for now. Try again later."}},"required":["options","maxCharacters","media","account","postingPaused"]},"Comment":{"type":"object","description":"One comment on a published post, read live from the platform. Nothing is stored: a comment deleted on the platform is gone here too.","properties":{"id":{"type":"string","description":"The platform’s own id for the comment, which is what the replies route takes. Opaque, and its shape differs per platform."},"parentId":{"type":"string","nullable":true,"description":"The comment this one answers, or null for a comment on the post itself. Usually null at the top of a page, but a platform that pages the conversation flat (X) can list a reply on its own when its comment is on another page; it carries that comment’s id here."},"authorName":{"type":"string","description":"Display name, as the platform shows it."},"authorHandle":{"type":"string","nullable":true,"description":"The author’s handle or username, where the platform has one apart from the name."},"text":{"type":"string","description":"The comment, as written."},"createdAt":{"type":"string","format":"date-time","description":"When it was posted.","example":"2026-08-04T09:30:00.000Z"},"likeCount":{"type":"integer","nullable":true,"description":"Null where the platform did not report it. Never invented as zero."},"url":{"type":"string","nullable":true,"description":"A link to the comment on the platform, where one can be built."},"replies":{"type":"array","items":{"$ref":"#/components/schemas/Comment"},"description":"Direct replies, one level deep. Always empty on a reply. Your own thread’s later blocks are never listed, on any level."}},"required":["id","parentId","authorName","authorHandle","text","createdAt","likeCount","url","replies"]},"CommentPage":{"type":"object","description":"One page of comments, in the order the platform returns them.","properties":{"data":{"type":"array","description":"Top-level comments, each with its direct replies.","items":{"$ref":"#/components/schemas/Comment"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass back as `cursor` for the next page. Null on the last one."}},"required":["data","nextCursor"]},"CommentReply":{"type":"object","description":"The reply that was posted.","properties":{"id":{"type":"string","description":"The platform’s id for the reply. A test-mode key posts nothing and answers `sandbox`."},"url":{"type":"string","nullable":true,"description":"A link to the reply on the platform, where one can be built."}},"required":["id","url"]},"CreatePostBlock":{"type":"object","properties":{"content":{"type":"string","maxLength":5000,"description":"The text. Optional: a block carrying `mediaIds` may omit it, which publishes the image with no caption. The per-platform ceiling is lower and comes from `GET /public/v1/platforms`; this is only the outer bound one request may carry."},"mediaIds":{"type":"array","maxItems":35,"items":{"type":"string"},"description":"Media ids from `POST /public/v1/media`, in publication order. Ownership is checked server-side: an id belonging to another workspace is refused, not silently ignored."},"mediaAltText":{"type":"object","additionalProperties":{"type":"string","maxLength":1000},"description":"What each attachment shows, for a reader who cannot see it, keyed by the media id from `mediaIds` it describes. Overrides the description stored on the library item, so the same photo can read differently here. Omit a key to publish with whatever the library says; a key naming a file this block does not attach is `alt_text_unattached`. Accepted on every platform; `limits.supportsAltText` on GET /platforms says which of them will actually send it.","example":{"clx3k2p9q0003abcd1234efgh":"A hand-drawn logo on a pale background"}},"mediaUserTags":{"type":"object","additionalProperties":{"type":"array","maxItems":20,"items":{"type":"object","description":"One person tagged on an attachment, and where on it. Whether the coordinates are wanted is `limits.userTags.positioned` on GET /platforms. Send both or neither.","properties":{"username":{"type":"string","maxLength":30,"description":"The platform handle, without an `@`. A leading `@` and a pasted profile URL are stripped rather than refused. Nothing here checks that the account exists: a handle that resolves to nobody is published as a post that tags nobody, with no error anywhere.","example":"ada"},"x":{"type":"number","minimum":0,"maximum":1,"description":"Distance from the LEFT edge as a fraction of the width: 0.5 is the middle, whatever the picture was uploaded at. Not pixels: a fraction is what survives the platform re-encoding the file.","example":0.25},"y":{"type":"number","minimum":0,"maximum":1,"description":"Distance from the TOP edge as a fraction of the height.","example":0.75}},"required":["username"]}},"description":"Who each attachment tags, keyed by the media id from `mediaIds` they are tagged on. READ THE OPPOSITE WAY FROM `mediaAltText` above: a description is accepted on every platform because it belongs to the file, while a handle is an account on one platform and the same characters name somebody else on the next, so this is refused as `user_tags_not_supported` on a channel whose `limits.userTags` is null, rather than accepted and dropped. That declaration also says how many one attachment may carry, which kinds of file take them, and whether a tag needs a point at all.","example":{"clx3k2p9q0003abcd1234efgh":[{"username":"ada","x":0.25,"y":0.75}]}}},"description":"One block of the chain. Text, attachments, or both. A block with neither is refused as `content_empty`."},"CreatePostChannel":{"type":"object","description":"One channel’s version of the post. There is no shared \"global text\" field: a client sending the same words to four channels writes them four times, and one that wants LinkedIn to read differently costs nothing extra.","properties":{"channelId":{"type":"string","description":"A channel id from `GET /public/v1/channels`.","example":"clx3k2p9q0001abcd1234efgh"},"title":{"type":"string","maxLength":300,"description":"The post’s title, for channels whose platform has one: check `limits.title` on `GET /public/v1/platforms`, which also carries the real cap (this `maxLength` is only the request’s outer bound). Required to publish where that field says `required`; drafts may go without. Sending it to a platform that has no title field is `title_not_supported`.","example":"How we cut our build time in half"},"postType":{"type":"string","maxLength":40,"description":"Which KIND of thing to publish here, on platforms that publish more than one: an Instagram Story rather than a post on the grid. One of the `key`s in that platform’s `postTypes` on `GET /public/v1/platforms`; omit it for the default, which is what that platform’s top-level `limits` describes. A key it does not declare is `post_type_invalid`, and sending one at all where `postTypes` is empty is `post_type_not_supported`. Read the entry’s own `limits` before composing: a Story takes one attachment against ten, publishes no caption at all, holds a video for a minute rather than fifteen, and declares none of the options a post there has.","example":"story"},"options":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","maxLength":8192},{"type":"array","maxItems":50,"items":{"type":"string","maxLength":8192}}]},"maxProperties":20,"description":"Values for the fields that belong to this channel's platform alone: Pinterest's `link` and `board_section_id`, TikTok's `privacy_level`, X's poll answers. Keyed by the `key` of each entry in that platform's `limits.options` on `GET /public/v1/platforms`, which is also where the caps and accepted values are. A key the platform doesn't declare is `option_not_supported`, not a field we quietly drop. Send a string, unless that entry's `type` is `list`: those take an array of strings, and sending the wrong one of the two shapes is `option_invalid`. The bounds here are the request's outer limits rather than any platform's: the real `minItems`, `maxItems` and per-entry `maxCharacters` are on the declaration.","example":{"link":"https://example.com/recipes/pesto"}},"blocks":{"type":"array","minItems":1,"maxItems":25,"items":{"$ref":"#/components/schemas/CreatePostBlock"},"description":"The chain to publish, in order. One entry is an ordinary post; more is a thread, and only on platforms whose `limits.maxBlocks` allows it."}},"required":["channelId","blocks"]},"CreatePostRequest":{"type":"object","properties":{"intent":{"type":"string","enum":["draft","schedule","now"],"description":"What to do with it.\n`draft`: store it, publish nothing. It still occupies its slot.\n`schedule`: store it and start a durable timer for `scheduledAt`.\n`now`: store it and queue it for immediate publication.\n\n`now` is ASYNCHRONOUS: the response comes back with the submission `publishing`, not published. Publishing takes as long as the platforms take, and a request that blocked on it would time out on exactly the submissions that matter most."},"scheduledAt":{"type":"string","format":"date-time","description":"Required when `intent` is `schedule`. For `draft` it is the slot the post occupies; for `now` it defaults to the moment it was queued."},"channels":{"type":"array","minItems":1,"maxItems":20,"items":{"$ref":"#/components/schemas/CreatePostChannel"},"description":"Where it goes. At least one, for every intent, including drafts."},"tagIds":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"The workspace’s own labels for this submission: ids from `GET /public/v1/tags`. Ids rather than names, because the name is the field a workspace edits. An id this workspace does not own is `tag_not_found`, not a value we drop. On `PUT` this is a replacement like the rest of the body, so omitting it removes every tag."}},"required":["intent","channels"]},"CreateWebhookRequest":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Absolute `https://` (or `http://` for a local receiver, where the deployment allows it). Addresses only reachable from inside our network are refused as `webhook_url_invalid`: nothing sent to one would reach you.","example":"https://example.com/hooks/bulkit"},"description":{"type":"string","maxLength":200,"description":"Your own label."},"events":{"type":"array","minItems":1,"items":{"type":"string","enum":["post.published","post.failed","post.partially_failed","channel.needs_reconnect"]},"description":"What to send here. Required and non-empty: an endpoint subscribed to nothing looks exactly like a working integration until the first event it should have received."}},"required":["url","events"]},"Error":{"type":"object","description":"The envelope every public-API failure arrives in.","properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"required":["error"]},"ErrorDetail":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","invalid_request","not_found","conflict","payload_too_large","unsupported_media_type","no_channels","duplicate_channel","content_empty","content_too_long","too_many_blocks","threads_not_supported","continuation_not_granted","too_many_attachments","attachments_not_supported","attachment_type_unsupported","media_required","title_required","title_too_long","title_not_supported","option_required","option_too_long","option_invalid","option_too_many","option_too_few","option_not_supported","post_type_not_supported","post_type_invalid","alt_text_unattached","user_tags_not_supported","user_tags_kind_unsupported","user_tags_unattached","too_many_user_tags","user_tag_position_invalid","tag_not_found","tag_name_taken","tag_limit_reached","hashtag_set_name_taken","hashtag_set_limit_reached","channel_group_name_taken","channel_group_limit_reached","channel_group_channel_not_found","attachment_too_long","attachment_too_short","attachment_aspect_unsupported","attachment_too_many_pixels","attachment_too_large","too_many_attachments_of_kind","attachment_kinds_mixed","too_many_attachments_of_type","attachment_types_mixed","utm_not_supported","utm_too_long","utm_invalid","webhook_url_invalid","webhook_events_invalid","webhook_limit_reached","schedule_required","schedule_in_past","schedule_too_far","schedule_invalid","edit_not_supported","edit_window_expired","revision_structure_changed","retract_failed","comments_not_supported","comments_not_granted","comment_not_found","platform_refused","platform_error","post_already_published","post_publishing","post_changed","post_not_published","post_test_mode","channel_not_connected","request_in_progress","quota_exceeded","workspace_locked","rate_limited","service_unavailable","internal_error"],"description":"What to branch on. Adding a code is NOT a breaking change, so treat an unrecognised one as a generic failure of the HTTP status rather than crashing."},"message":{"type":"string","description":"The explanation, in prose, and the best one available: safe to surface to your own users. Never branch on it.","example":"X (Twitter) allows 280 characters; this one is 300"},"field":{"type":"string","description":"Path into the request body that caused it, where one applies, or the name of the offending header, for the failures a header produces (`Idempotency-Key`). When `details` is present this is the first of them.","example":"channels[1].blocks[0].content"},"details":{"type":"array","items":{"$ref":"#/components/schemas/FieldError"},"description":"Every field that failed, when schema validation rejected more than one. Absent otherwise: a platform rule refuses one thing at a time. Fix them together rather than a round trip per mistake."},"requestId":{"type":"string","description":"Echoed from the `x-request-id` response header and logged server-side. Quote it in a support request and the failure is one lookup away.","example":"req_a8b0c1d2-3e4f-5678-9abc-def012345678"}},"required":["code","message","requestId"]},"FieldError":{"type":"object","description":"One field that failed validation, and why.","properties":{"field":{"type":"string","description":"Path into the request body.","example":"channels[0].blocks[1].content"},"message":{"type":"string","description":"Why it was rejected. Prose: never branch on it.","example":"channels[0].blocks[1].content must be a string"}},"required":["field","message"]},"InsightFormat":{"type":"object","properties":{"format":{"type":"string","enum":["text","image","video"],"description":"From the media on ANY block of the post, so a thread whose third block is a video is a video post. Video wins when a post has both."},"posts":{"type":"integer","description":"Posts behind `score`. Apply a floor before comparing: the app compares nothing under 5."},"score":{"type":"number","example":1.4,"description":"Average of each post’s engagement divided by its own channel’s usual. `1` is usual; `1.4` is 40% better than those accounts normally do."}},"required":["format","posts","score"]},"InsightHour":{"type":"object","properties":{"hour":{"type":"integer","minimum":0,"maximum":23,"description":"Hour of the day the post went out, in `timezone`."},"posts":{"type":"integer","description":"Posts behind `score`. Apply a floor before comparing: the app compares nothing under 5."},"score":{"type":"number","example":1.4,"description":"Average of each post’s engagement divided by its own channel’s usual. `1` is usual; `1.4` is 40% better than those accounts normally do."}},"required":["hour","posts","score"]},"InsightSlot":{"type":"object","description":"One hour of one weekday.","properties":{"weekday":{"type":"integer","minimum":1,"maximum":7,"description":"ISO weekday: `1` is Monday, `7` is Sunday, in `timezone`."},"hour":{"type":"integer","minimum":0,"maximum":23,"description":"Hour of the day the post went out, in `timezone`."},"posts":{"type":"integer","description":"Posts behind `score`. Apply a floor before comparing: the app compares nothing under 5."},"score":{"type":"number","example":1.4,"description":"Average of each post’s engagement divided by its own channel’s usual. `1` is usual; `1.4` is 40% better than those accounts normally do."}},"required":["weekday","hour","posts","score"]},"InsightTag":{"type":"object","properties":{"tagId":{"type":"string","description":"A tag id from `GET /public/v1/tags`.","example":"clx3k2p9q0001abcd1234efgh"},"posts":{"type":"integer","description":"Posts behind `score`. Apply a floor before comparing: the app compares nothing under 5."},"score":{"type":"number","example":1.4,"description":"Average of each post’s engagement divided by its own channel’s usual. `1` is usual; `1.4` is 40% better than those accounts normally do."}},"required":["tagId","posts","score"]},"InsightThread":{"type":"object","properties":{"kind":{"type":"string","enum":["single","thread"]},"posts":{"type":"integer","description":"Posts behind `score`. Apply a floor before comparing: the app compares nothing under 5."},"score":{"type":"number","example":1.4,"description":"Average of each post’s engagement divided by its own channel’s usual. `1` is usual; `1.4` is 40% better than those accounts normally do."}},"required":["kind","posts","score"]},"InsightWeekday":{"type":"object","properties":{"weekday":{"type":"integer","minimum":1,"maximum":7,"description":"ISO weekday: `1` is Monday, `7` is Sunday, in `timezone`."},"posts":{"type":"integer","description":"Posts behind `score`. Apply a floor before comparing: the app compares nothing under 5."},"score":{"type":"number","example":1.4,"description":"Average of each post’s engagement divided by its own channel’s usual. `1` is usual; `1.4` is 40% better than those accounts normally do."}},"required":["weekday","posts","score"]},"IssuedWebhookEndpoint":{"type":"object","description":"An endpoint together with its signing secret. Returned by exactly two operations (registering an endpoint and rolling its secret) and by nothing else, ever.","properties":{"secret":{"type":"string","description":"The signing secret, in the clear. **Store it now.** Only an encrypted copy is kept; the only way to get another is to roll it, which invalidates this one.","example":"whsec_2f4a…"},"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"}},"required":["secret","endpoint"]},"MediaItem":{"type":"object","description":"An item in the workspace’s media library.","properties":{"id":{"type":"string","description":"Media library id. The stable identifier: key durable state off this.","example":"clx3k2p9q0001abcd1234efgh"},"url":{"type":"string","format":"uri","description":"Short-lived download URL, minted fresh on every response. NOT a stable identifier and not safe to cache: re-read the resource instead."},"fileName":{"type":"string","example":"launch-banner.png"},"mimeType":{"type":"string","example":"image/png"},"size":{"type":"integer","description":"Size in bytes.","example":184320},"altText":{"type":"string","nullable":true,"description":"What the attachment shows, for a reader who cannot see it, or null if nobody has said. Already resolved: a description the post gave this attachment wins over the one stored on the library item, so this is the text the platforms are actually sent. Which platforms take one at all is `limits.supportsAltText` on GET /platforms; a platform that does not simply ignores it.","example":"A hand-drawn logo on a pale background"},"createdAt":{"type":"string","format":"date-time","description":"When it was uploaded.","example":"2026-08-04T09:30:00.000Z"}},"required":["id","url","fileName","mimeType","size","altText","createdAt"]},"MediaPage":{"type":"object","description":"A page of the media library, newest first.","properties":{"data":{"type":"array","description":"The items on this page.","items":{"$ref":"#/components/schemas/MediaItem"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `?cursor=` to fetch the next page. Null on the last page. Opaque by contract: do not parse it."},"hasMore":{"type":"boolean"}},"required":["data","nextCursor","hasMore"]},"MediaUpload":{"type":"object","description":"An open upload session. Cut the file into `partCount` parts of `partSize` bytes (the last one is whatever is left), ask for their URLs, PUT each part, then complete.","properties":{"id":{"type":"string","description":"The upload session id. Not a media id: that comes from complete.","example":"clx3k2p9q0001abcd1234efgh"},"partSize":{"type":"integer","description":"Bytes in every part but the last.","example":16777216},"partCount":{"type":"integer","description":"Parts are numbered 1 to this, inclusive.","example":32}},"required":["id","partSize","partCount"]},"MediaUploadPart":{"type":"object","properties":{"partNumber":{"type":"integer","minimum":1,"example":1},"url":{"type":"string","format":"uri","description":"PUT this part’s bytes here as the raw request body, with no auth header. Signed for the part’s exact length and valid for an hour, so ask for URLs as you go rather than all at once."}},"required":["partNumber","url"]},"OptionChoices":{"type":"array","description":"The matching values, best first. Empty when nothing matches.","items":{"type":"object","properties":{"value":{"type":"string","description":"Send this."},"label":{"type":"string","description":"Show this."},"help":{"type":"string","nullable":true,"description":"Extra context, where the label needs it."}},"required":["value","label","help"]}},"Platform":{"type":"object","description":"A supported platform and everything it will accept.","properties":{"id":{"type":"string","enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"description":"Stable identifier. Use this in `channels[].platform`."},"name":{"type":"string","description":"Human name, e.g. \"X\". Display only: never branch on it.","example":"X (Twitter)"},"limits":{"$ref":"#/components/schemas/PlatformLimits"},"postTypes":{"type":"array","description":"The KINDS of thing this platform publishes, where it publishes more than one: an Instagram Story against a post on the grid. EMPTY on every platform with a single kind, which is all of them but Instagram, so there is always an array to read. Send one entry’s `key` as `channels[].postType`; a key that is not listed is `post_type_invalid`, and sending one at all where this array is empty is `post_type_not_supported`. Omitting it asks for the FIRST entry, which is what `limits` above already describes, so a client that ignores this field reads exactly the platform it read before post types existed.","items":{"$ref":"#/components/schemas/PostType"}},"continuationNoun":{"type":"string","description":"What this platform calls a block after the first: \"post\" on X, \"comment\" on LinkedIn. Travels so your own error messages can use the word your user would recognise.","example":"post"},"deletesDataOnDisconnect":{"type":"boolean","description":"The platform’s terms require deleting what its API returned once access ends. Disconnecting such a channel, or the user revoking access at the platform, deletes its engagement readings and remote links, and its publications leave stats. Elsewhere they outlive a disconnect."}},"required":["id","name","limits","postTypes","continuationNoun","deletesDataOnDisconnect"]},"PlatformLimits":{"type":"object","description":"What this platform accepts. Read these rather than hardcoding them: they change when a platform changes, and a client carrying its own copy will be wrong before we are.","properties":{"maxCharacters":{"type":"integer","description":"Characters one block may carry.","example":280},"maxCharactersPerAccount":{"type":"integer","nullable":true,"description":"The most a block may carry on an account with the platform's paid tier, where one buys more room than `maxCharacters`. Null where every account gets the same number, which is every platform but X. Compose against `maxCharacters` unless you know the account has paid: nothing here says which tier a channel is on, so text between the two numbers is accepted by this API and settled by the platform at publish: it goes out for an account that pays and comes back as a publish error for one that doesn't. Over this number is `content_too_long`, for anyone.","example":25000},"urlWeight":{"type":"integer","nullable":true,"description":"What ONE LINK costs against `maxCharacters`, on a platform that rewrites every URL to a shortener of its own. Null where a link costs its own length, which is every platform but X. Count with this before deciding text is too long: X charges 23 for any link, so a post that looks 60 characters over can be comfortably under.","example":23},"maxMedia":{"type":"integer","description":"Attachments the first block may carry. 0 means the platform takes none.","example":4},"maxMediaOnContinuation":{"type":"integer","description":"Attachments a block AFTER the first may carry. Equal to `maxMedia` where position makes no difference; always present, so a client never implements the fallback itself."},"maxReplyCharacters":{"type":"integer","nullable":true,"description":"Characters a reply to a comment may carry, where that differs from a post. Null where a reply is held to `maxCharacters` and `maxCharactersPerAccount` like a post. Over it is `content_too_long`.","example":1250},"maxBlocks":{"type":"integer","description":"Blocks one submission may chain. `1` means this platform has no threads. The PLATFORM’s number: a channel whose `continuationStatus` on `GET /public/v1/channels` is not `available` is capped at one block whatever this says, so read the two together before composing a thread.","example":25},"requiresMedia":{"type":"boolean","description":"The platform refuses a post carrying no attachment at all."},"acceptedMimeTypes":{"type":"array","items":{"type":"string"},"description":"The mime types an attachment may be on this platform. The counts above can't express this, and on a video-only platform it decides whether the post can go out at all. Check an upload's `mimeType` against every platform it's headed for.","example":["image/jpeg","image/png","image/webp","image/gif"]},"supportsAltText":{"type":"boolean","description":"This platform publishes a per-attachment description and we send it. NOT a rule to validate against: `blocks[].mediaAltText` is accepted on every platform, because a description belongs to the file and one submission fans out to several channels. Read it to decide whether to ask for a description, and to explain why the one you wrote will not appear on a channel that returns false."},"userTags":{"type":"object","nullable":true,"description":"What this platform does with people tagged on an attachment, or null when it tags nobody. UNLIKE `supportsAltText` above, this IS a rule to validate against: a description belongs to the file and an unused one costs the post nothing, while a handle is an account on THIS platform and the same characters name somebody else on the next one, so `blocks[].mediaUserTags` sent to a channel whose value here is null is refused as `user_tags_not_supported`. The whole object changes with `channels[].postType`; read it off the entry in `postTypes` you are publishing.","required":["maxItems","kinds","positioned"],"properties":{"maxItems":{"type":"integer","description":"Most people ONE attachment may tag. Per attachment, not per post: a carousel tags this many on every picture it carries.","example":20},"kinds":{"type":"array","items":{"type":"string","enum":["image","video","document","caption"]},"description":"Which kinds of attachment take a tag. Tagging a file of any other kind is `user_tags_kind_unsupported`.","example":["image"]},"positioned":{"type":"boolean","description":"A tag names a POINT on the attachment as well as a person. Send `x` and `y` when true and neither when false: either one the wrong way round is `user_tag_position_invalid`. An Instagram feed photo is true; a Story is false, because it mentions someone without pointing at them."}}},"publishesContent":{"type":"boolean","description":"This platform publishes the block's text. `false` means it has no caption field at all: an Instagram Story, where the words are stored, published on every other channel of the same submission, and dropped here. Not a rule to check against: content is accepted on every platform, because one submission fans out to several and a caption written for four channels is not refused by the fifth. Where it is false there is nothing to count against `maxCharacters`."},"title":{"type":"object","nullable":true,"description":"Set on platforms whose post has a TITLE field of its own, alongside its body: send it as `channels[].title` when creating a post. `null` on platforms that have no such field, which is most of them; sending a title to one of those is rejected with `title_not_supported` rather than ignored. Where it is set, `maxCharacters` is the title's own cap (unrelated to `maxCharacters` above, which measures the body) and going over is `title_too_long`; the title is never silently shortened. If `required` is true, publishing without one is `title_required`; drafts are exempt.","properties":{"maxCharacters":{"type":"integer","description":"Characters the title may carry. Counted in code points, so an emoji is one character.","example":100},"label":{"type":"string","description":"What the platform calls the field. Display only: never branch on it.","example":"Title"},"required":{"type":"boolean","description":"The platform will not publish a post without a title. Checked when publishing, not when drafting."},"standsAlone":{"type":"boolean","description":"A first block carrying a title needs nothing else: no `content`, no `mediaIds`. True on Reddit, where a link submission is a title and a URL and a self post with an empty body is an ordinary title-only post. False everywhere else, where a block with neither text nor an attachment is `content_empty` whatever its title says. Only the first block: a continuation has no title of its own."}},"required":["maxCharacters","label","required","standsAlone"]},"options":{"type":"array","description":"Fields this platform has that others don't: Pinterest's destination link and alt text, TikTok's privacy level. Send values as `channels[].options`, keyed by each entry's `key`. Empty on a platform whose post is only its content, so there is always an array here to read. A key that isn't listed is rejected with `option_not_supported` rather than dropped.","items":{"type":"object","properties":{"key":{"type":"string","description":"Send the value under this key in `channels[].options`.","example":"link"},"label":{"type":"string","description":"What the platform calls the field. Display only: never branch on it.","example":"Destination link"},"type":{"type":"string","enum":["text","url","choice","boolean","list","media","search"],"description":"`text` is free text capped by `maxCharacters`; `url` must be an absolute http(s) address or it is `option_invalid`; `choice` must be one of `choices` when that list is present; `boolean` takes the string `\"true\"` or `\"false\"`; `media` is the id of a file you uploaded, and the `media` object on this entry says what that file may be. Those five are all sent as strings whatever they mean. `list` is the one that is not: it is a REPEATED value (X’s poll answers) sent as a JSON array of strings, bounded by `minItems`/`maxItems`, with `maxCharacters` applying to each entry rather than to the whole. `search` is a string too, and it is an opaque platform id from a set too large to publish here: Instagram’s `location_id` is one Facebook Page out of every Page that has an address. Its `choices` is null and stays null, because there is no list. Send an id you already hold and nothing validates it on submission; the platform settles it when the post goes out, which for a place that has since closed is the post publishing without one. To turn a NAME into one of these ids, call `GET /channels/{id}/options/{key}/choices?q=...` and send the `value` it returns."},"required":{"type":"boolean","description":"The platform will not publish without this field. Checked when publishing, not when drafting: going without is `option_required`."},"help":{"type":"string","nullable":true,"description":"A sentence describing the field, where its label doesn't say enough on its own."},"helpWhenOn":{"type":"string","nullable":true,"description":"Shown in place of `help` while a `boolean` is on: the sentence that only becomes true once it's set. Where a platform requires a declaration before publishing, this is it: TikTok's guidelines set out what a creator undertakes by marking a video a paid partnership, and a client that puts someone in front of that checkbox is expected to put them in front of this too. Null on every non-boolean and on every option with nothing extra to say."},"maxCharacters":{"type":"integer","nullable":true,"description":"Cap for a `text` or `url`, counted in code points, and for ONE ENTRY of a `list`. Over it is `option_too_long` (the value is never silently shortened) and on a list the error’s `field` pointer carries the index of the entry that was too long. The per-entry reading is the only one that means anything on a repeated field: X allows 25 characters per poll answer and states no rule about the four of them together. Null on a `choice`.","example":2048},"minItems":{"type":"integer","nullable":true,"description":"Fewest entries a `list` may carry, checked only when publishing, like `required`, because a draft carrying one poll answer so far is unfinished rather than wrong. Under it is `option_too_few`. An EMPTY list is not this: it is the same as sending nothing at all, so it answers to `required` and never to `minItems`. Null on every other type, and on a list the platform does not bound from below.","example":2},"maxItems":{"type":"integer","nullable":true,"description":"Most entries a `list` may carry, checked whenever the field is sent. Over it is `option_too_many`, separate from `option_too_long`, which on a list measures one entry, because too many answers and too long an answer are fixed in different places. Null on every other type.","example":4},"media":{"type":"object","nullable":true,"description":"What a `media` option's file may be: a SECOND attachment, with rules of its own rather than the block's. Deliberately not `acceptedMimeTypes` and `limits.media`, which describe the post's attachments: a YouTube post's attachment is the video and its thumbnail is a still picture, and the same platform refuses each in the other's place. Send the media `id` as this option's value, exactly as `blocks[].mediaIds` takes ids. A file that isn't in your workspace, isn't one of `mimeTypes`, or is over `maxBytes` is `option_invalid` against this key. Null on every other type.","properties":{"mimeTypes":{"type":"array","items":{"type":"string"},"description":"The file types this slot publishes. What our publish SENDS today rather than what the platform documents: the same promise `acceptedMimeTypes` makes.","example":["image/jpeg","image/png"]},"maxBytes":{"type":"integer","nullable":true,"description":"Byte ceiling for this one file, or null where the platform publishes none.","example":2097152}},"required":["mimeTypes","maxBytes"]},"choices":{"type":"array","nullable":true,"description":"The accepted values of a `choice`, or **null when they depend on the connected account rather than the platform**, which is TikTok's privacy levels: what a creator may post as varies by account and by the app's review status, so no list published here would be right for every channel. A null means the value isn't validated on submission; read what one channel allows from `GET /channels/{id}/capabilities`, or send what the account should use and the platform settles it at publish time, falling back to what that account does allow. Always null on a `text` or `url`, and always null on a `search` for a different reason worth telling apart: a dynamic `choice` has a list this endpoint can't publish because it belongs to an account, while a `search` has no list at all.","items":{"type":"object","properties":{"value":{"type":"string","description":"Send this."},"label":{"type":"string","description":"Show this."},"help":{"type":"string","nullable":true,"description":"Extra context, where the label needs it."}},"required":["value","label","help"]}},"rulesOut":{"type":"array","description":"What this field rules out elsewhere, read as: while you send a value for this key, the named option may not carry the listed values; or, where `values` is null, may not carry any value at all. “Sending a value” is the same reading `rulesOutMedia` uses: a `boolean` counts only as `\"true\"`, a `list` only with an entry in it. A rule of the platform's rather than of ours (TikTok will not publish a video marked as a paid partnership with a `privacy_level` of `SELF_ONLY`, and Threads will not attach a link preview to a post that is also a poll) and sending the pair anyway is `option_invalid` against the key named here, not against the field that caused it. This is the one case where a `choice` with a null `choices` list is validated on submission: what an account may pick is still not checked, but a combination the platform publishes as impossible needs nothing asked of the account. A MUTUAL exclusion appears on both fields, each carrying the sentence that reads correctly when that field is the one you added. Always an array; empty on the options that have no such rule, which is most of them.","items":{"type":"object","properties":{"key":{"type":"string","description":"The other option's `key`.","example":"privacy_level"},"values":{"type":"array","nullable":true,"items":{"type":"string"},"description":"Values of that option you may not send alongside this one, or null where the option may not be sent at all: the only reading available where the other field has no enumerable values (a `text`, a `url` or a `list`). Never an empty array: a rule that excludes nothing is not published.","example":["SELF_ONLY"]},"reason":{"type":"string","description":"Why, in the platform's terms. Safe to show a user verbatim."}},"required":["key","values","reason"]}},"rulesOutMedia":{"type":"string","nullable":true,"description":"Set where sending a value for this field means the post may carry NO ATTACHMENTS, to the platform’s own sentence saying why, safe to show a user verbatim. `rulesOut`’s counterpart for the thing a post HAS rather than a field it carries: a tweet is a poll or it is pictures, never both. Sending the pair anyway is `option_invalid`, reported against the `mediaIds` of the block that would have to give something up rather than against this key. Applies while the field has any value at all: a `boolean` that is `\"true\"`, or a `list` with an entry in it; an empty list rules nothing out. Null where the field and the attachments are independent, which is nearly everywhere."},"requires":{"type":"array","description":"What sending a value for this field makes REQUIRED elsewhere: while this one carries a value, every option named here has to carry one too. `rulesOut`’s obligation to its prohibition, and it exists because `required` cannot say it: LinkedIn’s poll needs a question as well as its answers, and declaring the question `required` would demand one of every ordinary status update. “Carrying a value” is the same reading the two rules above use: a `boolean` counts only as `\"true\"`, a `list` only with an entry in it. Sending one half without the other is `option_required` against the key named here: the same code as a plain missing field, because that is what it is, with the platform’s own sentence in place of ours. Checked only when publishing, like `required` and `minItems`: a draft carrying half a poll is unfinished rather than wrong. A MUTUAL obligation appears on both fields, each carrying the sentence that reads correctly when that field is the half you left out. Always an array; empty on the options that impose nothing, which is nearly all of them.","items":{"type":"object","properties":{"key":{"type":"string","description":"The other option's `key`: the one you also have to send a value for.","example":"poll_question"},"reason":{"type":"string","description":"Why, in the platform's terms. Safe to show a user verbatim, and it names both repairs: send the missing half, or clear the one you sent."}},"required":["key","reason"]}},"requiredWithMedia":{"type":"object","nullable":true,"description":"Set where an ATTACHMENT of one kind makes this field necessary, to that kind and the platform’s own sentence saying why. `requires` read from the other side. There another FIELD makes this one necessary, here it is a file: Pinterest refuses a Pin made from a video that has no cover image, and `required` could not say so, since most Pins are pictures and a picture has no cover. Checked only when publishing, like `required` and `requires`, and refused as `option_required` against this key rather than against the attachment that caused it. Null where nothing a post carries has any bearing on the field, which is nearly everywhere.","properties":{"kind":{"type":"string","enum":["image","video","document","caption"],"description":"The kind of attachment that makes this field necessary: the same vocabulary `media.perKind` is keyed by. An attachment of any other kind leaves the field optional. `caption` is in the vocabulary and cannot appear here: a subtitle file is never a post’s attachment.","example":"video"},"reason":{"type":"string","description":"Why, in the platform's terms. Safe to show a user verbatim, and it names both repairs: fill this field in, or attach something else."}},"required":["kind","reason"]},"revealedBy":{"type":"string","nullable":true,"description":"The `boolean` option that has to be on before this field may carry a value at all. A FOLLOW-UP QUESTION rather than a rule between two answers, which is what separates it from `rulesOut` and `requires`: those describe what a filled-in field does to another field that is always there, while this says the field is not there yet. TikTok’s commercial-content disclosure is the case: the two boxes naming what a post promotes only mean anything once the creator has said it promotes something. Sending a value for this key while the named option is off or absent is `option_invalid` against THIS key, and it is refused whether or not you are publishing: it is not an unfinished answer, it is an answer to a question nobody asked. On TikTok it is also a commercial label, and a label nobody confirmed must not reach a published video. Null where the field always applies, which is nearly everywhere.","example":"disclose_content"},"requiresAnyOf":{"type":"object","nullable":true,"description":"`requires` with the quantifier changed: while this field carries a value, ANY ONE of the named options has to carry one too. That rule names a field and demands it, and two entries mean both; this names a set and demands one of them without preferring either. TikTok’s disclosure parent is the case: the creator has to say which kind of promotion it is, and either answer is a complete one. Checked only when publishing, like `required` and `requires`, and refused as `option_required` against the first key in the set. Null where the field demands nothing, which is nearly everywhere.","properties":{"keys":{"type":"array","items":{"type":"string"},"description":"The option keys, one of which must carry a value. “Carrying a value” is the same reading every other rule here uses: a `boolean` counts only as `\"true\"`, a `list` only with an entry in it.","example":["brand_organic_toggle","brand_content_toggle"]},"reason":{"type":"string","description":"Why, in the platform's terms. Safe to show a user verbatim, and it names both repairs: answer one of them, or clear the field that asked."}},"required":["keys","reason"]}},"required":["key","label","type","required","help","helpWhenOn","maxCharacters","minItems","maxItems","media","choices","rulesOut","rulesOutMedia","requires","requiredWithMedia","revealedBy","requiresAnyOf"]}},"media":{"type":"object","nullable":true,"description":"What an attachment must BE here beyond its file type: how long a video runs and what shape it is. `null` on a platform that publishes no such rule, which is most of them. Every field is transcribed from the platform's own spec and nothing is inferred, so a null field means the platform states no rule rather than that anything goes. Worth reading before you upload rather than before you post: these are the limits you can only satisfy with a different file. Checked only against values we measured: duration and dimensions are read from the container at upload, are always unknown for images, and an unknown value never refuses a post.","properties":{"maxDurationSeconds":{"type":"integer","nullable":true,"description":"Longest a video may run. Over it is `attachment_too_long`.","example":300},"minDurationSeconds":{"type":"integer","nullable":true,"description":"Shortest a video may run, exclusive. Under it is `attachment_too_short`; a `0` here rejects only a file that measured as empty.","example":0},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest accepted width ÷ height. Outside the range is `attachment_aspect_unsupported`.","example":0.01},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest accepted width ÷ height, measured as the video plays: rotation is already applied, so a portrait phone clip counts as portrait.","example":10},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels one attachment may contain (width × height). Over it is `attachment_too_many_pixels`. Not a byte ceiling in disguise, and the reason it is worth checking before you upload: a 40 megapixel camera JPEG is only a few megabytes, so it satisfies every `maxBytes` here and is still refused. Nothing on this side resizes anything, so a picture over the cap needs saving smaller first.","example":36152320},"durationIsPerAccount":{"type":"boolean","description":"True when the duration cap belongs to the connected ACCOUNT rather than the platform, so no number published here could be right for every channel: TikTok grants different creators different maximums. No endpoint will tell you the number: it's resolved when the post publishes, and an over-long video fails then with that account's real limit named in the error."},"perKind":{"type":"object","nullable":true,"description":"Rules that differ by what the file IS, where one number could not be right for both kinds: Bluesky takes a 1 MB image and a 50 MB video, and a LinkedIn post carries one document OR up to twenty images. `null` on a platform that publishes no per-kind rule. All four kinds are always present when it isn't; a `null` entry means this platform states nothing about that kind, not that it refuses it; `acceptedMimeTypes` is what says which types publish at all. Nothing here widens `maxMedia`; it only narrows it further.","properties":{"image":{"type":"object","nullable":true,"description":"What this platform allows for images specifically. Null when it publishes no rule about them.","properties":{"maxCount":{"type":"integer","nullable":true,"description":"Most images one post may carry, where that is tighter than `maxMedia`. Null means only `maxMedia` binds. Over it is `too_many_attachments_of_kind`.","example":1},"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE image may be, in bytes. Over it is `attachment_too_large`. The only media rule checked on every attachment: a stored file always has a size, where the duration and dimensions above are measured best-effort and are unknown for every image.","example":50000000},"alone":{"type":"boolean","description":"True when a image may not share a post with a file of any other kind. Mixing them is `attachment_kinds_mixed`."},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest width ÷ height accepted for a image, where that differs from the platform-wide `minAspectRatio` above. It REPLACES that value for this kind rather than narrowing it. Null means the platform-wide one applies. Outside it is `attachment_aspect_unsupported`. Instagram is why: a feed image publishes between 4:5 and 1.91:1 where a video publishes between 0.01:1 and 10:1.","example":0.8},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest width ÷ height accepted for a image, on the same terms as `minAspectRatio`.","example":1.91},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels ONE image may contain (width × height) where that differs from the platform-wide `maxPixels` above, which it REPLACES for this kind rather than narrowing. Null means the platform-wide one applies. Over it is `attachment_too_many_pixels`. LinkedIn is why it sits per kind: its image API refuses anything over 36,152,320 px and its video API publishes no pixel rule at all.","example":36152320}},"required":["maxCount","maxBytes","alone","minAspectRatio","maxAspectRatio","maxPixels"]},"video":{"type":"object","nullable":true,"description":"What this platform allows for videos specifically. Null when it publishes no rule about them.","properties":{"maxCount":{"type":"integer","nullable":true,"description":"Most videos one post may carry, where that is tighter than `maxMedia`. Null means only `maxMedia` binds. Over it is `too_many_attachments_of_kind`.","example":1},"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE video may be, in bytes. Over it is `attachment_too_large`. The only media rule checked on every attachment: a stored file always has a size, where the duration and dimensions above are measured best-effort and are unknown for every image.","example":50000000},"alone":{"type":"boolean","description":"True when a video may not share a post with a file of any other kind. Mixing them is `attachment_kinds_mixed`."},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest width ÷ height accepted for a video, where that differs from the platform-wide `minAspectRatio` above. It REPLACES that value for this kind rather than narrowing it. Null means the platform-wide one applies. Outside it is `attachment_aspect_unsupported`. Instagram is why: a feed image publishes between 4:5 and 1.91:1 where a video publishes between 0.01:1 and 10:1.","example":0.8},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest width ÷ height accepted for a video, on the same terms as `minAspectRatio`.","example":1.91},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels ONE video may contain (width × height) where that differs from the platform-wide `maxPixels` above, which it REPLACES for this kind rather than narrowing. Null means the platform-wide one applies. Over it is `attachment_too_many_pixels`. LinkedIn is why it sits per kind: its image API refuses anything over 36,152,320 px and its video API publishes no pixel rule at all.","example":36152320}},"required":["maxCount","maxBytes","alone","minAspectRatio","maxAspectRatio","maxPixels"]},"document":{"type":"object","nullable":true,"description":"What this platform allows for documents specifically. Null when it publishes no rule about them.","properties":{"maxCount":{"type":"integer","nullable":true,"description":"Most documents one post may carry, where that is tighter than `maxMedia`. Null means only `maxMedia` binds. Over it is `too_many_attachments_of_kind`.","example":1},"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE document may be, in bytes. Over it is `attachment_too_large`. The only media rule checked on every attachment: a stored file always has a size, where the duration and dimensions above are measured best-effort and are unknown for every image.","example":50000000},"alone":{"type":"boolean","description":"True when a document may not share a post with a file of any other kind. Mixing them is `attachment_kinds_mixed`."},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest width ÷ height accepted for a document, where that differs from the platform-wide `minAspectRatio` above. It REPLACES that value for this kind rather than narrowing it. Null means the platform-wide one applies. Outside it is `attachment_aspect_unsupported`. Instagram is why: a feed image publishes between 4:5 and 1.91:1 where a video publishes between 0.01:1 and 10:1.","example":0.8},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest width ÷ height accepted for a document, on the same terms as `minAspectRatio`.","example":1.91},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels ONE document may contain (width × height) where that differs from the platform-wide `maxPixels` above, which it REPLACES for this kind rather than narrowing. Null means the platform-wide one applies. Over it is `attachment_too_many_pixels`. LinkedIn is why it sits per kind: its image API refuses anything over 36,152,320 px and its video API publishes no pixel rule at all.","example":36152320}},"required":["maxCount","maxBytes","alone","minAspectRatio","maxAspectRatio","maxPixels"]},"caption":{"type":"object","nullable":true,"description":"Always null. A subtitle file is a kind the media library stores and never a kind a POST carries, so no platform has a rule about how many of them one may hold. Where a subtitle file reaches a platform is a `media` option (see YouTube’s `captionFile`) whose own `mimeTypes` and `maxBytes` are the rules that bind it.","properties":{"maxCount":{"type":"integer","nullable":true,"description":"Most subtitle files one post may carry, where that is tighter than `maxMedia`. Null means only `maxMedia` binds. Over it is `too_many_attachments_of_kind`.","example":1},"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE subtitle file may be, in bytes. Over it is `attachment_too_large`. The only media rule checked on every attachment: a stored file always has a size, where the duration and dimensions above are measured best-effort and are unknown for every image.","example":50000000},"alone":{"type":"boolean","description":"True when a subtitle file may not share a post with a file of any other kind. Mixing them is `attachment_kinds_mixed`."},"minAspectRatio":{"type":"number","nullable":true,"description":"Lowest width ÷ height accepted for a subtitle file, where that differs from the platform-wide `minAspectRatio` above. It REPLACES that value for this kind rather than narrowing it. Null means the platform-wide one applies. Outside it is `attachment_aspect_unsupported`. Instagram is why: a feed image publishes between 4:5 and 1.91:1 where a video publishes between 0.01:1 and 10:1.","example":0.8},"maxAspectRatio":{"type":"number","nullable":true,"description":"Highest width ÷ height accepted for a subtitle file, on the same terms as `minAspectRatio`.","example":1.91},"maxPixels":{"type":"integer","nullable":true,"description":"Most pixels ONE subtitle file may contain (width × height) where that differs from the platform-wide `maxPixels` above, which it REPLACES for this kind rather than narrowing. Null means the platform-wide one applies. Over it is `attachment_too_many_pixels`. LinkedIn is why it sits per kind: its image API refuses anything over 36,152,320 px and its video API publishes no pixel rule at all.","example":36152320}},"required":["maxCount","maxBytes","alone","minAspectRatio","maxAspectRatio","maxPixels"]}},"required":["image","video","document","caption"]},"perType":{"type":"object","nullable":true,"description":"Rules for one exact MIME type, where the kind above is too coarse (`null` on a platform that publishes none, which is most of them). Keyed by the mime type as `media.mimeType` reports it. X is why it exists, and it needs every field: X takes \"up to 4 photos, 1 animated GIF, or 1 video\", where a GIF and a JPEG are both `image`, so the ceiling (15 MB of animation against 5 MB of still), the count and the exclusion are all facts about a type. `maxBytes` REPLACES the kind's ceiling for this file; `maxCount` is counted alongside the kind's cap rather than replacing it, since five images with one GIF among them are five of the kind and one of the type.","additionalProperties":{"type":"object","properties":{"maxBytes":{"type":"integer","nullable":true,"description":"Largest ONE file of this exact type may be, in bytes. Over it is `attachment_too_large`, the same error the kind ceiling raises.","example":15728640},"maxCount":{"type":"integer","nullable":true,"description":"Most files of this exact type one post may carry. Null means only the kind cap and `maxMedia` bind. Over it is `too_many_attachments_of_type`.","example":1},"alone":{"type":"boolean","description":"True when a file of this type may not share a post with a file of any other type, its own kind included, which is what separates it from the per-kind flag. Mixing them is `attachment_types_mixed`."},"noun":{"type":"string","nullable":true,"description":"What this platform calls a file of this type in a refusal: \"GIF\". Null where the kind name is the right word.","example":"GIF"}},"required":["maxBytes","maxCount","alone","noun"]},"example":{"image/jpeg":{"maxBytes":5242880,"maxCount":null,"alone":false,"noun":null},"image/gif":{"maxBytes":15728640,"maxCount":1,"alone":true,"noun":"GIF"}}}},"required":["maxDurationSeconds","minDurationSeconds","minAspectRatio","maxAspectRatio","maxPixels","durationIsPerAccount","perKind","perType"]},"remoteEdit":{"type":"object","nullable":true,"description":"What this platform will change about a post that is ALREADY OUT. Send it with `POST /public/v1/posts/{id}/revise`. `null` where a published post is final, which includes every platform that offers no update endpoint at all. Only half the answer: whether a GIVEN channel may use it depends on what its connection was granted, which is `manageStatus` on `GET /public/v1/channels`.","properties":{"fields":{"type":"array","items":{"type":"string","enum":["content","title","options"]},"description":"The parts that change. Attachments are on no platform's list and there is deliberately no member for them: revising cannot change what a post is carrying anywhere. Sending a part that is not listed is `edit_not_supported`: Reddit rewrites a post's body and never its title."},"windowMs":{"type":"integer","nullable":true,"description":"Milliseconds after publishing during which an edit is still accepted, or `null` for no deadline, which is every platform today. A revision arriving after it is `edit_window_expired`."}},"required":["fields","windowMs"]},"supportsRemoteDelete":{"type":"boolean","description":"This platform can take a published post back down, so `POST /public/v1/posts/{id}/retract` reaches it. False means a copy published here is permanent as far as this API is concerned: retracting a submission that includes one deletes our record and reports that channel as one whose copy stays up."}},"required":["maxCharacters","maxMedia","maxMediaOnContinuation","maxBlocks","requiresMedia","acceptedMimeTypes","supportsAltText","publishesContent","title","options","media","remoteEdit","supportsRemoteDelete"]},"Post":{"type":"object","description":"One submission: a single thing sent to one or more channels. `id` is the submission, not a per-channel row: each channel publishes independently and carries its own status inside `channels`.","properties":{"id":{"type":"string","description":"The submission id. Pass this to every `/posts/{id}` route.","example":"clx3k2p9q0001abcd1234efgh"},"status":{"type":"string","enum":["draft","scheduled","publishing","published","partially_published","failed"],"description":"Rolled up across channels. Anything still in flight outranks a mixed terminal state, so a group with one failure and three channels still publishing reports `publishing`, not `partially_published`."},"scheduledAt":{"type":"string","format":"date-time","description":"When it is (or was) due to go out.","example":"2026-08-04T09:30:00.000Z","nullable":true},"publishedAt":{"type":"string","format":"date-time","description":"Set only once EVERY channel has published, so a non-null value is a reliable “this submission is completely done”. While channels are still resolving, each one’s own `publishedAt` is the authoritative answer.","example":"2026-08-04T09:30:00.000Z","nullable":true},"channels":{"type":"array","description":"One entry per target account, in the order they were added.","items":{"$ref":"#/components/schemas/PostChannel"}},"tags":{"type":"array","description":"The workspace’s own labels for this submission (see `GET /public/v1/tags`). Empty when nothing is tagged. On the submission rather than on a channel, because that is what was tagged: one thing, filed under a word. Never published and never sent to a platform.","items":{"$ref":"#/components/schemas/Tag"}},"createdAt":{"type":"string","format":"date-time","description":"When the submission was created.","example":"2026-08-04T09:30:00.000Z"},"updatedAt":{"type":"string","format":"date-time","description":"When any of its channels last changed.","example":"2026-08-04T09:30:00.000Z"}},"required":["id","status","scheduledAt","publishedAt","channels","tags","createdAt","updatedAt"]},"PostBlock":{"type":"object","description":"One block of a chain: a tweet in a thread, a LinkedIn post or one of its comments.","properties":{"content":{"type":"string","description":"The text of this block."},"media":{"type":"array","description":"Attachments on this block, in order.","items":{"$ref":"#/components/schemas/Attachment"}},"mediaUserTags":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","description":"One person tagged on an attachment, and where on it. Whether the coordinates are wanted is `limits.userTags.positioned` on GET /platforms. Send both or neither.","properties":{"username":{"type":"string","maxLength":30,"description":"The platform handle, without an `@`. A leading `@` and a pasted profile URL are stripped rather than refused. Nothing here checks that the account exists: a handle that resolves to nobody is published as a post that tags nobody, with no error anywhere.","example":"ada"},"x":{"type":"number","minimum":0,"maximum":1,"description":"Distance from the LEFT edge as a fraction of the width: 0.5 is the middle, whatever the picture was uploaded at. Not pixels: a fraction is what survives the platform re-encoding the file.","example":0.25},"y":{"type":"number","minimum":0,"maximum":1,"description":"Distance from the TOP edge as a fraction of the height.","example":0.75}},"required":["username"]}},"description":"Who this block tags on each attachment, keyed by the media id they are tagged on, holding only the attachments that tag somebody. A map beside `media` rather than a field on each attachment, which is where this differs from `altText`: a description belongs to the file and is resolved onto it, while a tag belongs to this post on this platform. It comes back the way it was sent, so a post read here can be resubmitted verbatim.","example":{"clx3k2p9q0003abcd1234efgh":[{"username":"ada","x":0.25,"y":0.75}]}},"remoteUrl":{"type":"string","format":"uri","nullable":true,"description":"Where this block landed. Per block rather than only on the channel, because a five-tweet thread is five URLs. Null until it publishes."}},"required":["content","media","mediaUserTags","remoteUrl"]},"PostChannel":{"type":"object","description":"One channel’s copy of a submission: its own status and result.","properties":{"channelId":{"type":"string","description":"The connected account this went to. Null when that account has since been disconnected: the publication and its result survive, the link to a live channel does not. On YouTube, whose terms require deleting API data when access ends, disconnecting also clears `remoteUrl` and the platform's `error` text, and moves anything still scheduled back to `draft`; the text you wrote stays.","example":"clx3k2p9q0001abcd1234efgh","nullable":true},"platform":{"type":"string","nullable":true,"enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"description":"Null for the same reason `channelId` can be."},"title":{"type":"string","nullable":true,"description":"The post’s title, on platforms whose `limits.title` says they have that field. Null everywhere else.","example":"How we cut our build time in half"},"postType":{"type":"string","nullable":true,"description":"Which kind of thing this channel published: one of the `key`s in that platform’s `postTypes` on `GET /public/v1/platforms`. Null on a platform that publishes a single kind, and null where the submission asked for the default; both read the same way, as the `limits` at the top of that platform.","example":"story"},"options":{"type":"object","additionalProperties":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"description":"What this channel was given for its platform’s own fields: the values sent as `channels[].options`. Always an object, empty where nothing was sent. A value is a string, or an array of them for a field whose `type` on `GET /public/v1/platforms` is `list`; which one a key holds follows that declaration and never varies for a given key.","example":{"link":"https://example.com/recipes/pesto"}},"status":{"type":"string","enum":["draft","scheduled","publishing","published","partially_published","failed"],"description":"This channel’s own status, independent of its siblings."},"error":{"type":"string","nullable":true,"description":"Why this channel failed, in prose. Null unless `status` is `failed`."},"publishedAt":{"type":"string","format":"date-time","description":"When this channel published.","example":"2026-08-04T09:30:00.000Z","nullable":true},"remoteUrl":{"type":"string","format":"uri","nullable":true,"description":"Where the first block landed. Null until it publishes."},"blocks":{"type":"array","description":"The chain published to this channel. Always at least one entry.","items":{"$ref":"#/components/schemas/PostBlock"}}},"required":["channelId","platform","status","error","publishedAt","remoteUrl","blocks"]},"PostMetricReading":{"type":"object","description":"One sample of one channel’s engagement. Shared `capturedAt` across every publication swept together, which is what makes two channels’ curves comparable at a point rather than merely adjacent.","properties":{"capturedAt":{"type":"string","format":"date-time","description":"When the sweep took this reading.","example":"2026-08-04T09:30:00.000Z"},"values":{"type":"object","additionalProperties":{"type":"integer"},"example":{"likes":118,"comments":9,"impressions":4210},"description":"The platform’s RUNNING counts at that instant, keyed by metric name.\n\nAN ABSENT KEY IS NOT A ZERO: it was not reported at this capture, which on most platforms means it is never reported.\n\nCumulative since the post went out, so a curve only climbs. A value that DROPS between two readings is real and means people undid something."}},"required":["capturedAt","values"]},"PostMetrics":{"type":"object","description":"One submission’s engagement CURVES, per channel: the series behind `GET /public/v1/stats`, which only ever sums the latest reading of each publication.\n\nCumulative and unevenly spaced: sampling decays from roughly hourly to weekly and stops at about thirty days, so plot against `capturedAt` and read an older post as frozen at its last reading rather than as having stopped earning.","properties":{"postId":{"type":"string","description":"The submission these curves belong to.","example":"clx3k2p9q0001abcd1234efgh"},"metrics":{"type":"array","items":{"type":"string"},"example":["impressions","likes","comments"],"description":"Every metric name appearing anywhere in this response: the union of the per-channel lists, so one legend covers the whole submission. Empty when nothing has been reported for any channel. New names may be ADDED over time; treat an unrecognised one as a number you can display, not as an error."},"channels":{"type":"array","description":"One entry per channel of the submission, in the same order as `channels` on `GET /public/v1/posts/{id}`.","items":{"$ref":"#/components/schemas/PostMetricsChannel"}}},"required":["postId","metrics","channels"]},"PostMetricsChannel":{"type":"object","description":"One channel’s curve within the submission. Always present, even with no readings at all: omitting it would be indistinguishable from a channel the submission never went to, and \"no readings\" is the common case.","properties":{"channelId":{"type":"string","description":"The connected account, an id from `GET /public/v1/channels`, and what to join on for that channel’s `metricsStatus`, which is where the reason for an empty curve lives. Null once the account has been disconnected: the readings survive, the link doesn’t. Except on YouTube, whose readings are deleted when the channel is disconnected or its access revoked.","example":"clx3k2p9q0001abcd1234efgh","nullable":true},"platform":{"type":"string","nullable":true,"enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"description":"Platform id. Null for the same reason `channelId` can be."},"metrics":{"type":"array","items":{"type":"string"},"example":["impressions","likes"],"description":"Metric names appearing anywhere in THIS channel’s readings, in a stable order. A metric a platform started reporting partway through the post’s life is listed even though the earlier readings lack the key."},"readings":{"type":"array","description":"Oldest first. Empty when nothing has been sampled for this channel: the normal case, not an error.","items":{"$ref":"#/components/schemas/PostMetricReading"}}},"required":["channelId","platform","metrics","readings"]},"PostPage":{"type":"object","description":"A page of submissions, newest first.","properties":{"data":{"type":"array","description":"The submissions on this page.","items":{"$ref":"#/components/schemas/Post"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `?cursor=` to fetch the next page. Null on the last page. That, not an empty `data`, is how a client knows to stop. Opaque by contract: do not parse it."},"hasMore":{"type":"boolean"}},"required":["data","nextCursor","hasMore"]},"PostType":{"type":"object","description":"One kind of thing a platform publishes, with the limits that apply when you ask for it. The limits are complete rather than a diff: a kind of post is a different publication, not a variation on one.","properties":{"key":{"type":"string","description":"Send this as `channels[].postType`. Stable; never displayed.","example":"story"},"label":{"type":"string","description":"What the platform calls it. Display only.","example":"Story"},"help":{"type":"string","nullable":true,"description":"One sentence about what choosing it means where the limits don't say it: that an Instagram Story disappears after 24 hours, for instance. Null where there is nothing to add."},"limits":{"$ref":"#/components/schemas/PlatformLimits"}},"required":["key","label","help","limits"]},"ReplyToCommentRequest":{"type":"object","properties":{"channelId":{"type":"string","description":"Which channel’s copy of the submission the comment is on, an id from `GET /public/v1/channels`.","example":"clx3k2p9q0001abcd1234efgh"},"text":{"type":"string","description":"The reply. Held to the platform’s own limit, `limits.maxCharacters` on `GET /public/v1/platforms`."}},"required":["channelId","text"]},"RetractResult":{"type":"object","description":"What a retraction did, per channel. Two lists rather than a bare success, because the interesting outcome is partial: a submission spanning X and Instagram comes down on X and stays up on Instagram, and no HTTP status means both.","properties":{"removed":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","nullable":true,"description":"The channel, matching `channels[].channelId` on the submission. Null when the account has since been disconnected: the post outlives the connection, and there is then no token to reach it with. A YouTube channel's readings do not outlive it: they are deleted when it is disconnected or its access is revoked."},"platform":{"type":"string","enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"nullable":true,"description":"Its platform. Null for the same reason `channelId` is."},"reason":{"type":"string","nullable":true,"description":"Why this channel is in the list it is in, or null when the takedown succeeded. A sentence for a person to read (several of them are the platform's own words), so branch on which LIST the entry is in, never on this text."}},"required":["channelId","platform","reason"]},"description":"Channels whose copy is gone from the platform, and whose record went with it."},"remaining":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","nullable":true,"description":"The channel, matching `channels[].channelId` on the submission. Null when the account has since been disconnected: the post outlives the connection, and there is then no token to reach it with. A YouTube channel's readings do not outlive it: they are deleted when it is disconnected or its access is revoked."},"platform":{"type":"string","enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"nullable":true,"description":"Its platform. Null for the same reason `channelId` is."},"reason":{"type":"string","nullable":true,"description":"Why this channel is in the list it is in, or null when the takedown succeeded. A sentence for a person to read (several of them are the platform's own words), so branch on which LIST the entry is in, never on this text."}},"required":["channelId","platform","reason"]},"description":"Channels still live, each with a sentence saying why. A non-empty list means the submission still EXISTS, holding exactly these channels, so `GET /posts/{id}` keeps working and calling retract again takes down what is left."}},"required":["removed","remaining"]},"RevisePostBlock":{"type":"object","properties":{"content":{"type":"string","maxLength":5000,"description":"The block’s new text. Optional and empty is fine: clearing the caption on a published image is a real edit. Send the block even when its text has not changed; unchanged blocks are not sent to the platform, so they cost nothing and never mark a post \"edited\"."}},"description":"One block of the published chain. No attachments: no platform will change what a published post carries."},"RevisePostChannel":{"type":"object","description":"One channel’s new wording. Every channel of the submission must appear: what you are describing is how the submission should now read, not a patch against it.","properties":{"channelId":{"type":"string","description":"A channel id from `GET /public/v1/channels`.","example":"clx3k2p9q0001abcd1234efgh"},"title":{"type":"string","maxLength":300,"description":"The title, on platforms that have one AND will change it after publishing (`limits.remoteEdit.fields` on `GET /public/v1/platforms` says which). YouTube will; Reddit will not, and sending one there is `edit_not_supported` rather than a field quietly ignored."},"options":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","maxLength":8192},{"type":"array","maxItems":50,"items":{"type":"string","maxLength":8192}}]},"description":"The platform’s own fields, where `limits.remoteEdit.fields` includes `options`.","example":{"link":"https://example.com/recipes/pesto"}},"blocks":{"type":"array","minItems":1,"maxItems":25,"items":{"$ref":"#/components/schemas/RevisePostBlock"},"description":"Every block of the thread, in order, including unchanged ones. The length must equal what was published: adding or removing a block is `revision_structure_changed`."}},"required":["channelId","blocks"]},"RevisePostRequest":{"type":"object","description":"A revision: the submission as it should now read. Wording only: the channel list and each thread’s length must match what was published, and there is no field for attachments because no platform will change them.","properties":{"channels":{"type":"array","minItems":1,"maxItems":20,"items":{"$ref":"#/components/schemas/RevisePostChannel"},"description":"Every channel of the submission. Omitting one is `revision_structure_changed`, not a channel left alone: call `GET /posts/{id}` and edit what it returns."}},"required":["channels"]},"ReviseResult":{"type":"object","description":"What a revision did, per channel. A refusal the API could see coming (a platform that edits nothing, a field outside its `remoteEdit.fields`, a structural change) is an ERROR instead, because nothing was sent.","properties":{"revised":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","nullable":true,"description":"The channel, matching `channels[].channelId` on the submission. Null when the account has since been disconnected: the post outlives the connection, and there is then no token to reach it with. A YouTube channel's readings do not outlive it: they are deleted when it is disconnected or its access is revoked."},"platform":{"type":"string","enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"nullable":true,"description":"Its platform. Null for the same reason `channelId` is."},"reason":{"type":"string","nullable":true,"description":"Why this channel is in the list it is in, or null when the rewrite succeeded. A sentence for a person to read (several of them are the platform's own words), so branch on which LIST the entry is in, never on this text."}},"required":["channelId","platform","reason"]},"description":"Channels whose live copy now reads as you sent it."},"unchanged":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","nullable":true,"description":"The channel, matching `channels[].channelId` on the submission. Null when the account has since been disconnected: the post outlives the connection, and there is then no token to reach it with. A YouTube channel's readings do not outlive it: they are deleted when it is disconnected or its access is revoked."},"platform":{"type":"string","enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"nullable":true,"description":"Its platform. Null for the same reason `channelId` is."},"reason":{"type":"string","nullable":true,"description":"Why this channel is in the list it is in, or null when the rewrite succeeded. A sentence for a person to read (several of them are the platform's own words), so branch on which LIST the entry is in, never on this text."}},"required":["channelId","platform","reason"]},"description":"Channels that were not rewritten. `reason` tells the two cases apart: null means there was nothing to send (the text already matched) and a sentence means the platform refused. They share a list because the common case is a submission where one channel was fixed and the rest were left alone, which is not a partial failure."}},"required":["revised","unchanged"]},"SignMediaUploadPartsRequest":{"type":"object","properties":{"partNumbers":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"integer","minimum":1},"description":"Which parts to sign, 1-based. Up to 100 per call.","example":[1,2,3]}},"required":["partNumbers"]},"StartMediaUploadRequest":{"type":"object","properties":{"fileName":{"type":"string","maxLength":255,"example":"launch-video.mp4"},"mimeType":{"type":"string","maxLength":255,"description":"`video/mp4` or `video/quicktime`. Only video goes through upload sessions; every other kind is small enough for `POST /media`.","example":"video/mp4"},"size":{"type":"integer","minimum":1,"description":"The file’s exact size in bytes. Checked against the plan’s video cap and storage allowance now, and against what actually arrived on complete.","example":524288000}},"required":["fileName","mimeType","size"]},"Stats":{"type":"object","description":"Publishing ANALYTICS, not billing. Counted from the posts themselves, so deleting a post changes the history and these figures can go down. `GET /public/v1/usage` is the meter an invoice is computed from, and the only endpoint that predicts a 402.","properties":{"from":{"type":"string","format":"date-time","description":"Inclusive start of the window, as the server applied it.","example":"2026-08-04T09:30:00.000Z"},"to":{"type":"string","format":"date-time","description":"EXCLUSIVE end of the window.","example":"2026-08-04T09:30:00.000Z"},"timezone":{"type":"string","example":"UTC","description":"The IANA zone `daily[].date` was bucketed in: the one requested, or `UTC`. Echoed because a day boundary is the whole meaning of a daily series: the same publication falls on different dates in different zones."},"totals":{"$ref":"#/components/schemas/StatsTotals"},"engagement":{"$ref":"#/components/schemas/StatsEngagementTotals"},"metrics":{"type":"array","items":{"type":"string"},"example":["impressions","likes","comments","shares"],"description":"Metric names appearing anywhere in this response, in a stable render order. Empty when nothing was measured, which is how you tell \"no engagement reported\" from \"this API has no engagement\". New names may be ADDED over time; treat an unrecognised one as a number you can display, not as an error."},"queue":{"$ref":"#/components/schemas/StatsQueue"},"daily":{"type":"array","description":"One entry per day in the window, zero-filled and ascending.","items":{"$ref":"#/components/schemas/StatsDay"}},"channels":{"type":"array","description":"Busiest first. Every channel connected right now appears, including those that published nothing: a silent account is a finding, not an absence.","items":{"$ref":"#/components/schemas/StatsChannel"}},"tags":{"type":"array","description":"Busiest first, and only tags something landed under: unlike `channels`, an unused label is omitted. These figures OVERLAP and do not partition `totals`: a publication carrying two tags is counted under both, one carrying none under neither. Do not render them as shares of a whole.","items":{"$ref":"#/components/schemas/StatsTag"}}},"required":["from","to","timezone","totals","engagement","metrics","queue","daily","channels","tags"]},"StatsChannel":{"type":"object","description":"One connected account's share of the window.","properties":{"channelId":{"type":"string","description":"The connected account, an id from `GET /public/v1/channels`. Null on the single row collecting publications whose account has since been disconnected, which is what keeps these figures summing to `totals`. Publications to a disconnected YouTube channel are not in that row, nor in `totals`: YouTube's terms require deleting them from analytics once access ends.","example":"clx3k2p9q0001abcd1234efgh","nullable":true},"platform":{"type":"string","nullable":true,"enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"description":"Platform id. Null for the same reason `channelId` can be."},"published":{"type":"integer"},"failed":{"type":"integer"},"engagement":{"$ref":"#/components/schemas/StatsEngagement"}},"required":["channelId","platform","published","failed","engagement"]},"StatsDay":{"type":"object","description":"One calendar day of the window.\n\n`engagement` here is what the posts published ON THIS DAY have earned, counted since each went out and still moving, NOT engagement earned on this day. The two are easy to confuse into a chart that is wrong in a way nobody can see; the second is not derivable from cumulative readings and this API does not offer it.\n\nDays PARTITION the window, so unlike `tags` these do sum to the response-level `engagement`.","properties":{"date":{"type":"string","format":"date","example":"2026-08-04","description":"A CALENDAR DATE in `timezone`, not an instant. Parsing it as a timestamp re-reads it as UTC midnight and shifts the label a day in half the world."},"published":{"type":"integer"},"failed":{"type":"integer"},"engagement":{"$ref":"#/components/schemas/StatsEngagement"}},"required":["date","published","failed","engagement"]},"StatsEngagement":{"type":"object","description":"What one bucket's publications EARNED, read back from the platforms.","properties":{"values":{"type":"object","additionalProperties":{"type":"integer"},"example":{"likes":412,"comments":37,"shares":58},"description":"Summed cumulative counts keyed by metric name: the names listed in `metrics` on the response.\n\nAN ABSENT KEY IS NOT A ZERO. It means no publication in this bucket reported that metric: either its platform does not measure it, or the platform reports no engagement to this API at all. Rendering a missing key as `0` states a fact about engagement that nothing measured.\n\nEvery value is the LATEST reading of each publication, summed: cumulative since the post went out, not earned during the window."},"measured":{"type":"integer","description":"Publications in this bucket carrying any reading at all: the denominator. Compare it against the bucket’s `published` before presenting any figure in `values` as a fact about the whole bucket."}},"required":["values","measured"]},"StatsEngagementTotals":{"type":"object","description":"Engagement for the whole window, with per-metric coverage. Summed across CHANNELS, which partition the window, never across tags, which overlap.","properties":{"values":{"type":"object","additionalProperties":{"type":"integer"},"example":{"likes":412,"comments":37,"shares":58},"description":"Summed cumulative counts keyed by metric name: the names listed in `metrics` on the response.\n\nAN ABSENT KEY IS NOT A ZERO. It means no publication in this bucket reported that metric: either its platform does not measure it, or the platform reports no engagement to this API at all. Rendering a missing key as `0` states a fact about engagement that nothing measured.\n\nEvery value is the LATEST reading of each publication, summed: cumulative since the post went out, not earned during the window."},"reported":{"type":"object","additionalProperties":{"type":"integer"},"example":{"likes":31,"comments":31,"shares":31},"description":"How many publications reported each metric, keyed like `values`. What turns a total into a statement: 412 likes, from 31 of 44 publications."},"measured":{"type":"integer","description":"Publications in the window carrying any reading at all. Compare against `totals.published`."}},"required":["values","reported","measured"]},"StatsInsights":{"type":"object","description":"The window’s scored posts, grouped six ways. Every list is computed from the same posts, so groups within one list are comparable with each other.","properties":{"from":{"type":"string","format":"date-time","description":"Inclusive start of the window, as the server applied it.","example":"2026-08-04T09:30:00.000Z"},"to":{"type":"string","format":"date-time","description":"EXCLUSIVE end of the window.","example":"2026-08-04T09:30:00.000Z"},"timezone":{"type":"string","example":"UTC","description":"The IANA zone weekdays and hours were read in."},"compared":{"type":"integer","description":"Posts that could be scored: published in the window, reporting engagement, on a channel with at least 3 such posts. Zero is normal on a workspace whose platforms report no engagement."},"formats":{"type":"array","description":"Busiest first.","items":{"$ref":"#/components/schemas/InsightFormat"}},"threads":{"type":"array","description":"Busiest first.","items":{"$ref":"#/components/schemas/InsightThread"}},"weekdays":{"type":"array","description":"Monday first. A day nobody posted on is ABSENT, not zero: no posts is no evidence.","items":{"$ref":"#/components/schemas/InsightWeekday"}},"hours":{"type":"array","description":"Midnight first. Absent when nobody posted then.","items":{"$ref":"#/components/schemas/InsightHour"}},"slots":{"type":"array","description":"Weekday and hour together, ordered by weekday then hour. Sparse: at most 168 entries, usually far fewer. Thin cells are common here; group neighbouring hours before naming a best time.","items":{"$ref":"#/components/schemas/InsightSlot"}},"tags":{"type":"array","description":"Busiest first. OVERLAPPING: a post with two tags is in both, and an untagged post in none.","items":{"$ref":"#/components/schemas/InsightTag"}}},"required":["from","to","timezone","compared","formats","threads","weekdays","hours","slots","tags"]},"StatsQueue":{"type":"object","description":"A snapshot of RIGHT NOW. Unaffected by `from`/`to`: mixing pending work into a window total would produce a number meaning two things at once.","properties":{"scheduled":{"type":"integer","description":"Publications scheduled ahead of now, including any mid-flight."},"drafts":{"type":"integer","description":"Drafts held in the workspace, at any age."}},"required":["scheduled","drafts"]},"StatsTag":{"type":"object","description":"One tag's share of the window. Overlapping rather than a partition (see the field description on Stats).","properties":{"tagId":{"type":"string","description":"A tag id from `GET /public/v1/tags`.","example":"clx3k2p9q0001abcd1234efgh"},"published":{"type":"integer"},"failed":{"type":"integer"},"engagement":{"$ref":"#/components/schemas/StatsEngagement"}},"required":["tagId","published","failed","engagement"]},"StatsTotals":{"type":"object","description":"What happened inside the window.","properties":{"published":{"type":"integer","description":"Publications that reached the platform."},"failed":{"type":"integer","description":"Publications that were DUE in this window and errored. Placed by the time they were scheduled for, since a failure never got a publish time."}},"required":["published","failed"]},"Tag":{"type":"object","description":"A workspace’s own label for a submission. Ours, not any platform’s: a tag is not a hashtag, is never published, and no provider is told it exists.","properties":{"id":{"type":"string","description":"Use this in `tagIds` when creating a submission, and as `?tag=` when listing them. Address tags by id, never by name: the name is the field a workspace edits.","example":"clx3k2p9q0001abcd1234efgh"},"name":{"type":"string","description":"As the workspace typed it. Unique within the workspace, ignoring case.","example":"launch-week"},"color":{"type":"string","description":"A `#rrggbb` colour, for display only. Nothing filters or bills on it.","example":"#4f46e5"},"postCount":{"type":"integer","description":"How many submissions carry it. Submissions, not rows: a tag on a post that went to four channels counts once.","example":12}},"required":["id","name","color","postCount"]},"UpdateWebhookRequest":{"type":"object","description":"Only the fields you send are changed: a partial update, despite the PUT. An endpoint has no parts to reconcile, so there is no half-state a partial body could leave behind.","properties":{"url":{"type":"string","format":"uri","description":"A new destination."},"description":{"type":"string","maxLength":200},"events":{"type":"array","minItems":1,"items":{"type":"string","enum":["post.published","post.failed","post.partially_failed","channel.needs_reconnect"]},"description":"Replaces the subscription list wholesale."},"enabled":{"type":"boolean","description":"Pause or resume delivery, keeping the id and the signing secret. Re-enabling also clears the failure streak, so a fixed receiver is not one flake from being switched off again."}}},"UploadMediaRequest":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"JPEG, PNG, WebP, GIF, MP4, MOV, PDF, VTT or SRT. Images up to 10 MB, video and PDFs up to 100 MB, subtitle files up to 5 MB. A larger video, up to the plan’s video cap, goes through `POST /media/uploads` instead. Not every platform publishes every type: check `acceptedMimeTypes` on `GET /platforms`, where a PDF appears only for the platforms that publish a document post, and where a subtitle file appears on none: it is never an attachment, and reaches a platform through a `media` option instead (see YouTube’s `captionFile`). The bytes are proxied through the API rather than handed a presigned bucket URL, so the server sees the real content and a file whose bytes disagree with its declared type is rejected. A subtitle file sent as `application/octet-stream` (which is what an unconfigured client sends, since no system registers a type for `.srt`) is read from the filename’s extension instead, and then verified like everything else."}},"required":["file"]},"Usage":{"type":"object","description":"Consumption against the plan, for the whole ACCOUNT this workspace belongs to: a plan is bought once and every workspace its owner owns draws from one pool. These are the same events an invoice is computed from; a usage endpoint that disagreed with the bill would be worse than none.","properties":{"plan":{"type":"string","enum":["free","pro","enterprise"],"description":"The tier the account behind this workspace is on."},"periodStart":{"type":"string","format":"date-time","description":"Inclusive start of the current billing period.","example":"2026-08-04T09:30:00.000Z"},"periodEnd":{"type":"string","format":"date-time","description":"EXCLUSIVE end: the instant the period figures reset.","example":"2026-08-04T09:30:00.000Z"},"posts":{"type":"object","description":"Two figures because they answer different questions. `created` is what a hard cap is enforced against: posts published this period plus posts still waiting to publish, so a deleted or failed post gives its place back. Only a trial, or an account whose last payment failed, has a cap; `limit` is null otherwise. `published` is what a bill is computed from.","properties":{"created":{"$ref":"#/components/schemas/UsageMetric"},"published":{"type":"integer","description":"The billable figure: posts and comment replies that actually reached a platform this billing period."},"included":{"type":"integer","nullable":true,"description":"How many published actions the plan includes this period. Each one past it is billed per action, not refused. Null when nothing is metered."}},"required":["created","published","included"]},"channels":{"$ref":"#/components/schemas/UsageMetric"},"storage":{"type":"object","properties":{"bytesUsed":{"type":"integer"},"bytesLimit":{"type":"integer","nullable":true}},"required":["bytesUsed","bytesLimit"]}},"required":["plan","periodStart","periodEnd","posts","channels","storage"]},"UsageMetric":{"type":"object","description":"One metered resource: what has been used, and the ceiling.","properties":{"used":{"type":"integer"},"limit":{"type":"integer","nullable":true,"description":"Null means unlimited, not \"unknown\", and not a large number."}},"required":["used","limit"]},"WebhookChannelData":{"type":"object","description":"The `data` of a `channel.needs_reconnect` event.","properties":{"channel":{"$ref":"#/components/schemas/Channel"},"reason":{"type":"string","description":"What we found out. Only a human going back through OAuth in a browser fixes any of them, which is why this event exists.","example":"X refused to renew this account’s access. Reconnect it to publish again."}},"required":["channel","reason"]},"WebhookDelivery":{"type":"object","description":"One event’s journey to one endpoint, across every attempt made at it.","properties":{"id":{"type":"string","description":"The delivery id.","example":"clx3k2p9q0001abcd1234efgh"},"eventId":{"type":"string","description":"The event. Stable across every redelivery: this is what a subscriber dedupes on, and it is also the `id` in the body and the `X-Bulkit-Event-Id` header.","example":"clx3k2p9q0001abcd1234efgh"},"eventType":{"type":"string","enum":["post.published","post.failed","post.partially_failed","channel.needs_reconnect"],"description":"What happened."},"endpointId":{"type":"string","description":"The endpoint it was sent to.","example":"clx3k2p9q0001abcd1234efgh"},"status":{"type":"string","enum":["pending","succeeded","failed"],"description":"`pending`: not accepted yet, and may still be retried. `succeeded`: your server returned a 2xx. `failed`: the retry budget is spent and nothing further will be attempted."},"attempts":{"type":"integer","description":"How many times we have sent it."},"responseStatus":{"type":"integer","nullable":true,"description":"Your server’s HTTP status on the last attempt. Null when we never got one: DNS, TLS, refused, timed out. Your response BODY is never stored or returned."},"error":{"type":"string","nullable":true,"description":"Why the last attempt failed, in OUR words, never anything your server sent back.","example":"No response within 10s"},"durationMs":{"type":"integer","nullable":true,"description":"How long the last attempt took."},"lastAttemptAt":{"type":"string","format":"date-time","description":"When we last tried.","example":"2026-08-04T09:30:00.000Z","nullable":true},"createdAt":{"type":"string","format":"date-time","description":"When the event was queued for this endpoint.","example":"2026-08-04T09:30:00.000Z"}},"required":["id","eventId","eventType","endpointId","status","attempts","responseStatus","error","durationMs","lastAttemptAt","createdAt"]},"WebhookDeliveryPage":{"type":"object","description":"A page of delivery attempts, newest first.","properties":{"data":{"type":"array","description":"The attempts on this page.","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `?cursor=` for the next page. Null on the last page. Opaque by contract: do not parse it."},"hasMore":{"type":"boolean"}},"required":["data","nextCursor","hasMore"]},"WebhookEndpoint":{"type":"object","description":"A registered destination for events. The signing secret is deliberately absent: it is returned only when the endpoint is created or its secret is rolled, and no route reads it back.","properties":{"id":{"type":"string","description":"The endpoint id.","example":"clx3k2p9q0001abcd1234efgh"},"url":{"type":"string","format":"uri","description":"Where deliveries are POSTed.","example":"https://example.com/hooks/bulkit"},"description":{"type":"string","nullable":true,"description":"Your own label. Nothing else tells two endpoints apart."},"events":{"type":"array","items":{"type":"string","enum":["post.published","post.failed","post.partially_failed","channel.needs_reconnect"]},"description":"What this endpoint receives. Never empty."},"status":{"type":"string","enum":["enabled","disabled"],"description":"`disabled` means nothing is being delivered: either you switched it off, or we did after repeated failures. `disabledReason` tells them apart."},"disabledReason":{"type":"string","nullable":true,"description":"Why WE stopped delivering. Null while enabled, and null when you disabled it yourself; that needs no explanation from us."},"disabledAt":{"type":"string","format":"date-time","description":"When delivery stopped.","example":"2026-08-04T09:30:00.000Z","nullable":true},"secretLast4":{"type":"string","description":"Last 4 characters of the signing secret currently in force: enough to tell which secret a receiver is configured with, after the one time it was shown."},"createdAt":{"type":"string","format":"date-time","description":"When it was registered.","example":"2026-08-04T09:30:00.000Z"},"updatedAt":{"type":"string","format":"date-time","description":"When it was last changed.","example":"2026-08-04T09:30:00.000Z"}},"required":["id","url","description","events","status","disabledReason","disabledAt","secretLast4","createdAt","updatedAt"]},"WebhookEvent":{"type":"object","description":"The body POSTed to your endpoint. Documented here for reference: no operation on this API returns it.","properties":{"id":{"type":"string","description":"The event id, stable across every redelivery. Dedupe on this: delivery is at-least-once, so a receiver that 200s after its own timeout will be sent the same event again.","example":"clx3k2p9q0001abcd1234efgh"},"type":{"type":"string","enum":["post.published","post.failed","post.partially_failed","channel.needs_reconnect"],"description":"What happened."},"createdAt":{"type":"string","format":"date-time","description":"When the fact became true, not when this attempt was sent.","example":"2026-08-04T09:30:00.000Z"},"data":{"description":"`WebhookPostData` for the `post.*` events, `WebhookChannelData` for `channel.needs_reconnect`.","oneOf":[{"$ref":"#/components/schemas/WebhookPostData"},{"$ref":"#/components/schemas/WebhookChannelData"}]}},"required":["id","type","createdAt","data"]},"WebhookPostData":{"type":"object","description":"The `data` of a `post.*` event. The whole submission travels with it, in the shape `GET /posts/{id}` returns, so an ordinary subscriber never has to call back.","properties":{"post":{"$ref":"#/components/schemas/Post"},"channelId":{"type":"string","nullable":true,"description":"The channel this event is about. `post.*` events fire ONCE PER CHANNEL: each channel of a submission publishes independently, with its own status and its own retry, so there is no single moment at which \"the submission\" published."},"platform":{"type":"string","nullable":true,"enum":["x","linkedin","linkedin_page","instagram","facebook","threads","tiktok","youtube","vimeo","pinterest","bluesky","reddit"],"description":"That channel’s platform."},"blocksPublished":{"type":"integer","description":"How many blocks of the thread are live on the platform. On `post.partially_failed` this is less than `blocksTotal`, and the gap is the point: retrying resumes at the first unpublished block rather than re-posting the chain."},"blocksTotal":{"type":"integer","description":"How long the thread is. 1 for an ordinary post."},"error":{"type":"string","nullable":true,"description":"Why it failed. Null on `post.published`."}},"required":["post","channelId","platform","blocksPublished","blocksTotal","error"]},"WebhookTestResult":{"type":"object","description":"How the test went. A failed test is still a 200: the request worked and the receiver did not, and `error` says why.","properties":{"ok":{"type":"boolean","description":"True when your receiver answered with a 2xx."},"responseStatus":{"type":"integer","nullable":true,"description":"Your receiver’s own HTTP status, or null when it never answered. Its body is never read back, for the reason given on the deliveries route.","example":200},"error":{"type":"string","nullable":true,"description":"Why it failed, in our words. Null on success."},"durationMs":{"type":"integer","description":"How long the attempt took, in milliseconds.","example":182}},"required":["ok","responseStatus","error","durationMs"]}}},"externalDocs":{"description":"Bulkit API documentation","url":"https://docs.bulkit.io/docs"},"security":[{"ApiKeyHeader":[]},{"BearerToken":[]}]}