# Postbroad developer docs One post goes to every network you connect. Your code uses the REST API, your AI agent uses the MCP server. Both run on your own accounts and keys, with the same checks and the same approval rules as the app. - API: `https://app.postbroad.com/v1` - MCP server: `https://app.postbroad.com/mcp` ## Three ways in {#paths} - **Call the API from your product.** The [quickstart](guides/quickstart.md) schedules a first post in five calls. You need an API key, made in the app under Settings, then API. - **Connect your AI agent.** Claude, ChatGPT, Cursor, Codex, n8n and any other MCP client sign in in the browser; there is nothing to install. Start at the [MCP server](mcp/README.md). - **Connect a network with your own app.** Some networks only connect through an app you make on them. The [network guides](networks/README.md) take you through it, step by step. ## The first call {#first-call} Create a post for one connected account. The answer is the post, with its `revision` and one delivery per destination. ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "brandId": "", "baseText": "Hello from the API", "destinations": [{ "channelId": "", "scheduledAt": "2026-12-21T09:00:00Z" }] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ brandId: "", baseText: "Hello from the API", destinations: [{ channelId: "", scheduledAt: "2026-12-21T09:00:00Z" }], }), }); const post = await res.json(); ``` Every write takes an `Idempotency-Key`; a retry with the same key never makes a second post. ## How a post moves {#how} 1. **Draft.** A draft always saves. Problems are listed, not refused. 2. **Preview.** Postbroad shows what would be sent where, checks it against each network's rules, and signs a receipt. 3. **Schedule or publish now**, with that receipt. Nothing goes out that was not previewed. 4. **Delivery.** Each network reports its own state: a post is never sent or failed as a whole. 5. **Live, with a link.** A post counts as live only with evidence from the network. Only failed networks are retried, and nothing is posted twice. The [concepts](guides/concepts.md) explain each step. ## Everything in the docs {#map} - **Using the API:** [Authentication](api/authentication.md), [Errors](api/errors.md), [Webhooks](api/webhooks.md), [Rate limits](api/rate-limits.md), [Versioning](api/versioning.md). - **API reference:** [all endpoints](api/reference/README.md), with [Posts](api/reference/posts.md), [Schedule](api/reference/schedule.md) and [Deliveries](api/reference/deliveries.md) first. - **Agents:** [MCP server](mcp/README.md) and [prompt recipes](mcp/recipes.md). - **Networks and code:** [all networks](networks/README.md), [client code](sdk.md), [openapi.json](https://postbroad.com/docs/openapi.json), [llms.txt](https://postbroad.com/llms.txt) and [llms-full.txt](https://postbroad.com/llms-full.txt). ## What the API never does {#never} - An API key or an agent never makes another key. Keys are made and revoked by a person in the app; see [Authentication](api/authentication.md). - An agent never approves a post. Approvals are a person's; see [Approve or Autopilot](guides/concepts.md#modes). - Nothing is reported as published without evidence from the network; see [what live means](guides/concepts.md#live). - Posts made by keys and agents count on the same plan as posts made by hand; see [pricing](https://postbroad.com/pricing). Why builders pick Postbroad is on [postbroad.com/for/ai-builders](https://postbroad.com/for/ai-builders), and the API in short is on [postbroad.com/developers](https://postbroad.com/developers). # Quickstart: your first scheduled post Five calls take you from an API key to a scheduled post, in three steps: two to find a brand and an account, one to create the post, and two to preview and schedule it. A sixth, in step 4, watches it go live. Every example has a curl and a TypeScript tab. ## Before you start {#before} - A Postbroad account: [start free](https://app.postbroad.com/sign-up). - One connected network. The [network guides](../networks/README.md) show how. - An API key. Make one in the app: **Settings**, then **API**, then **Create API key**. The key is shown once, so copy it then. [Authentication](../api/authentication.md) says what a key can do. Export the key so the examples can use it: ```bash export POSTBROAD_TOKEN=prk_... ``` Every write carries an `Idempotency-Key`. Repeat the call with the same key and you get the first answer back, so a retry after a network error never creates a second post. ## 1. Find a brand and a connected channel {#step-1} In the API, a connected account on a network is a `channel` of a brand. ```bash title="curl" curl -H "Authorization: Bearer $POSTBROAD_TOKEN" "https://app.postbroad.com/v1/brands" curl -H "Authorization: Bearer $POSTBROAD_TOKEN" "https://app.postbroad.com/v1/channels" ``` ```ts title="TypeScript" const API = "https://app.postbroad.com/v1"; const auth = { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}` }; const brands = await (await fetch(`${API}/brands`, { headers: auth })).json(); const channels = await (await fetch(`${API}/channels`, { headers: auth })).json(); ``` Take a `brandId` from the first answer and the `id` of a channel of that brand from the second. ## 2. Create the post {#step-2} ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: first-post-0001" \ -H "Content-Type: application/json" \ -d '{ "brandId": "", "baseText": "Hello from the API", "destinations": [{ "channelId": "", "scheduledAt": "2026-12-21T09:00:00Z" }] }' ``` ```ts title="TypeScript" const post = await ( await fetch(`${API}/posts`, { method: "POST", headers: { ...auth, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" }, body: JSON.stringify({ brandId: "", baseText: "Hello from the API", destinations: [{ channelId: "", scheduledAt: "2026-12-21T09:00:00Z" }], }), }) ).json(); ``` The answer is the post with its current `revision` and one entry per destination under `deliveries`. A draft always saves; problems are listed, not refused. The time in the example is tomorrow at 09:00 UTC. ## 3. Preview, then commit {#step-3} Scheduling is two steps so that nothing happens that you have not seen. The preview writes nothing and returns what would be sent where, the preflight result and a signed `receipt`. Send the `revision` the create call returned and the `mode` you intend to use. A schedule preview reads each destination's `scheduledAt`; to send at once, preview with `"mode": "publish_now"` and commit the receipt to `POST /v1/posts/{postId}/publish-now` instead. ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//preview" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "mode": "schedule", "expectedRevision": }' ``` ```ts title="TypeScript" const preview = await ( await fetch(`${API}/posts/${post.id}/preview`, { method: "POST", headers: { ...auth, "Content-Type": "application/json" }, body: JSON.stringify({ mode: "schedule", expectedRevision: post.revision }), }) ).json(); if (preview.blocked) throw new Error("Preflight found problems; read preview.destinations"); ``` If `blocked` is true, read `destinations[].problems` and fix the content. Otherwise commit with the receipt: ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//schedule" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: first-post-0002" \ -H "Content-Type: application/json" \ -d '{ "receipt": "" }' ``` ```ts title="TypeScript" const result = await ( await fetch(`${API}/posts/${post.id}/schedule`, { method: "POST", headers: { ...auth, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json" }, body: JSON.stringify({ receipt: preview.receipt }), }) ).json(); ``` The `outcome` is `scheduled`, `publishing` or `in_review`. `in_review` means the brand needs an approval first: a person gets the review link, and the post is scheduled once it is approved. If the content changed after the preview, the call answers `409 preview_stale`; preview again. ## 4. Watch it {#step-4} ```bash title="curl" curl -H "Authorization: Bearer $POSTBROAD_TOKEN" "https://app.postbroad.com/v1/posts/" ``` ```ts title="TypeScript" const current = await (await fetch(`${API}/posts/${post.id}`, { headers: auth })).json(); ``` Each delivery has its own `state`: | State | What it means | |---|---| | `scheduled` | Waiting for its time. | | `sending` | Going out to the network now. | | `published` | Live, with the post's address in `providerUrl`. | | `failed` | The network refused it; `lastErrorCode` says why. Only failed deliveries are retried. | | `unknown` | The network gave no clear answer. It is never retried by a machine, because the post may be live. | Postbroad never reports `published` without evidence from the network. Every state is in the [concepts](concepts.md#states). To be told instead of polling, add a [webhook](../api/webhooks.md) for `delivery.published` and `delivery.failed`. ## Next steps {#next} - [Concepts](concepts.md): brands, channels, posts, deliveries and what live means. - [Webhooks](../api/webhooks.md): be told when a post goes live or fails. - [MCP server](../mcp/README.md): let an agent do this for you. # Concepts The words the API uses, what each object is, and how a post moves from a draft to live. Every other page links here instead of explaining them again. ## The objects {#objects} - **Organization**: your company or team. API keys belong to one organization. - **Brand**: one business or client you post for, with its own voice, rules and calendar. - **Channel**: one connected account on a network, for example a Facebook Page or a Bluesky account. In the API a connected account is always called a `channel`; the service itself (Instagram, VK, Ghost) is a network. - **Post**: what you write once, for one brand. - **Destination**: one channel the post goes to. - **Delivery**: the record of sending the post to that destination, with its state and the evidence the network gave back. A post never succeeds or fails as a whole: each destination has its own delivery and its own state. ## A post is adapted per network {#adapted} A post has one `baseText` and, where you want them, per destination overrides. The preview shows the effective payload for each destination: the text and media exactly as that network will get them. Each network's limits are counted the way that network counts, so 280 on X counts every link as 23 characters, while other networks count characters as a reader sees them. The [network pages](../networks/README.md) give each network's limits. ## Preview and receipt {#preview} Every schedule and every publish is two calls. The preview writes nothing: it returns what would be sent where, the preflight problems per destination and a signed `receipt`. The commit sends that receipt, so what goes out is exactly what was previewed. - If the post, its time or its destinations change after the preview, the commit answers `409 preview_stale`. Preview again and commit the new receipt. - Writes that support it take `?dry_run=true` and answer with the preview only. - Preflight problems are not HTTP errors: they are listed per destination in `destinations[].problems`, and a blocking one stops that destination until it is fixed. ## Delivery states {#states} | State | What it means | What Postbroad does next | |---|---|---| | `pending` | Not scheduled yet: the post is a draft or in review, or its approval is missing. | Moves to scheduled once the post is scheduled and any approval is given. | | `scheduled` | Waiting for its time. | Sends at that time, unless a hold, a missing connection or a blocking preflight problem stops it. | | `needs_reconnect` | The account has no working connection. | Waits. After a reconnect it is scheduled again; a time that passed meanwhile becomes a missed slot. | | `sending` | Going out to the network now. | Ends as accepted, failed or unknown. If nothing was sent, for example after a rate limit, it is scheduled again. | | `accepted` | The network accepted the post. | Postbroad looks for evidence that it is live, and waits while the network processes it. | | `processing` | The network is still processing it, for example a video. | Published when the network reports it live, failed if the network fails it. Still processing at the network's processing deadline, it stays accepted: the network took the upload, so it is never reported as failed. | | `published` | Live, with evidence from the network or a person's confirmation with the post's link. | Nothing: this is final. | | `failed` | The network refused it and nothing was created. | Waits for a retry, which a person, a key or an agent can ask for. Only failed deliveries are retried. | | `unknown` | The outcome is not clear: the network gave no clear answer. | Never retried by a machine, because the post may be live. Postbroad searches the network where it can, or a person decides. | | `cancelled` | Will not be sent: the post or this destination was cancelled, or a newer version replaced it. | Nothing: this is final. | ## What live means {#live} How sure Postbroad is that a post is live depends on what each network allows. Of the 53 networks listed: | Level | What it means | Networks | |---|---|---| | Live, read back | Postbroad reads the post back from the network and matches it to what was sent. | 27 | | Accepted, with a link | The network accepts the post and gives back its address. Postbroad keeps the link. | 21 | | Accepted | The network accepts the post and offers no way to read it back. | 4 | | A person confirms it | Nothing can be checked, so a person confirms the post is live and adds its link. | 1 | Each network's level is on its page in the [network guides](../networks/README.md). The rules behind it: - Nothing is reported as published without evidence from the network, or a person's confirmation with the post's link. - Only failed deliveries are retried, and a retry never posts twice. - An unknown outcome is never retried by a machine, because the post may be live. Postbroad searches the network where it can, or a person decides. ## Approve or Autopilot {#modes} An agent connected through the [MCP server](../mcp/README.md) posts in one of two modes, chosen by the person when they connect it; nothing is picked for them. - **Approve**: every post the agent makes waits for a person, who gets a review link. - **Autopilot**: the agent's posts go out on their own, after the same checks as any post. They count toward the plan like any post and stop at the daily limit. The mode is chosen each time an agent is connected. Whatever the mode, an agent previews before it writes, needs the preview's receipt to schedule, and can never approve a post. A brand can also need an approval for every post, whoever writes it. Then a schedule or publish call answers with the outcome `in_review`, a person gets the review link, and the post is scheduled once it is approved. A call that would send a post without its approval answers `approval_required`. Decisions are recorded through the [approvals](../api/reference/approvals.md) endpoints, by a person. ## Revisions and idempotency {#revisions} - Every object you can change has a `revision`. Send it back as `expectedRevision` when you change the object; if someone changed it in between, the call answers `409 revision_mismatch`. Read it again and repeat the change. - Every write takes an `Idempotency-Key`. A repeat with the same key returns the first answer instead of acting twice, so a retry after a network error never makes a second post. Use a new key for a different request. Next: the [API reference](../api/reference/README.md). # Authentication Every call to the API goes to `https://app.postbroad.com/v1` and carries an API key in the `Authorization` header. Agents that use the MCP server sign in in the browser instead; see [MCP and agents](#agents) below. ```bash curl https://app.postbroad.com/v1/brands \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ## Make an API key {#make} Keys are made and revoked only by a person signed in to the app, under Settings, API. A key, an agent or a connected app can never make another key, whatever it is allowed to do. The key looks like `prk_..`. It is shown once, when it is made, and Postbroad keeps only a hash of it, so store it in your secret manager straight away. If it is lost, make a new one and revoke the old one. ## What a key may do {#what} A key belongs to one organization and acts inside it only. When you make it you choose: | Setting | Meaning | |---|---| | Kind | `personal` acts as you, narrowed by the settings below. `service` holds only the scopes you list and keeps working when people leave. | | Scopes | What the key may do, from the list below. Empty on a personal key means everything you can do. A key never carries a scope its creator lacks. | | Brands | The brands the key may touch. Empty means every brand you reach. | | Read only | Refuses every write, whatever the scopes say. | | IP allowlist | Single addresses or CIDR blocks. Empty allows every address. | | Expiry | 90 days unless you choose another date or no expiry. | Give each integration its own key with the fewest scopes and brands it needs. Then one leaked key can do little, and revoking it stops one integration only. A key has no Approve or Autopilot mode: those are the modes of an agent, and a key never approves a post. ## Scopes {#scopes} The scopes a key can hold, 25 in all. A route without a scope can be called by any key of the organization, within the key's brands. | Scope | Operations | For example | |---|---|---| | `analytics.export` | 4 | Queue a CSV or JSON export of brand metrics | | `analytics.read` | 2 | Matching posts ordered by scheduled time or verified network results | | `audit.read` | 6 | Check a bounded snapshot of the organization audit chain | | `brand.create` | 3 | Create a brand | | `brand.manage` | 3 | Change a brand's settings, voice or rules | | `brand.settings` | 4 | Connect a link shortener to the brand, or change it | | `channel.manage` | 2 | Rename a channel or choose its preferred connection | | `connection.manage` | 10 | Register an own app; the secret is write-only | | `content.read` | 19 | List the signed-in member's MCP grants | | `extension.post` | 5 | The browser extension checks in | | `media.manage` | 3 | Change alt text, folder or tags | | `media.upload` | 5 | Start an upload: a pending session (1 h) and where to send the bytes | | `org.delete` | 2 | The Owner hands the organization to another member and becomes an Admin | | `org.manage` | 1 | Rename the organization or change its kind (labels and sidebar only) | | `post.approve` | 2 | Record an eligible human review decision | | `post.create` | 4 | Find accounts, roles or pages a post to this channel can tag | | `post.delete` | 1 | Delete a post that has not gone out; unsent destinations are cancelled first | | `post.delete_remote` | 1 | Delete a sent post from its network; this cannot be undone | | `post.draft` | 5 | Read an article once and draft a post for each of the brand's networks | | `post.edit` | 2 | Edit a post; a scheduled post gets a new version | | `post.publish` | 7 | Publish now with a preview receipt made in publish_now mode | | `post.schedule` | 13 | Effective payload, preflight and cost per destination, with a signed receipt | | `post.submit` | 1 | Revoke a review link and its browser sessions | | `token.manage` | 1 | Create an API key; the secret is in this answer only | | `webhook.manage` | 10 | List webhook endpoints | The scope each endpoint needs is in the Scope column of the [API reference](reference/README.md). ## Answers when it fails {#fails} | Status | Code | Meaning | |---|---|---| | 401 | `unauthenticated` | No key, a malformed key, or a key that is revoked or expired. | | 403 | `forbidden` | The key is valid but may not do this: a missing scope, a brand outside its list, or a read only key on a write. | | 404 | `not_found` | The object does not exist, or it belongs to a brand or organization the key cannot see. Postbroad does not say which. | Every error is `application/problem+json`; the [error catalogue](errors.md) lists every code. ## Headers you send {#headers} | Header | When | Meaning | |---|---|---| | `Authorization: Bearer ` | every call | The API key. | | `Idempotency-Key` | writes | A unique value per intended action. Repeating a call with the same key returns the first answer, so a retry never creates a second post. | | `Postbroad-Version` | optional | Pins the API version. See [versioning](versioning.md). | | `If-None-Match` | optional, reads | Returns `304 Not Modified` when the object has not changed. | Every answer carries a `Request-Id` header. Quote it when you contact support. How keys are stored is on the [security page](https://postbroad.com/security). ## Revoke a key {#revoke} Revoke a key in Settings, API. The next call with it answers `401`. Revoking does not touch posts the key already made or scheduled. ## MCP and agents {#agents} An agent connected through the [MCP server](../mcp/README.md) signs in in the browser and gets a grant for the brands the person picks, not a key. The person sees and ends every grant in the app, and `DELETE /v1/mcp/grants/{grantId}` ends one through the API. Limits per key are on the [rate limits](rate-limits.md) page. # Posting video How a video gets from your device to every network that takes video: what to upload, who converts it, what Postbroad checks, and what each problem in a preview means. ## The short version {#short} 1. Convert the video to the one format every video network takes (below), or let the Postbroad web app or CLI do it on your device. 2. Upload it: `createUpload`, send the bytes, `completeUpload`, then `getUpload` until it is `ingested`. Video files can be MP4, QuickTime (MOV) or WebM, up to 5 GB. 3. Attach it to a post with `media: [{ "assetId": "..." }]`, like a picture, and preview the post. Each destination says whether its network takes the video and, if not, why. ## The format {#format} Postbroad sends every network MP4 with: - H.264 video, 8-bit 4:2:0 (`yuv420p`), square pixels, no rotation flag, SDR (not HDR); - AAC sound, or no sound; - at most 60 frames a second; - within the network's own limits: size in pixels, file size, length and shape (width to height). A file that already fits goes as it is. A QuickTime file with fitting streams is copied into MP4, which takes a second and changes no picture. Postbroad never trims, crops, pads or enlarges a video. A video longer than a network takes, of a shape it refuses or with fewer pixels than it needs is refused for that network, with its limit. ## Who converts {#converting} Converting video takes a lot of computing, so it happens on your device, not on Postbroad's servers: - **The web app** converts in the browser when you upload a video, for the networks you chose in the composer, and shows how far it has got. Where several networks need different files (Discord takes 21 MB at most), it makes one file for each group, and each network gets the one it needs. - **The CLI** (`postbroad upload`) converts with ffmpeg when it is installed, and otherwise prints the target and the command. - **Through the API or MCP**, convert before you upload. This ffmpeg command makes a 1080p file every video network takes (add the network's file size limit with `-maxrate` when it has one): ```sh ffmpeg -i input.mov -map 0:v:0 -map 0:a:0? \ -vf "scale='min(1920,iw)':'min(1080,ih)':force_original_aspect_ratio=decrease:force_divisible_by=2,setsar=1" \ -c:v libx264 -preset medium -crf 21 -pix_fmt yuv420p -c:a aac -b:a 128k -ac 2 \ -map_metadata -1 -movflags +faststart output.mp4 ``` For an upright video use `min(1080,iw)` and `min(1920,ih)`: the long side is bounded, never the height alone. ## What Postbroad checks {#checks} When the file arrives, the server reads it (its size in pixels, length, codecs, frame rate and HDR flag), copies it into MP4 for each network when needed, and takes one frame as its poster for the media library and the calendar. It does not encode it again. A device that converted the file can say so with `clientRender` on `createUpload`: what it made and for which networks. The server compares that with the bytes and refuses the upload with `client_render_mismatch` when they differ, so a file that is not what it claims never reaches a network. ## Problems in a preview {#problems} Each problem names the network and its limit. The code says what to do: | Code | Meaning | What to do | |---|---|---| | `media.video_needs_conversion` | The file is not in the format above for this network (another codec, HDR, a rotation flag, over 60 frames a second, too large). The text ends with the exact target. | Convert it (above) and upload the new file. | | `media.video_too_long` | Longer than the network takes. | Trim it. | | `media.video_aspect` | A shape (width to height) the network refuses. | Crop it. | | `media.video_too_small` | Fewer pixels than the network needs. | Upload a larger file. | | `media.video_too_large` | Too long for the network's file size limit at a watchable quality. | Upload a shorter one. | | `media.video_render_failed` | Preparing the file for this network failed for a reason the file must change for. | Replace the file. | | `media.kind_unsupported` | The network takes no video through Postbroad. | Remove the video from that network's version. | # Errors Every error is `application/problem+json` with the same members: `type`, `title`, `status`, a stable `code`, `detail`, `requestId` and `retryable`. Some add members of their own, such as the fresh preview on a stale receipt. ```json title="409 preview_stale" { "type": "about:blank", "title": "preview_stale", "status": 409, "code": "preview_stale", "detail": "Create a fresh preview before committing", "requestId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "retryable": false } ``` ## How to handle any error {#handle} 1. Match on `code`, never on `detail`: the text can change, the code does not. 2. Repeat the call only when `retryable` is true, and after the `Retry-After` header when the answer has one. 3. Repeat a write with the same `Idempotency-Key`, so a retry never makes a second post. 4. Quote the `requestId` (also the `Request-Id` header) when you contact support. `retryable: no` means repeating the call unchanged gives the same answer; change something first. Codes marked session only come from browser sessions of the app; an API key never gets them. ## The catalogue {#catalogue} [400](#status-400) · [401](#status-401) · [403](#status-403) · [404](#status-404) · [405](#status-405) · [409](#status-409) · [413](#status-413) · [415](#status-415) · [422](#status-422) · [429](#status-429) · [500](#status-500) · [503](#status-503) · [504](#status-504) ### 400 Bad Request {#status-400} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `bad_request` | no | The request could not be read: bad JSON, a missing header or a missing body. | Fix the request. | | `idempotency_key_required` | no | This write needs an Idempotency-Key header. | Send a unique key and repeat the call. | | `invalid_credentials` (session only) | no | The password in a re-authentication request is wrong. | Check the password and try again. After five wrong attempts in fifteen minutes the route answers rate_limited. | | `org_required` (session only) | no | A session request did not say which organization it is for. | Send the Postbroad-Org header. | | `preview_required` | no | Publishing needs a preview first. | Call POST /v1/posts/{postId}/preview and send its receipt. | ### 401 Unauthorized {#status-401} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `unauthenticated` | no | There is no valid token or session. | Send a valid API token or sign in again. | ### 403 Forbidden {#status-403} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `forbidden` | no | You are signed in but your role or token scope does not allow this. | Ask an admin for the role or widen the token. | | `limit_reached` | no | An allowance is full: the plan's posts this month, brands or members, or a usage cap such as an app's monthly posts or the AI spending cap. The body names it, and for posts says when the month resets. | Free up what counts toward it, wait for the reset, or change the plan, then repeat the call. | | `reauth_required` (session only) | no | The action is sensitive and your sign-in is older than ten minutes. | Sign in again, then repeat the call. | ### 404 Not Found {#status-404} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `not_found` | no | The thing does not exist, or you cannot see it. Both look the same on purpose. | Check the id and the organization. | ### 405 Method Not Allowed {#status-405} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `method_not_allowed` | no | The route does not take this HTTP method. | Use the method in the reference. | ### 409 Conflict {#status-409} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `approval_required` | yes | The brand needs an approval before this post goes out, and the post has none yet. | Send the post for review; it is scheduled once it is approved. | | `conflict` | yes | The change collides with the current state, for example a duplicate name. | Change the request or read the current state. | | `dispatch_started` | no | Sending has already started, so the change can no longer stop it. | Read the delivery state; do not repeat the change. | | `duplicate_risk_unacknowledged` | yes | Repeating this could post twice because the earlier outcome is unknown. | Check the network, then repeat with the acknowledgement. | | `organization_frozen` | no | The organization is being deleted, so it takes no new work. | Nothing to repeat; ask an owner if the deletion was not intended. | | `preview_stale` | no | The content, time or destinations changed since the preview. | Preview again and commit the new receipt. | | `request_in_progress` | yes | The first call with this Idempotency-Key is still running. | Wait and repeat the call with the same key. | | `revision_mismatch` | no | The object changed after you read it. | Read it again and repeat the change on the new revision. | ### 413 Content Too Large {#status-413} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `payload_too_large` | no | The file or body is larger than the allowance. | Send a smaller file. | ### 415 Unsupported Media Type {#status-415} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `unsupported_media_type` | no | The file type is not accepted. | Convert the file. | ### 422 Unprocessable Content {#status-422} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `budget_exhausted` | no | A spending limit is used up: an agent's allowance, the X spend cap or credits. | Raise the limit in the app, or wait for the next period. | | `idempotency_key_reused` | no | The same Idempotency-Key was used earlier with a different request. | Use a new key for a different request. | | `rule_violation` | no | The content breaks a brand rule or a network rule, named in the body. | Edit the content or the rule. | | `validation_failed` | no | The request is well formed but breaks a rule; the body lists the fields. | Fix the listed fields. | ### 429 Too Many Requests {#status-429} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `rate_limited` | yes | Too many requests for this token. The Retry-After header says how long to wait. | Wait for Retry-After seconds, then repeat. | ### 500 Internal Server Error {#status-500} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `internal` | no | Something failed on our side. | Repeat later; quote the Request-Id if it persists. | ### 503 Service Unavailable {#status-503} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `busy` | yes | The server was at capacity and could not take the request. The Retry-After header says how long to wait. | Wait for Retry-After seconds, then repeat, with the same Idempotency-Key for a change. | | `unavailable` | yes | The service, a dependency or a feature this deployment has not set up (such as media generation) is not available. | Repeat later. If it keeps happening, the feature is not set up here. | ### 504 Gateway Timeout {#status-504} | Code | Retryable | Meaning | What to do | |---|---|---|---| | `timeout` | yes | The request ran past the server deadline (30 seconds; 90 seconds for an import commit, undo, cutover, URL check or Buffer capture). With `retryable` true nothing of it was saved; with `retryable` false part of it was, so read the current state first. | Repeat with the same Idempotency-Key, so a change is made at most once. | ## Errors you see per destination {#destination} A problem with one network is not an HTTP error. A preview answers `200` and lists what preflight found for each destination in `destinations[].problems`; a destination with a blocking problem is not sent until the content is fixed. After sending, each delivery carries its own state and `lastErrorCode`. See [preview and receipt](../guides/concepts.md#preview) and the [delivery states](../guides/concepts.md#states). # Webhooks Postbroad sends events to your HTTPS endpoint as signed JSON, following the [Standard Webhooks](https://www.standardwebhooks.com) format, so anything that has a Standard Webhooks library can verify them. This is what arrives when a post goes live: ```text title="Headers" POST /your/endpoint content-type: application/json user-agent: Postbroad-Webhooks/1 webhook-id: webhook-timestamp: webhook-signature: v1,[ v1,] ``` ```json title="Body" { "type": "delivery.published", "timestamp": "2026-10-25T09:00:03.120Z", "data": { "event_key": "...", "aggregate_type": "delivery", "aggregate_id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "revision": 4 } } ``` `type` is `{aggregate}.{state}`, for example `delivery.published`, `delivery.failed`, `delivery.unknown`, `approval.requested` or `credential.expiring`. An endpoint subscribes to exact types, `prefix.*` or `*`, and an empty list means every event. `data` also carries the fields of the changed row, so read the resource through the API when you need its full current state. New fields can appear in `data` at any time; ignore the ones you do not know. ## Event types {#event-types} Every type an endpoint can receive, 33 in all. Subscribe to exact types, to `delivery.*` style prefixes or to `*`. | Object | Event types | |---|---| | `delivery` | `delivery.pending`, `delivery.scheduled`, `delivery.needs_reconnect`, `delivery.sending`, `delivery.accepted`, `delivery.processing`, `delivery.published`, `delivery.failed`, `delivery.unknown`, `delivery.cancelled` | | `post` | `post.draft`, `post.in_review`, `post.approved`, `post.scheduled`, `post.cancelled` | | `approval` | `approval.requested`, `approval.approved`, `approval.changes_requested`, `approval.rejected`, `approval.expired`, `approval.voided` | | `credential` | `credential.healthy`, `credential.expiring`, `credential.broken`, `credential.missing_permission`, `credential.disconnected` | | `hold` | `hold.placed`, `hold.released` | | `exception` | `exception.open`, `exception.assigned`, `exception.snoozed`, `exception.resolved` | | `inbound_event` | `inbound_event.verified` | ## Verify the signature {#verify} The secret starts with `whsec_`. The signed text is `{webhook-id}.{webhook-timestamp}.{raw body}`, the key is the base64 part of the secret decoded to bytes, and the signature is `v1,` plus the base64 HMAC-SHA256. Verify against the raw bytes before parsing the JSON, compare in constant time and reject timestamps more than five minutes from your clock. ```js title="Node.js" import { createHmac, timingSafeEqual } from "node:crypto"; export function verify(secret, headers, rawBody) { const id = headers["webhook-id"]; const ts = headers["webhook-timestamp"]; if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64"); const expected = createHmac("sha256", key).update(`${id}.${ts}.`).update(rawBody).digest(); return headers["webhook-signature"].split(" ").some((part) => { const [version, sig] = part.split(","); const got = Buffer.from(sig ?? "", "base64"); return version === "v1" && got.length === expected.length && timingSafeEqual(got, expected); }); } ``` ```python title="Python" import base64, hashlib, hmac, time def verify(secret: str, headers: dict, raw_body: bytes) -> bool: msg_id, ts = headers["webhook-id"], headers["webhook-timestamp"] if abs(time.time() - int(ts)) > 300: return False key = base64.b64decode(secret.removeprefix("whsec_")) mac = hmac.new(key, f"{msg_id}.{ts}.".encode() + raw_body, hashlib.sha256).digest() for part in headers["webhook-signature"].split(" "): version, _, sig = part.partition(",") if version == "v1" and hmac.compare_digest(base64.b64decode(sig), mac): return True return False ``` The header can hold two signatures. That happens for 24 hours after you roll a secret: both the new and the previous secret sign every attempt, so you can switch without dropping events. ## Answer fast, with a 2xx {#answer} Reply with any 2xx status within 10 seconds. Do the work afterwards (queue it) and keep the response small: only the first 256 KB of a response is read. Redirects are not followed (a 3xx counts as a failure), and addresses on private networks are refused. ## Retries and dead letters {#retries} A non-2xx answer, a timeout or a connection error schedules another attempt. There are up to 8 attempts, due at these offsets from the first one, each reduced by up to 10% jitter: | Attempt | After the first attempt | |---|---| | 1 | immediately | | 2 | 1 minute | | 3 | 5 minutes | | 4 | 30 minutes | | 5 | 2 hours | | 6 | 8 hours | | 7 | 24 hours | | 8 | 72 hours | After the eighth failure the delivery becomes a dead letter. An endpoint that keeps failing is protected: after 5 failures in a row its circuit opens and probes once a minute, and after 72 hours of failures (at least 10 of them) it is disabled and its open deliveries wait. Re-enabling it sends them. ## Build an idempotent consumer {#consumer} Delivery is at least once. The same event can arrive twice (a retry after a slow 2xx, a replay), so make handling safe to repeat: 1. Take `webhook-id` as the key. It is the same on every attempt of one delivery and on a replay. 2. In one transaction, insert the id into a table with a unique constraint and do the work. If the insert conflicts, you have seen it: return 2xx and do nothing. 3. Do not depend on order. `data.revision` grows with every change of the same object; ignore an event whose revision is lower than the one you stored. 4. Treat the event as a signal and read the current object through the API when it matters. ## Manage endpoints {#manage} Manage endpoints in the app, under Settings, then API, then Webhooks, or through the [webhook endpoints API](reference/webhooks.md). Every change takes an `Idempotency-Key`. Create accepts an HTTPS `url` and an `events` array; an empty array subscribes to every event. The list returns the 500 newest endpoints, and the recent activity route up to 100 recent send records. To hear about some accounts only, send `channelIds`, 1 to 100 account (channel) ids of your organization; `null` or no list means every account. An event about one account (a send, `delivery.*`, whose `data` carries `channel_id`) then goes only to the endpoints that keep that account. An event about no single account, such as a post or an approval, still goes to every endpoint that wants its type. | Action | Who may do it | |---|---| | Create, rotate the secret, delete | A browser session that signed in within the last 10 minutes, or an API key (personal or service) that lists the `webhook.manage` scope by name | | Change, disable, re-enable, replay a dead letter | A browser session, or an API key that lists `webhook.manage` by name | | Any of these | Never a key that acts for an agent, and never an MCP client | A key without `webhook.manage` listed by name is refused with `forbidden`, even when it holds every other permission. The signing secret starts with `whsec_` and is shown once; the [endpoints reference](reference/webhooks.md) says how to recover from a lost answer. Never place it in source control. ## Replay and testing {#replay} - **Replay.** A dead letter can be replayed for 30 days. It keeps its `webhook-id` and body and gets a new schedule, timestamp and signature. - **Send a test event.** `POST /v1/webhook-endpoints/{endpointId}/test`, or Send test event in the app, queues one event of type `webhook.test` for that endpoint only. It is signed and retried like any other event and shows in the endpoint's recent activity, so you can check your handler end to end. Nothing happens to any post or account. A disabled endpoint answers `409 conflict`. - **Test locally.** Sign a sample with your secret and post it to your own handler. This is the same request Postbroad makes: ```js import { createHmac } from "node:crypto"; const secret = process.env.WEBHOOK_SECRET; // whsec_... const body = JSON.stringify({ type: "delivery.published", timestamp: new Date().toISOString(), data: { aggregate_type: "delivery", aggregate_id: "test", revision: 1, event_key: "test" }, }); const id = "msg_test_1"; const ts = Math.floor(Date.now() / 1000); const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64"); const sig = createHmac("sha256", key).update(`${id}.${ts}.${body}`).digest("base64"); await fetch(process.argv[2], { method: "POST", headers: { "content-type": "application/json", "webhook-id": id, "webhook-timestamp": String(ts), "webhook-signature": `v1,${sig}`, }, body, }); ``` Always check the signature on the raw body before you trust a payload, including in tests. ## Versioning {#versioning} Payloads follow the API's additive rule: the envelope (`type`, `timestamp`, `data`) and the Standard Webhooks headers do not change within a version. See [versioning](versioning.md). # Rate limits Each API key may make 600 requests a minute, counted in a fixed window of 60 seconds. Every answer carries the `RateLimit` headers, and a `429` says how long to wait. ``` RateLimit-Limit: 600 RateLimit-Remaining: 597 RateLimit-Reset: 41 ``` `RateLimit-Reset` is the number of seconds until the window ends. ## Handling a 429 {#429} Going over answers `429` with `application/problem+json`, `code: "rate_limited"`, `retryable: true` and `Retry-After: `. 1. Wait for `Retry-After` seconds. 2. Repeat the call. A write repeated with the same `Idempotency-Key` is safe: it never acts twice. 3. For bulk jobs, use the batch endpoint (below) instead of many single calls. ## The layers {#layers} Postbroad limits requests in layers. Each layer stops a different failure, and each tells the caller what happened. | Layer | Stops | Where | Limit | |---|---|---|---| | Per key | one integration hogging the API | the API, `/v1` | 600 requests a minute per key or session | | Network limits | going over a network's own limits | the sending of posts | from each network's documented limits | | Sign in and sign up | password guessing, mass account creation | the sign-in service | per path | | Edge | floods and scans from one address | in front of the app | per address and path group | | Posting anomalies | a stolen login or key posting at scale | alerts and holds | see [below](#volume) | ### Per key {#per-key} Every call to `/v1` made with a key, or with a browser session, counts against that credential. Reads and writes share the allowance. Calls with no credential are not counted here; they get `401` and are limited at the edge. ### Network limits {#networks} Each connection and each app has a bucket per kind of call (writes, reads, media, sign-in refreshes) sized from the network's documented limits, and Postbroad takes from it before each call. If a network answers `429`, the delivery goes back to `scheduled` and waits as long as the network asks. Two requests for the same account are never in flight together. Each network's limits are on its page in the [network guides](../networks/README.md). ### Sign in and sign up {#auth} The sign-in service limits its own endpoints (sign in, sign up, password reset, verification codes) per path. Going over answers `429`. ### Edge {#edge} Every address is limited per path group before a request reaches the app: the sign-in paths (`/v1/auth/*`), the rest of `/v1`, the connect and review links, and everything else. An address that goes over gets `429`; wait a minute and try again. ## Posting volume is not capped {#volume} There is deliberately no cap per organization on how many posts can be published at once. A customer who posts to 50 brands at 09:00 must not be throttled by Postbroad. Your plan sets how many posts a month count, see [pricing](https://postbroad.com/pricing). What protects the networks and you from a stolen login is posting anomaly detection, which pauses and alerts instead of silently capping, and the limits an organization sets per agent or key. ## Batch {#batch} Use `POST /v1/posts/batch` for bulk jobs: up to 50 drafts in one request, with a result per item. See the [Posts reference](reference/posts.md#op-createpostsbatch). # Versioning The REST API is `/v1`. Within it, versions are dates, and every answer carries the version it used in the `Postbroad-Version` response header. ## Supported versions {#supported} | Version | Status | |---|---| | `2026-10-21` | Current. The first public version. | No API change has been announced since the first public version, `2026-10-21`. ## Choosing a version {#choosing} Send `Postbroad-Version` with a supported version on a request to pin it. - No header: you get the newest version. Pin a version in any integration that must not change. - A date the server supports: used as given. - Any other value: `400 bad_request`, and the message lists the supported versions. ## What counts as a change {#changes} Inside one version, changes are additive only: - new endpoints, new optional request fields and query parameters; - new fields in responses and webhook payloads; - new values in an enum that a response or event can carry; - new error codes (codes are stable once published). Write clients that ignore fields they do not know and treat an unknown enum value as "other". These need a new version: - removing or renaming an endpoint, field, event type or error code; - changing the type, format or meaning of a field; - making an optional request field required; - changing the status code a call returns for a given outcome. The [OpenAPI document](https://postbroad.com/docs/openapi.json) is generated from the same route contracts the API runs on, so it always describes the live API. ## Deprecation {#deprecation} A route or version is retired in three steps: 1. **Announce.** The change is announced on the [changelog](https://postbroad.com/changelog), and the affected routes answer with `Deprecation: @` (RFC 9745) from the day of the announcement and `Sunset: ` (RFC 8594) with the day the route stops working. 2. **Wait at least 12 months** between the announcement and the sunset date. The old behaviour keeps working unchanged for the whole period. 3. **Remove.** After the sunset date the route answers `410 Gone`, or the version answers `400 bad_request`. Security fixes are the one exception. A change that must ship at once is announced the same day, with the reason, and the notice period is as long as the risk allows. ## Webhooks and the MCP server {#surfaces} - Webhook payloads follow the same additive rule. The envelope (`type`, `timestamp`, `data`) and the Standard Webhooks headers do not change within a version. See [webhooks](webhooks.md). - The MCP tools are generated from the same contracts. A tool is removed only after the API behaviour behind it is sunset, and the announcement says so. - An API version is not tied to a deploy: a deploy can add a version while keeping the old ones. # API reference Version 2026-10-21 · 192 operations · OpenAPI 3.1.0. Every endpoint, by resource, in the order you use them. Every call goes to `https://app.postbroad.com` and carries an API key: `Authorization: Bearer $POSTBROAD_TOKEN` (see [Authentication](../authentication.md)). Keys are bound to one organization. - Writes take an `Idempotency-Key` header. A repeat with the same key returns the first answer. - `Postbroad-Version` pins the API version; see the [versioning policy](../versioning.md). - Every response carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`; a 429 carries `Retry-After` ([rate limits](../rate-limits.md)). - Errors are `application/problem+json` with a stable `code` and a `retryable` flag ([error catalogue](../errors.md)). - The examples use curl and the standard `fetch` of Node.js 18 or later. The machine readable document is [openapi.json](https://postbroad.com/docs/openapi.json), and every page is also in [llms-full.txt](https://postbroad.com/llms-full.txt). | Resource | What it is for | Operations | |---|---|---| | [Posts](posts.md) | Create, list, edit, copy and export posts, with every version. A draft always saves, and one post is adapted to each network. | 20 | | [Schedule](schedule.md) | Preview, schedule, publish now, reschedule and cancel posts, pause posting with holds, and set repeating and evergreen posts. | 19 | | [Deliveries](deliveries.md) | Where each post went and what each network answered: delivery states, evidence, attempts, retries and unknown outcomes. | 17 | | [Media](media.md) | Upload and import media, organize the library, and read each file's renditions per network. | 14 | | [Brands](brands.md) | Brands with their settings and rules, the accounts a post of a brand can go to, posting slots and link shorteners. | 19 | | [Connect](connect.md) | Every network and its spec, your own apps on the networks, and the connect flow for an account. | 18 | | [Approvals](approvals.md) | Read a review, record a person's decision on it, and revoke review links. | 4 | | [Webhook endpoints](webhooks.md) | Create, change, rotate, disable and delete webhook endpoints, and list and replay what was sent to them. | 10 | | [Analytics](analytics.md) | Export brand metrics as CSV or JSON, and read the organization's first-run milestones. | 6 | | [Views](views.md) | Ready made views of the app: today, the calendar, open slots, connection health, post results, reliability and search. | 10 | | [Exceptions](exceptions.md) | What needs a person: the exceptions queue and its actions, and pausing or rehearsing posting per scope. | 7 | | [Assist](assist.md) | Model settings and the requests that adapt text, draft from an article or learn a brand's voice. | 6 | | [Notifications](notifications.md) | A member's notifications, activity feed, preferences and browser push. | 11 | | [Organization and keys](identity.md) | The signed-in member, organizations, API keys and who can act, the activity log, exports, deletion, MCP grants and command line sign-in. | 30 | | [Health](health.md) | Whether the API is up, for monitors. | 1 | # Posts Create, list, edit, copy and export posts, with every version. A draft always saves, and one post is adapted to each network. 20 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. New to the API? The [quickstart](../../guides/quickstart.md) schedules a first post in five calls. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`POST /v1/brands/{brandId}/link-drafts`](#op-createlinkdrafts) | Read an article once and draft a post for each of the brand's networks | `post.draft` | | [`GET /v1/posts/{postId}/links`](#op-listpostlinks) | The post's short links and their clicks | `content.read` | | [`GET /v1/channels/{channelId}/mentions`](#op-searchmentions) | Find accounts, roles or pages a post to this channel can tag | `post.create` | | [`GET /v1/brands/{brandId}/post-templates`](#op-listposttemplates) | A brand's saved post templates, by name | any key | | [`POST /v1/brands/{brandId}/post-templates`](#op-createposttemplate) | Save a post template for a brand | `post.draft` | | [`GET /v1/brands/{brandId}/post-templates/{templateId}`](#op-getposttemplate) | One saved post template | any key | | [`PATCH /v1/brands/{brandId}/post-templates/{templateId}`](#op-updateposttemplate) | Rename a post template or replace its content | `post.draft` | | [`DELETE /v1/brands/{brandId}/post-templates/{templateId}`](#op-deleteposttemplate) | Delete a post template; posts made from it stay as they are | `post.draft` | | [`GET /v1/posts`](#op-listposts) | Posts by brand, state, tag or time | any key | | [`POST /v1/posts`](#op-createpost) | Create a draft (the draft always saves) | `post.create` | | [`GET /v1/posts/export.csv`](#op-exportpostscsv) | Export matching posts and their destinations as a CSV attachment | any key | | [`POST /v1/posts/batch`](#op-createpostsbatch) | Create up to 50 drafts with a result per item | `post.create` | | [`GET /v1/posts/{postId}`](#op-getpost) | A post with its current version and per-destination status | any key | | [`PATCH /v1/posts/{postId}`](#op-updatepost) | Edit a post; a scheduled post gets a new version | `post.edit` | | [`DELETE /v1/posts/{postId}`](#op-deletepost) | Delete a post that has not gone out; unsent destinations are cancelled first | `post.delete` | | [`POST /v1/posts/{postId}/duplicate`](#op-duplicatepost) | Copy a post to a new draft with the same destinations and no history | `post.create` | | [`GET /v1/posts/{postId}/versions`](#op-listpostversions) | Versions of a post, newest first | any key | | [`GET /v1/posts/{postId}/versions/{versionNo}`](#op-getpostversion) | One version of a post | any key | | [`GET /v1/posts/{postId}/diff`](#op-diffpostversions) | Differences between two versions | any key | | [`POST /v1/posts/{postId}/versions/{versionNo}/restore`](#op-restorepostversion) | Restore an old version as a new version | `post.edit` | ## Operations ### Read an article once and draft a post for each of the brand's networks {#op-createlinkdrafts} `POST /v1/brands/{brandId}/link-drafts` Operation `createLinkDrafts`. Needs a key with the scope `post.draft`. Nothing is saved: the drafts come back to start a post from. The page is read once, within 8.5 s and 512 KiB. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Request body: [LinkDraftInput](#schema-linkdraftinput) | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | | Response `200`: [LinkDrafts](#schema-linkdrafts). Drafts Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/brands//link-drafts" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "url": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//link-drafts", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "url": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "url": "string", "title": "string", "description": "string", "imageUrl": "string", "drafts": [ { "network": "string", "text": "string" } ] } ``` ### The post's short links and their clicks {#op-listpostlinks} `GET /v1/posts/{postId}/links` Operation `listPostLinks`. Needs a key with the scope `content.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Response `200`: [PostLinks](#schema-postlinks). Links Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts//links" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//links", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "links": [ { "url": "string", "shortUrl": "string", "state": "pending", "clicks": -9007199254740991, "clicksReadAt": "2026-10-21T09:00:00Z" } ] } ``` ### Find accounts, roles or pages a post to this channel can tag {#op-searchmentions} `GET /v1/channels/{channelId}/mentions` Operation `searchMentions`. Needs a key with the scope `post.create`. Runs the network's own search with the channel's connection in the worker and waits up to a few seconds; nothing is written to the network. Bluesky searches accounts through the public AppView, Discord searches members and roles of the server, LinkedIn finds company pages. Networks without a search answer `supported: false` with a note. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `channelId` | path | yes | string (uuid) | | | `q` | query | yes | string | | Response `200`: [MentionSearchResult](#schema-mentionsearchresult). The candidates Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/channels//mentions?q=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/channels//mentions?q=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "supported": false, "candidates": [ { "kind": "user", "id": "string", "label": "string", "detail": "string", "insert": "string", "avatarUrl": "string" } ], "note": "string" } ``` ### A brand's saved post templates, by name {#op-listposttemplates} `GET /v1/brands/{brandId}/post-templates` Operation `listPostTemplates`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Response `200`: [PostTemplateList](#schema-posttemplatelist). The templates Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands//post-templates" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//post-templates", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "content": { "baseText": "string", "media": [], "variants": [], "channelIds": [], "tags": [] }, "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 } ] } ``` ### Save a post template for a brand {#op-createposttemplate} `POST /v1/brands/{brandId}/post-templates` Operation `createPostTemplate`. Needs a key with the scope `post.draft`. Media and accounts must belong to the brand. The name is unique within the brand, ignoring case. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Request body: [CreatePostTemplateInput](#schema-createposttemplateinput) | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | | `content` | [PostTemplateContent](#schema-posttemplatecontent) | yes | What a template fills a new draft with: no time, state or history. | Response `201`: [PostTemplate](#schema-posttemplate). The new template Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/brands//post-templates" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "content": {} }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//post-templates", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "name": "string", "content": {} }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "content": { "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "variants": [ { "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false } ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "tags": [ "string" ] }, "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### One saved post template {#op-getposttemplate} `GET /v1/brands/{brandId}/post-templates/{templateId}` Operation `getPostTemplate`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | | `templateId` | path | yes | string (uuid) | | Response `200`: [PostTemplate](#schema-posttemplate). The template Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands//post-templates/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//post-templates/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "content": { "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "variants": [ { "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false } ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "tags": [ "string" ] }, "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Rename a post template or replace its content {#op-updateposttemplate} `PATCH /v1/brands/{brandId}/post-templates/{templateId}` Operation `updatePostTemplate`. Needs a key with the scope `post.draft`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | | `templateId` | path | yes | string (uuid) | | Request body: [UpdatePostTemplateInput](#schema-updateposttemplateinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `name` | string | no | | | `content` | [PostTemplateContent](#schema-posttemplatecontent) | no | What a template fills a new draft with: no time, state or history. | Response `200`: [PostTemplate](#schema-posttemplate) or [UpdatePostTemplateDryRun](#schema-updateposttemplatedryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/brands//post-templates/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "name": "string", "content": {} }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//post-templates/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "name": "string", "content": {} }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "content": { "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "variants": [ { "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false } ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "tags": [ "string" ] }, "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Delete a post template; posts made from it stay as they are {#op-deleteposttemplate} `DELETE /v1/brands/{brandId}/post-templates/{templateId}` Operation `deletePostTemplate`. Needs a key with the scope `post.draft`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | | `templateId` | path | yes | string (uuid) | | Response `200`: [DeletePostTemplateResult](#schema-deleteposttemplateresult) or [DeletePostTemplateDryRun](#schema-deleteposttemplatedryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X DELETE "https://app.postbroad.com/v1/brands//post-templates/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//post-templates/", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "deleted": true } ``` ### Posts by brand, state, tag or time {#op-listposts} `GET /v1/posts` Operation `listPosts`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `brandId` | query | no | string (uuid) | | | `state` | query | no | `"draft"` or `"in_review"` or `"approved"` or `"scheduled"` or `"cancelled"` | | | `deliveryState` | query | no | `"pending"` or `"scheduled"` or `"needs_reconnect"` or `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"failed"` or `"unknown"` or `"cancelled"` | | | `tag` | query | no | string | | | `from` | query | no | string (date-time) | | | `to` | query | no | string (date-time) | | | `q` | query | no | string | | | `sort` | query | no | `"id"` or `"updated"` | Order of the list. `id` (the default) pages by post id. `updated` lists the last edited post first and pages by last edit: a post edited while you page moves above the cursor, so later pages leave it out and it is not listed twice. Start again from the first page to see it at its new place. | Response `200`: [PostPage](#schema-postpage). A page of posts Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "versionNo": 0, "excerpt": "string", "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "scheduledAt": "2026-10-21T09:00:00Z", "networks": [ "facebook" ], "tags": [ "string" ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "proof": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "handle": "string", "state": null, "url": "string", "publishedAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "liveSource": "verified", "verificationLevel": null, "evidenceMethod": null } ], "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 } ], "nextCursor": "string" } ``` ### Create a draft (the draft always saves) {#op-createpost} `POST /v1/posts` Operation `createPost`. Needs a key with the scope `post.create`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreatePostInput](#schema-createpostinput) | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) | yes | | | `baseText` | string | no | | | `media` | [MediaAttachment](#schema-mediaattachment)[] | no | | | `variants` | [VariantInput](#schema-variantinput)[] | no | | | `destinations` | [DestinationInput](#schema-destinationinput)[] | no | | | `scheduledAt` | string (date-time) or null | no | | | `tags` | string[] | no | | Response `201`: [PostView](#schema-postview). The draft Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "baseText": "", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "variants": [ { "network": "facebook" } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "baseText": "", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "variants": [ { "network": "facebook" } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ] }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" } } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "authoredBy": { "kind": "member", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0, "actions": { "canRestore": false, "canDuplicate": false } } ``` ### Export matching posts and their destinations as a CSV attachment {#op-exportpostscsv} `GET /v1/posts/export.csv` Operation `exportPostsCsv`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `mode` | query | no | `"schedule"` or `"history"` or `"all"` | | | `brandId` | query | no | string (uuid) | | | `state` | query | no | `"draft"` or `"in_review"` or `"approved"` or `"scheduled"` or `"cancelled"` | | | `deliveryState` | query | no | `"pending"` or `"scheduled"` or `"needs_reconnect"` or `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"failed"` or `"unknown"` or `"cancelled"` | | | `tag` | query | no | string | | | `from` | query | no | string (date-time) | | | `to` | query | no | string (date-time) | | | `q` | query | no | string | | Response `200`. A private CSV export Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`413 payload_too_large`](../errors.md#status-413), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts/export.csv" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts/export.csv", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ### Create up to 50 drafts with a result per item {#op-createpostsbatch} `POST /v1/posts/batch` Operation `createPostsBatch`. Needs a key with the scope `post.create`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [BatchCreatePostsInput](#schema-batchcreatepostsinput) | Field | Type | Required | Description | |---|---|---|---| | `posts` | [CreatePostInput](#schema-createpostinput)[] | yes | | Response `200`: [BatchCreatePostsResult](#schema-batchcreatepostsresult) or [CreatePostsBatchDryRun](#schema-createpostsbatchdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts/batch" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "posts": [ { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts/batch", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "posts": [ { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "results": [ { "index": 0, "status": -9007199254740991, "post": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [], "variants": [], "destinations": [], "createdAt": "2026-10-21T09:00:00Z", "createdBy": null }, "deliveries": [], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 }, "error": { "code": "bad_request", "detail": "string", "errors": [] } } ] } ``` ### A post with its current version and per-destination status {#op-getpost} `GET /v1/posts/{postId}` Operation `getPost`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Response `200`: [PostView](#schema-postview). The post Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" } } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "authoredBy": { "kind": "member", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0, "actions": { "canRestore": false, "canDuplicate": false } } ``` ### Edit a post; a scheduled post gets a new version {#op-updatepost} `PATCH /v1/posts/{postId}` Operation `updatePost`. Needs a key with the scope `post.edit`. Channels whose old version already started keep it and are listed in alreadyDispatching or alreadyLive; a channel never gets both versions. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [UpdatePostInput](#schema-updatepostinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `autosave` | boolean | no | | | `baseText` | string | no | | | `media` | [MediaAttachment](#schema-mediaattachment)[] | no | | | `variants` | [VariantInput](#schema-variantinput)[] | no | | | `destinations` | [DestinationInput](#schema-destinationinput)[] | no | | | `scheduledAt` | string (date-time) or null | no | | | `tags` | string[] | no | | Response `200`: [PostWriteResult](#schema-postwriteresult) or [UpdatePostDryRun](#schema-updatepostdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/posts/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "autosave": false, "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "variants": [ { "network": "facebook" } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "autosave": false, "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "variants": [ { "network": "facebook" } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "post": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": null } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": null, "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": null, "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": null, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 }, "alreadyDispatching": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ], "alreadyLive": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ] } ``` ### Delete a post that has not gone out; unsent destinations are cancelled first {#op-deletepost} `DELETE /v1/posts/{postId}` Operation `deletePost`. Needs a key with the scope `post.delete`. 409 conflict (reason gone_out) when any send of the post, on any version, was tried, is on its way or went live: remove those from their networks instead. Deleting a scheduled, approved or in-review post also needs post.schedule on its brand. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Response `202`: [DeletePostResult](#schema-deletepostresult). Deleted or draining Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X DELETE "https://app.postbroad.com/v1/posts/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts/", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 202" { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "deleted", "alreadyDispatching": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ] } ``` ### Copy a post to a new draft with the same destinations and no history {#op-duplicatepost} `POST /v1/posts/{postId}/duplicate` Operation `duplicatePost`. Needs a key with the scope `post.create`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [DuplicatePostInput](#schema-duplicatepostinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | no | | Response `201`: [PostView](#schema-postview). The new draft Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//duplicate" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0 }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//duplicate", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0 }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" } } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "authoredBy": { "kind": "member", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0, "actions": { "canRestore": false, "canDuplicate": false } } ``` ### Versions of a post, newest first {#op-listpostversions} `GET /v1/posts/{postId}/versions` Operation `listPostVersions`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | | `cursor` | query | no | string | | | `limit` | query | no | integer | | Response `200`: [PostVersionPage](#schema-postversionpage). A page of versions Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts//versions" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//versions", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "excerpt": "string", "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } } ], "nextCursor": "string" } ``` ### One version of a post {#op-getpostversion} `GET /v1/posts/{postId}/versions/{versionNo}` Operation `getPostVersion`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | | `versionNo` | path | yes | integer | | Response `200`: [PostVersionView](#schema-postversionview). The version Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts//versions/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//versions/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" } } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": null } ], "options": {}, "threadParts": [ "string" ], "firstComment": "string", "aiLabel": false, "finalLinks": [ "string" ] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "authoring": { "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "variants": [ { "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ] }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "authoredBy": { "kind": "member", "name": "string" } } ``` ### Differences between two versions {#op-diffpostversions} `GET /v1/posts/{postId}/diff` Operation `diffPostVersions`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | | `from` | query | yes | integer | | | `to` | query | yes | integer | | Response `200`: [VersionDiff](#schema-versiondiff). The diff Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts//diff?from=&to=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//diff?from=&to=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "from": 0, "to": 0, "baseText": [ { "op": "equal", "text": "string" } ], "media": { "added": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "removed": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }, "variants": [ { "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "change": "added", "text": [ { "op": "equal", "text": "string" } ], "optionsChanged": [ "string" ] } ], "destinations": { "added": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "removed": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } } ``` ### Restore an old version as a new version {#op-restorepostversion} `POST /v1/posts/{postId}/versions/{versionNo}/restore` Operation `restorePostVersion`. Needs a key with the scope `post.edit`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | | `versionNo` | path | yes | integer | | Request body: [ExpectedRevisionInput](#schema-expectedrevisioninput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | Response `200`: [PostWriteResult](#schema-postwriteresult) or [RestorePostVersionDryRun](#schema-restorepostversiondryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//versions//restore" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0 }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//versions//restore", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0 }), }); const data = await res.json(); ``` ```json title="Response 200" { "post": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": null } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": null, "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": null, "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": null, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 }, "alreadyDispatching": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ], "alreadyLive": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ] } ``` ## Schemas ### Actor {#schema-actor} | Field | Type | Required | Description | |---|---|---|---| | `type` | `"member"` or `"agent"` or `"token"` or `"mcp_client"` or `"guest"` or `"system"` or `"profile_server_key"` or `"connect_token"` | yes | | | `id` | string (uuid) or null | yes | | | `name` | string or null | yes | | ### AuthoredBy {#schema-authoredby} | Field | Type | Required | Description | |---|---|---|---| | `kind` | `"member"` or `"agent"` or `"api"` | yes | | | `name` | string or null | yes | | ### BatchCreatePostsInput {#schema-batchcreatepostsinput} | Field | Type | Required | Description | |---|---|---|---| | `posts` | [CreatePostInput](#schema-createpostinput)[] | yes | | ### BatchCreatePostsResult {#schema-batchcreatepostsresult} | Field | Type | Required | Description | |---|---|---|---| | `results` | object[] | yes | | ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### CreatePostDryRun {#schema-createpostdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"createPost"` | yes | | ### CreatePostInput {#schema-createpostinput} A new draft. The Idempotency-Key becomes the post's permanent client request key. | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) | yes | | | `baseText` | string | no | | | `media` | [MediaAttachment](#schema-mediaattachment)[] | no | | | `variants` | [VariantInput](#schema-variantinput)[] | no | | | `destinations` | [DestinationInput](#schema-destinationinput)[] | no | | | `scheduledAt` | string (date-time) or null | no | | | `tags` | string[] | no | | ### CreatePostTemplateDryRun {#schema-createposttemplatedryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"createPostTemplate"` | yes | | ### CreatePostTemplateInput {#schema-createposttemplateinput} | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | | `content` | [PostTemplateContent](#schema-posttemplatecontent) | yes | What a template fills a new draft with: no time, state or history. | ### CreatePostsBatchDryRun {#schema-createpostsbatchdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"createPostsBatch"` | yes | | ### DeferReason {#schema-deferreason} Type: `"rate_limited"` or `"network_wait"` or `"hold"` or `"budget"` or `"missed_slot"` or `"late_result"` or `"restore_quarantine"` or `"manual"` or `"policy_block"` or `"browser_wait"` ### DeletePostDryRun {#schema-deletepostdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"deletePost"` | yes | | ### DeletePostResult {#schema-deletepostresult} | Field | Type | Required | Description | |---|---|---|---| | `postId` | string (uuid) | yes | | | `status` | `"deleted"` or `"draining"` | yes | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | yes | | ### DeletePostTemplateDryRun {#schema-deleteposttemplatedryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"deletePostTemplate"` | yes | | ### DeletePostTemplateResult {#schema-deleteposttemplateresult} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `deleted` | `true` | yes | | ### DeliveryState {#schema-deliverystate} Type: `"pending"` or `"scheduled"` or `"needs_reconnect"` or `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"failed"` or `"unknown"` or `"cancelled"` ### DeliveryStatus {#schema-deliverystatus} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `postId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `account` | object | yes | | | `destination` | object | yes | | | `versionNo` | integer | yes | | | `currentVersionNo` | integer | yes | | | `state` | [DeliveryState](#schema-deliverystate) | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `dispatchAt` | string (date-time) or null | yes | | | `deferral` | object or null | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | | `evidenceMethod` | [EvidenceMethod](#schema-evidencemethod) | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `observedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` or `"unknown"` or null | yes | | | `checkedAt` | string (date-time) or null | yes | | | `checkedBy` | [Actor](#schema-actor) or null | yes | | | `publishedAt` | string (date-time) or null | no | | | `verifiedAt` | string (date-time) or null | no | | | `liveSource` | `"verified"` or `"person"` or `"url_only"` or null | no | | | `liveConfirmedBy` | [Actor](#schema-actor) or null | no | | | `resolutionSource` | `"system"` or `"status_check"` or `"person"` | yes | | | `providerPostId` | string or null | yes | | | `providerUrl` | string or null | yes | | | `browserJobId` | string (uuid) or null | no | | | `lastError` | object or null | yes | | | `attemptCount` | integer | yes | | | `followupsState` | `"none"` or `"pending"` or `"complete"` or `"incomplete"` | yes | | | `steps` | object[] | no | | | `retryRequiresPerson` | boolean | yes | | | `duplicateRiskAck` | object or null | yes | | | `preflightState` | `"pending"` or `"ok"` or `"blocked"` | yes | | | `updatedAt` | string (date-time) | yes | | | `attachmentResolution` | object or null | no | | | `remoteDeleteSupported` | boolean | no | | | `remoteRemoval` | [RemoteRemoval](#schema-remoteremoval) or null | no | | ### DestinationInput {#schema-destinationinput} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `scheduledAt` | string (date-time) or null | no | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DestinationProof {#schema-destinationproof} | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `state` | [DeliveryState](#schema-deliverystate) | yes | | | `url` | string or null | yes | | | `publishedAt` | string (date-time) or null | yes | | | `verifiedAt` | string (date-time) or null | yes | | | `liveSource` | `"verified"` or `"person"` or `"url_only"` or null | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | | `evidenceMethod` | [EvidenceMethod](#schema-evidencemethod) | yes | | ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### DuplicatePostDryRun {#schema-duplicatepostdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"duplicatePost"` | yes | | ### DuplicatePostInput {#schema-duplicatepostinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | no | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### EvidenceMethod {#schema-evidencemethod} Type: `"none"` or `"provider_ack"` or `"status_endpoint"` or `"readback_match"` or `"public_fetch"` or `"human_confirmed"` ### ExpectedRevisionInput {#schema-expectedrevisioninput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | ### LinkDraftInput {#schema-linkdraftinput} | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | | ### LinkDrafts {#schema-linkdrafts} | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | | | `title` | string | yes | | | `description` | string | yes | | | `imageUrl` | string or null | yes | | | `drafts` | object[] | yes | | ### MediaAttachment {#schema-mediaattachment} | Field | Type | Required | Description | |---|---|---|---| | `assetId` | string (uuid) | yes | | | `altText` | string or null | no | | ### MentionCandidate {#schema-mentioncandidate} | Field | Type | Required | Description | |---|---|---|---| | `kind` | `"user"` or `"role"` or `"organization"` | yes | | | `id` | string | yes | | | `label` | string | yes | | | `detail` | string or null | yes | | | `insert` | string | yes | | | `avatarUrl` | string or null | yes | | ### MentionSearchResult {#schema-mentionsearchresult} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `supported` | boolean | yes | | | `candidates` | [MentionCandidate](#schema-mentioncandidate)[] | yes | | | `note` | string or null | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PostAuthoring {#schema-postauthoring} | Field | Type | Required | Description | |---|---|---|---| | `baseText` | string | yes | | | `media` | [PostAuthoringMedia](#schema-postauthoringmedia)[] | yes | | | `variants` | [PostAuthoringVariant](#schema-postauthoringvariant)[] | yes | | | `destinations` | [PostAuthoringDestination](#schema-postauthoringdestination)[] | yes | | ### PostAuthoringDestination {#schema-postauthoringdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `scheduledAt` | string (date-time) or null | yes | | ### PostAuthoringMedia {#schema-postauthoringmedia} | Field | Type | Required | Description | |---|---|---|---| | `assetId` | string (uuid) | yes | | | `altText` | string or null | no | | ### PostAuthoringVariant {#schema-postauthoringvariant} | Field | Type | Required | Description | |---|---|---|---| | `network` | [Network](#schema-network) | yes | | | `channelId` | string (uuid) or null | yes | | | `text` | string or null | yes | | | `media` | [PostAuthoringMedia](#schema-postauthoringmedia)[] or null | yes | | | `options` | map of any | yes | | | `threadParts` | string[] | yes | | | `firstComment` | string or null | yes | | | `aiLabel` | boolean or null | yes | | ### PostExportCsv {#schema-postexportcsv} Type: string ### PostLinks {#schema-postlinks} | Field | Type | Required | Description | |---|---|---|---| | `links` | object[] | yes | | ### PostPage {#schema-postpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [PostSummary](#schema-postsummary)[] | yes | | | `nextCursor` | string or null | yes | | ### PostRollup {#schema-postrollup} | Field | Type | Required | Description | |---|---|---|---| | `total` | integer | yes | | | `verified` | integer | yes | | | `confirmedByPerson` | integer | yes | | | `acceptedOnly` | integer | yes | | | `failed` | integer | yes | | | `unknown` | integer | yes | | | `waiting` | integer | yes | | | `cancelled` | integer | yes | | | `allPublished` | boolean | yes | | ### PostState {#schema-poststate} Type: `"draft"` or `"in_review"` or `"approved"` or `"scheduled"` or `"cancelled"` ### PostSummary {#schema-postsummary} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `state` | [PostState](#schema-poststate) | yes | | | `versionNo` | integer | yes | | | `excerpt` | string | yes | | | `thumbnail` | [SignedUrl](#schema-signedurl) or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `networks` | [Network](#schema-network)[] | yes | | | `tags` | string[] | yes | | | `rollup` | [PostRollup](#schema-postrollup) | yes | | | `proof` | [DestinationProof](#schema-destinationproof)[] | yes | | | `authoredBy` | [AuthoredBy](#schema-authoredby) | no | | | `updatedAt` | string (date-time) | yes | | | `revision` | integer | yes | | ### PostTemplate {#schema-posttemplate} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `name` | string | yes | | | `content` | [PostTemplateContentView](#schema-posttemplatecontentview) | yes | | | `createdBy` | [Actor](#schema-actor) | yes | | | `createdAt` | string (date-time) | yes | | | `updatedAt` | string (date-time) | yes | | | `revision` | integer | yes | | ### PostTemplateContent {#schema-posttemplatecontent} What a template fills a new draft with: no time, state or history. | Field | Type | Required | Description | |---|---|---|---| | `baseText` | string | no | | | `media` | [MediaAttachment](#schema-mediaattachment)[] | no | | | `variants` | [VariantInput](#schema-variantinput)[] | no | | | `channelIds` | string (uuid)[] | no | | | `tags` | string[] | no | | ### PostTemplateContentView {#schema-posttemplatecontentview} | Field | Type | Required | Description | |---|---|---|---| | `baseText` | string | yes | | | `media` | [PostAuthoringMedia](#schema-postauthoringmedia)[] | yes | | | `variants` | [PostAuthoringVariant](#schema-postauthoringvariant)[] | yes | | | `channelIds` | string (uuid)[] | yes | | | `tags` | string[] | yes | | ### PostTemplateList {#schema-posttemplatelist} | Field | Type | Required | Description | |---|---|---|---| | `data` | [PostTemplate](#schema-posttemplate)[] | yes | | ### PostVersionPage {#schema-postversionpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [PostVersionSummary](#schema-postversionsummary)[] | yes | | | `nextCursor` | string or null | yes | | ### PostVersionSummary {#schema-postversionsummary} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `excerpt` | string | yes | | | `createdAt` | string (date-time) | yes | | | `createdBy` | [Actor](#schema-actor) | yes | | | `authoredBy` | [AuthoredBy](#schema-authoredby) | no | | ### PostVersionView {#schema-postversionview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `baseText` | string | yes | | | `media` | object[] | yes | | | `variants` | [VariantView](#schema-variantview)[] | yes | | | `destinations` | object[] | yes | | | `authoring` | [PostAuthoring](#schema-postauthoring) | no | | | `createdAt` | string (date-time) | yes | | | `createdBy` | [Actor](#schema-actor) | yes | | | `authoredBy` | [AuthoredBy](#schema-authoredby) | no | | ### PostView {#schema-postview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `state` | [PostState](#schema-poststate) | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `tags` | string[] | yes | | | `version` | [PostVersionView](#schema-postversionview) | yes | | | `deliveries` | [DeliveryStatus](#schema-deliverystatus)[] | yes | | | `rollup` | [PostRollup](#schema-postrollup) | yes | | | `createdAt` | string (date-time) | yes | | | `createdBy` | [Actor](#schema-actor) | yes | | | `authoredBy` | [AuthoredBy](#schema-authoredby) | no | | | `updatedAt` | string (date-time) | yes | | | `revision` | integer | yes | | | `actions` | object | no | | ### PostWriteResult {#schema-postwriteresult} | Field | Type | Required | Description | |---|---|---|---| | `post` | [PostView](#schema-postview) | yes | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | yes | | | `alreadyLive` | [DispatchingRef](#schema-dispatchingref)[] | yes | | ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### RemoteRemoval {#schema-remoteremoval} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"queued"` or `"running"` or `"removed"` or `"failed"` or `"unknown"` | yes | | | `requestedAt` | string (date-time) | yes | | | `requestedBy` | [Actor](#schema-actor) | yes | | | `finishedAt` | string (date-time) or null | yes | | | `error` | object or null | yes | | ### RestorePostVersionDryRun {#schema-restorepostversiondryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"restorePostVersion"` | yes | | ### SignedUrl {#schema-signedurl} A signed media URL. Bearer access until it expires. In an answer that carries an ETag the URL is minted per fixed window: the expiry is rounded up to the next full hour plus one hour, and the signature is the same within that window, so the ETag changes only when the content does and polling with If-None-Match still gets 304. | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `expiresAt` | string (date-time) | yes | | ### TextDiff {#schema-textdiff} Type: object[] ### UpdatePostDryRun {#schema-updatepostdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"updatePost"` | yes | | ### UpdatePostInput {#schema-updatepostinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `autosave` | boolean | no | | | `baseText` | string | no | | | `media` | [MediaAttachment](#schema-mediaattachment)[] | no | | | `variants` | [VariantInput](#schema-variantinput)[] | no | | | `destinations` | [DestinationInput](#schema-destinationinput)[] | no | | | `scheduledAt` | string (date-time) or null | no | | | `tags` | string[] | no | | ### UpdatePostTemplateDryRun {#schema-updateposttemplatedryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"updatePostTemplate"` | yes | | ### UpdatePostTemplateInput {#schema-updateposttemplateinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `name` | string | no | | | `content` | [PostTemplateContent](#schema-posttemplatecontent) | no | What a template fills a new draft with: no time, state or history. | ### VariantInput {#schema-variantinput} | Field | Type | Required | Description | |---|---|---|---| | `network` | [Network](#schema-network) | yes | | | `channelId` | string (uuid) or null | no | | | `text` | string or null | no | | | `media` | [MediaAttachment](#schema-mediaattachment)[] or null | no | | | `options` | map of any | no | | | `threadParts` | string[] | no | | | `firstComment` | string or null | no | | | `aiLabel` | boolean or null | no | | ### VariantView {#schema-variantview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `channelId` | string (uuid) or null | yes | | | `text` | string | yes | | | `forked` | boolean | yes | | | `media` | object[] | yes | | | `options` | map of any | yes | | | `threadParts` | string[] | yes | | | `firstComment` | string or null | yes | | | `aiLabel` | boolean | yes | | | `finalLinks` | string[] | yes | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` ### VersionDiff {#schema-versiondiff} | Field | Type | Required | Description | |---|---|---|---| | `from` | integer | yes | | | `to` | integer | yes | | | `baseText` | [TextDiff](#schema-textdiff) | yes | | | `media` | object | yes | | | `variants` | object[] | yes | | | `destinations` | object | yes | | # Schedule Preview, schedule, publish now, reschedule and cancel posts, pause posting with holds, and set repeating and evergreen posts. 19 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Every schedule or publish needs the receipt of a preview, so nothing goes out that was not seen first. A hold pauses an organization, workspace, brand, campaign or channel; slots that pass while held or disconnected come back as missed slots to publish, shift or skip. A post can repeat every few days, weeks or months, and evergreen posts go out again on the brand's evergreen days. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`POST /v1/posts/{postId}/preview`](#op-previewpost) | Effective payload, preflight and cost per destination, with a signed receipt | `post.schedule` | | [`POST /v1/posts/{postId}/schedule`](#op-schedulepost) | Schedule with a preview receipt | `post.schedule` | | [`POST /v1/posts/{postId}/publish-now`](#op-publishpostnow) | Publish now with a preview receipt made in publish_now mode | `post.publish` | | [`POST /v1/posts/{postId}/unschedule`](#op-unschedulepost) | Back to draft; unsent destinations wait (scheduled to draft) | `post.schedule` | | [`POST /v1/posts/{postId}/cancel`](#op-cancelpost) | Cancel a post; deliveries already sending are listed and may still complete | `post.schedule` | | [`POST /v1/posts/{postId}/reschedule`](#op-reschedulepost) | Move a post or some destinations to a new time; preflight runs again | `post.schedule` | | [`GET /v1/posts/{postId}/preflight`](#op-getpostpreflight) | Status of asynchronous preflight checks of the current version | any key | | [`GET /v1/holds`](#op-listholds) | Pauses and other holds, active first | any key | | [`POST /v1/holds`](#op-createhold) | Pause an org, workspace, brand or channel | `post.schedule` | | [`POST /v1/holds/{holdId}/release`](#op-releasehold) | Resume; slots that passed while held come back as the missed batch | `post.schedule` | | [`GET /v1/missed-slots`](#op-listmissedslots) | Deliveries whose slot passed while held or disconnected | any key | | [`POST /v1/missed-slots/resolve`](#op-resolvemissedslots) | Publish now, shift or skip a batch of missed slots | `post.schedule` | | [`GET /v1/posts/{postId}/recurrence`](#op-getpostrecurrence) | The post's repeat, and whether it is evergreen | `content.read` | | [`PUT /v1/posts/{postId}/recurrence`](#op-setpostrecurrence) | Repeat the post every N days, weeks or months, until a date or a number of times | `post.schedule` | | [`DELETE /v1/posts/{postId}/recurrence`](#op-stoppostrecurrence) | Stop repeating the post; copies already scheduled stay | `post.schedule` | | [`PUT /v1/posts/{postId}/evergreen`](#op-setpostevergreen) | Add the post to the brand's evergreen posts, or take it out | `post.schedule` | | [`GET /v1/brands/{brandId}/recurrences`](#op-listbrandrecurrences) | The brand's repeating posts, active and paused first | `content.read` | | [`GET /v1/brands/{brandId}/evergreen`](#op-getevergreen) | The brand's evergreen days and posts | `content.read` | | [`PUT /v1/brands/{brandId}/evergreen`](#op-setevergreenrule) | Choose the days and time evergreen posts go out again, and the gap between repeats | `post.schedule` | ## Operations ### Effective payload, preflight and cost per destination, with a signed receipt {#op-previewpost} `POST /v1/posts/{postId}/preview` Operation `previewPost`. Needs a key with the scope `post.schedule`. Writes nothing except the audit and request log. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [PreviewInput](#schema-previewinput) | Field | Type | Required | Description | |---|---|---|---| | `mode` | `"schedule"` or `"publish_now"` | yes | | | `expectedRevision` | integer | yes | | | `channelIds` | string (uuid)[] | no | | Response `200`: [PreviewResult](#schema-previewresult). The preview and receipt Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//preview" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "mode": "schedule", "expectedRevision": 0, "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//preview", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "mode": "schedule", "expectedRevision": 0, "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "receipt": "string", "expiresAt": "2026-10-21T09:00:00Z", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "mode": "schedule", "blocked": false, "requiresReview": false, "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "handle": "string", "scheduledAt": "2026-10-21T09:00:00Z", "payloadHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "payload": { "v": 1, "orgId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postVersionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "contentHash": "string", "variantId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "string", "connectorVersion": "string", "destination": { "kind": null, "providerTargetId": "string" }, "intendedVisibility": "public", "aiLabel": false, "utm": {}, "parts": [] }, "preflight": { "ok": true, "warnings": [] }, "pendingChecks": [ "string" ], "cost": [ { "unit": "string", "amountMicros": 0, "currency": "USD", "billedBy": "postbroad" } ], "verificationLevel": "full" } ], "totalCost": [ { "unit": "string", "amountMicros": 0, "currency": "USD", "billedBy": "postbroad" } ] } ``` ### Schedule with a preview receipt {#op-schedulepost} `POST /v1/posts/{postId}/schedule` Operation `schedulePost`. Needs a key with the scope `post.schedule`. 409 preview_stale carries the fresh preview; 422 rule_violation names the rule; budget_exhausted never becomes an approval request. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [CommitScheduleInput](#schema-commitscheduleinput) or [PublicationDryRunInput](#schema-publicationdryruninput) Response `200`: [ScheduleResult](#schema-scheduleresult) or [PreviewResult](#schema-previewresult). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`400 preview_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 preview_stale`](../errors.md#status-409), [`409 approval_required`](../errors.md#status-409), [`409 dispatch_started`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`422 budget_exhausted`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//schedule" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "receipt": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//schedule", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "receipt": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "post": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": null } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": null, "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": null, "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": null, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 }, "outcome": "scheduled", "reviewLink": "string" } ``` ### Publish now with a preview receipt made in publish_now mode {#op-publishpostnow} `POST /v1/posts/{postId}/publish-now` Operation `publishPostNow`. Needs a key with the scope `post.publish`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [CommitScheduleInput](#schema-commitscheduleinput) or [PublicationDryRunInput](#schema-publicationdryruninput) Response `202`: [ScheduleResult](#schema-scheduleresult). Publishing or sent to review Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`400 preview_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 preview_stale`](../errors.md#status-409), [`409 approval_required`](../errors.md#status-409), [`409 dispatch_started`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`422 budget_exhausted`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//publish-now" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "receipt": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//publish-now", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "receipt": "string" }), }); const data = await res.json(); ``` ```json title="Response 202" { "post": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": null } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": null, "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": null, "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": null, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 }, "outcome": "scheduled", "reviewLink": "string" } ``` ### Back to draft; unsent destinations wait (scheduled to draft) {#op-unschedulepost} `POST /v1/posts/{postId}/unschedule` Operation `unschedulePost`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [ExpectedRevisionInput](#schema-expectedrevisioninput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | Response `200`: [StopResult](#schema-stopresult) or [UnschedulePostDryRun](#schema-unschedulepostdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//unschedule" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0 }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//unschedule", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0 }), }); const data = await res.json(); ``` ```json title="Response 200" { "post": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": null } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": null, "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": null, "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": null, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 }, "stopped": 0, "alreadyDispatching": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ] } ``` ### Cancel a post; deliveries already sending are listed and may still complete {#op-cancelpost} `POST /v1/posts/{postId}/cancel` Operation `cancelPost`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [ExpectedRevisionInput](#schema-expectedrevisioninput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | Response `200`: [StopResult](#schema-stopresult) or [CancelPostDryRun](#schema-cancelpostdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//cancel" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0 }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//cancel", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0 }), }); const data = await res.json(); ``` ```json title="Response 200" { "post": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": null } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": null, "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": null, "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": null, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 }, "stopped": 0, "alreadyDispatching": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ] } ``` ### Move a post or some destinations to a new time; preflight runs again {#op-reschedulepost} `POST /v1/posts/{postId}/reschedule` Operation `reschedulePost`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [RescheduleInput](#schema-rescheduleinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `scheduledAt` | string (date-time) | yes | | | `scope` | `"post"` or `"channels"` | no | | | `channelIds` | string (uuid)[] | no | | | `keepOffsets` | boolean | no | | Response `200`: [PostWriteResult](#schema-postwriteresult) or [ReschedulePostDryRun](#schema-reschedulepostdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`409 dispatch_started`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//reschedule" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "scheduledAt": "2026-10-21T09:00:00Z", "scope": "post", "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "keepOffsets": true }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//reschedule", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "scheduledAt": "2026-10-21T09:00:00Z", "scope": "post", "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "keepOffsets": true }), }); const data = await res.json(); ``` ```json title="Response 200" { "post": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "draft", "scheduledAt": "2026-10-21T09:00:00Z", "tags": [ "string" ], "version": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "contentHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "baseText": "string", "media": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "altText": "string", "thumbnail": null } ], "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "text": "string", "forked": false, "media": [], "options": {}, "threadParts": [], "firstComment": "string", "aiLabel": false, "finalLinks": [] } ], "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z" } ], "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "deliveries": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": null, "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": null, "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": null, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "createdAt": "2026-10-21T09:00:00Z", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "updatedAt": "2026-10-21T09:00:00Z", "revision": 0 }, "alreadyDispatching": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ], "alreadyLive": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ] } ``` ### Status of asynchronous preflight checks of the current version {#op-getpostpreflight} `GET /v1/posts/{postId}/preflight` Operation `getPostPreflight`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Response `200`: [PreflightStatus](#schema-preflightstatus). Preflight per destination Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts//preflight" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//preflight", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "complete": false, "destinations": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "pending", "result": { "ok": true, "warnings": [] }, "pendingChecks": [ "string" ] } ] } ``` ### Pauses and other holds, active first {#op-listholds} `GET /v1/holds` Operation `listHolds`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `active` | query | no | `"true"` or `"false"` | | | `scopeType` | query | no | `"org"` or `"workspace"` or `"brand"` or `"platform_app"` or `"credential"` or `"channel"` | | | `scopeId` | query | no | string (uuid) | | Response `200`: [HoldPage](#schema-holdpage). A page of holds Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/holds" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/holds", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "reason": "org_pause", "note": "string", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "releasedAt": "2026-10-21T09:00:00Z", "releasedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } } ], "nextCursor": "string" } ``` ### Pause an org, workspace, brand or channel {#op-createhold} `POST /v1/holds` Operation `createHold`. Needs a key with the scope `post.schedule`. Stops every claim that commits after it; deliveries already claimed are listed in alreadyDispatching. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreateHoldInput](#schema-createholdinput) | Field | Type | Required | Description | |---|---|---|---| | `scopeType` | `"org"` or `"workspace"` or `"brand"` or `"channel"` | yes | | | `scopeId` | string (uuid) | yes | | | `note` | string or null | no | | Response `201`: [HoldResult](#schema-holdresult). The hold and what it caught Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/holds" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "note": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/holds", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "note": "string" }), }); const data = await res.json(); ``` ```json title="Response 201" { "hold": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "reason": "org_pause", "note": "string", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "releasedAt": "2026-10-21T09:00:00Z", "releasedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "held": 0, "alreadyDispatching": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ] } ``` ### Resume; slots that passed while held come back as the missed batch {#op-releasehold} `POST /v1/holds/{holdId}/release` Operation `releaseHold`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `holdId` | path | yes | string (uuid) | | Response `200`: [ReleaseHoldResult](#schema-releaseholdresult) or [ReleaseHoldDryRun](#schema-releaseholddryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/holds//release" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/holds//release", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "hold": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "reason": "org_pause", "note": "string", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "releasedAt": "2026-10-21T09:00:00Z", "releasedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } }, "released": 0, "missed": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "scheduledAt": "2026-10-21T09:00:00Z", "excerpt": "string" } ] } ``` ### Deliveries whose slot passed while held or disconnected {#op-listmissedslots} `GET /v1/missed-slots` Operation `listMissedSlots`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `brandId` | query | no | string (uuid) | | Response `200`: [MissedSlotPage](#schema-missedslotpage). A page of missed slots Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/missed-slots" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/missed-slots", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "scheduledAt": "2026-10-21T09:00:00Z", "excerpt": "string" } ], "nextCursor": "string" } ``` ### Publish now, shift or skip a batch of missed slots {#op-resolvemissedslots} `POST /v1/missed-slots/resolve` Operation `resolveMissedSlots`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [ResolveMissedInput](#schema-resolvemissedinput) | Field | Type | Required | Description | |---|---|---|---| | `deliveryIds` | string (uuid)[] | yes | | | `action` | `"publish_now"` or `"shift"` or `"skip"` | yes | | | `shiftTo` | string (date-time) | no | | Response `200`: [ResolveMissedResult](#schema-resolvemissedresult) or [ResolveMissedSlotsDryRun](#schema-resolvemissedslotsdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 budget_exhausted`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/missed-slots/resolve" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "deliveryIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "action": "publish_now", "shiftTo": "2026-10-21T09:00:00Z" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/missed-slots/resolve", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "deliveryIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "action": "publish_now", "shiftTo": "2026-10-21T09:00:00Z" }), }); const data = await res.json(); ``` ```json title="Response 200" { "updated": 0, "stillMissed": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "scheduledAt": "2026-10-21T09:00:00Z", "excerpt": "string" } ] } ``` ### The post's repeat, and whether it is evergreen {#op-getpostrecurrence} `GET /v1/posts/{postId}/recurrence` Operation `getPostRecurrence`. Needs a key with the scope `content.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Response `200`: [PostRecurrenceView](#schema-postrecurrenceview). Repeat and evergreen Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/posts//recurrence" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//recurrence", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "recurrence": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "every": { "count": -9007199254740991, "unit": "day" }, "nextAt": "2026-10-21T09:00:00Z", "endsAt": "2026-10-21T09:00:00Z", "remaining": -9007199254740991, "state": "active", "pausedReason": "string", "runs": -9007199254740991, "lastPostId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastRunAt": "2026-10-21T09:00:00Z" }, "evergreen": false } ``` ### Repeat the post every N days, weeks or months, until a date or a number of times {#op-setpostrecurrence} `PUT /v1/posts/{postId}/recurrence` Operation `setPostRecurrence`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [SetRecurrenceInput](#schema-setrecurrenceinput) | Field | Type | Required | Description | |---|---|---|---| | `every` | object | yes | | | `startAt` | string (date-time) | yes | | | `endsAt` | string (date-time) or null | no | | | `times` | integer or null | no | | | `paused` | boolean | no | | Response `200`: [PostRecurrenceView](#schema-postrecurrenceview). Repeat and evergreen Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PUT "https://app.postbroad.com/v1/posts//recurrence" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "every": { "count": 1, "unit": "day" }, "startAt": "2026-10-21T09:00:00Z", "endsAt": "2026-10-21T09:00:00Z", "times": 1, "paused": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//recurrence", { method: "PUT", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "every": { "count": 1, "unit": "day" }, "startAt": "2026-10-21T09:00:00Z", "endsAt": "2026-10-21T09:00:00Z", "times": 1, "paused": false }), }); const data = await res.json(); ``` ```json title="Response 200" { "recurrence": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "every": { "count": -9007199254740991, "unit": "day" }, "nextAt": "2026-10-21T09:00:00Z", "endsAt": "2026-10-21T09:00:00Z", "remaining": -9007199254740991, "state": "active", "pausedReason": "string", "runs": -9007199254740991, "lastPostId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastRunAt": "2026-10-21T09:00:00Z" }, "evergreen": false } ``` ### Stop repeating the post; copies already scheduled stay {#op-stoppostrecurrence} `DELETE /v1/posts/{postId}/recurrence` Operation `stopPostRecurrence`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Response `200`: [PostRecurrenceView](#schema-postrecurrenceview). Repeat and evergreen Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X DELETE "https://app.postbroad.com/v1/posts//recurrence" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//recurrence", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "recurrence": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "every": { "count": -9007199254740991, "unit": "day" }, "nextAt": "2026-10-21T09:00:00Z", "endsAt": "2026-10-21T09:00:00Z", "remaining": -9007199254740991, "state": "active", "pausedReason": "string", "runs": -9007199254740991, "lastPostId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastRunAt": "2026-10-21T09:00:00Z" }, "evergreen": false } ``` ### Add the post to the brand's evergreen posts, or take it out {#op-setpostevergreen} `PUT /v1/posts/{postId}/evergreen` Operation `setPostEvergreen`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [SetPostEvergreenInput](#schema-setpostevergreeninput) | Field | Type | Required | Description | |---|---|---|---| | `evergreen` | boolean | yes | | Response `200`: [PostRecurrenceView](#schema-postrecurrenceview). Repeat and evergreen Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PUT "https://app.postbroad.com/v1/posts//evergreen" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "evergreen": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//evergreen", { method: "PUT", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "evergreen": false }), }); const data = await res.json(); ``` ```json title="Response 200" { "recurrence": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "every": { "count": -9007199254740991, "unit": "day" }, "nextAt": "2026-10-21T09:00:00Z", "endsAt": "2026-10-21T09:00:00Z", "remaining": -9007199254740991, "state": "active", "pausedReason": "string", "runs": -9007199254740991, "lastPostId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastRunAt": "2026-10-21T09:00:00Z" }, "evergreen": false } ``` ### The brand's repeating posts, active and paused first {#op-listbrandrecurrences} `GET /v1/brands/{brandId}/recurrences` Operation `listBrandRecurrences`. Needs a key with the scope `content.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Response `200`: [BrandRecurrences](#schema-brandrecurrences). Repeating posts Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands//recurrences" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//recurrences", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "every": { "count": -9007199254740991, "unit": "day" }, "nextAt": "2026-10-21T09:00:00Z", "endsAt": "2026-10-21T09:00:00Z", "remaining": -9007199254740991, "state": "active", "pausedReason": "string", "runs": -9007199254740991, "lastPostId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastRunAt": "2026-10-21T09:00:00Z", "preview": "string" } ] } ``` ### The brand's evergreen days and posts {#op-getevergreen} `GET /v1/brands/{brandId}/evergreen` Operation `getEvergreen`. Needs a key with the scope `content.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Response `200`: [EvergreenView](#schema-evergreenview). Evergreen rule and posts Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands//evergreen" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//evergreen", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "rule": { "enabled": false, "weekdays": [ 1 ], "time": "string", "timezone": "string", "minGapDays": 1 }, "nextAt": "2026-10-21T09:00:00Z", "pausedReason": "string", "posts": [ { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "preview": "string", "lastRecycledAt": "2026-10-21T09:00:00Z", "times": -9007199254740991 } ] } ``` ### Choose the days and time evergreen posts go out again, and the gap between repeats {#op-setevergreenrule} `PUT /v1/brands/{brandId}/evergreen` Operation `setEvergreenRule`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Request body: [SetEvergreenRuleInput](#schema-setevergreenruleinput) | Field | Type | Required | Description | |---|---|---|---| | `enabled` | boolean | yes | | | `weekdays` | integer[] | yes | | | `time` | string | yes | | | `timezone` | string | yes | | | `minGapDays` | integer | yes | | Response `200`: [EvergreenView](#schema-evergreenview). Evergreen rule and posts Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PUT "https://app.postbroad.com/v1/brands//evergreen" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "enabled": false, "weekdays": [ 1 ], "time": "string", "timezone": "string", "minGapDays": 1 }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//evergreen", { method: "PUT", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "enabled": false, "weekdays": [ 1 ], "time": "string", "timezone": "string", "minGapDays": 1 }), }); const data = await res.json(); ``` ```json title="Response 200" { "rule": { "enabled": false, "weekdays": [ 1 ], "time": "string", "timezone": "string", "minGapDays": 1 }, "nextAt": "2026-10-21T09:00:00Z", "pausedReason": "string", "posts": [ { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "preview": "string", "lastRecycledAt": "2026-10-21T09:00:00Z", "times": -9007199254740991 } ] } ``` ## Schemas ### Actor {#schema-actor} | Field | Type | Required | Description | |---|---|---|---| | `type` | `"member"` or `"agent"` or `"token"` or `"mcp_client"` or `"guest"` or `"system"` or `"profile_server_key"` or `"connect_token"` | yes | | | `id` | string (uuid) or null | yes | | | `name` | string or null | yes | | ### AuthoredBy {#schema-authoredby} | Field | Type | Required | Description | |---|---|---|---| | `kind` | `"member"` or `"agent"` or `"api"` | yes | | | `name` | string or null | yes | | ### BrandRecurrences {#schema-brandrecurrences} | Field | Type | Required | Description | |---|---|---|---| | `data` | object[] | yes | | ### CancelPostDryRun {#schema-cancelpostdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"cancelPost"` | yes | | ### CommitScheduleInput {#schema-commitscheduleinput} Commit a preview. The receipt must match the current payloads, else 409 preview_stale. | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### CreateHoldDryRun {#schema-createholddryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"createHold"` | yes | | ### CreateHoldInput {#schema-createholdinput} | Field | Type | Required | Description | |---|---|---|---| | `scopeType` | `"org"` or `"workspace"` or `"brand"` or `"channel"` | yes | | | `scopeId` | string (uuid) | yes | | | `note` | string or null | no | | ### DeferReason {#schema-deferreason} Type: `"rate_limited"` or `"network_wait"` or `"hold"` or `"budget"` or `"missed_slot"` or `"late_result"` or `"restore_quarantine"` or `"manual"` or `"policy_block"` or `"browser_wait"` ### DeliveryState {#schema-deliverystate} Type: `"pending"` or `"scheduled"` or `"needs_reconnect"` or `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"failed"` or `"unknown"` or `"cancelled"` ### DeliveryStatus {#schema-deliverystatus} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `postId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `account` | object | yes | | | `destination` | object | yes | | | `versionNo` | integer | yes | | | `currentVersionNo` | integer | yes | | | `state` | [DeliveryState](#schema-deliverystate) | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `dispatchAt` | string (date-time) or null | yes | | | `deferral` | object or null | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | | `evidenceMethod` | [EvidenceMethod](#schema-evidencemethod) | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `observedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` or `"unknown"` or null | yes | | | `checkedAt` | string (date-time) or null | yes | | | `checkedBy` | [Actor](#schema-actor) or null | yes | | | `publishedAt` | string (date-time) or null | no | | | `verifiedAt` | string (date-time) or null | no | | | `liveSource` | `"verified"` or `"person"` or `"url_only"` or null | no | | | `liveConfirmedBy` | [Actor](#schema-actor) or null | no | | | `resolutionSource` | `"system"` or `"status_check"` or `"person"` | yes | | | `providerPostId` | string or null | yes | | | `providerUrl` | string or null | yes | | | `browserJobId` | string (uuid) or null | no | | | `lastError` | object or null | yes | | | `attemptCount` | integer | yes | | | `followupsState` | `"none"` or `"pending"` or `"complete"` or `"incomplete"` | yes | | | `steps` | object[] | no | | | `retryRequiresPerson` | boolean | yes | | | `duplicateRiskAck` | object or null | yes | | | `preflightState` | `"pending"` or `"ok"` or `"blocked"` | yes | | | `updatedAt` | string (date-time) | yes | | | `attachmentResolution` | object or null | no | | | `remoteDeleteSupported` | boolean | no | | | `remoteRemoval` | [RemoteRemoval](#schema-remoteremoval) or null | no | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### EvergreenRule {#schema-evergreenrule} | Field | Type | Required | Description | |---|---|---|---| | `enabled` | boolean | yes | | | `weekdays` | integer[] | yes | | | `time` | string | yes | | | `timezone` | string | yes | | | `minGapDays` | integer | yes | | ### EvergreenView {#schema-evergreenview} | Field | Type | Required | Description | |---|---|---|---| | `rule` | [EvergreenRule](#schema-evergreenrule) or null | yes | | | `nextAt` | string (date-time) or null | yes | | | `pausedReason` | string or null | yes | | | `posts` | object[] | yes | | ### EvidenceMethod {#schema-evidencemethod} Type: `"none"` or `"provider_ack"` or `"status_endpoint"` or `"readback_match"` or `"public_fetch"` or `"human_confirmed"` ### ExpectedRevisionInput {#schema-expectedrevisioninput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | ### HoldPage {#schema-holdpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [HoldView](#schema-holdview)[] | yes | | | `nextCursor` | string or null | yes | | ### HoldResult {#schema-holdresult} | Field | Type | Required | Description | |---|---|---|---| | `hold` | [HoldView](#schema-holdview) | yes | | | `held` | integer | yes | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | yes | | ### HoldView {#schema-holdview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `scopeType` | `"org"` or `"workspace"` or `"brand"` or `"platform_app"` or `"credential"` or `"channel"` | yes | | | `scopeId` | string (uuid) | yes | | | `reason` | `"org_pause"` or `"brand_pause"` or `"budget"` or `"incident"` or `"app_disabled"` or `"transfer"` or `"module_missing"` or `"restore_quarantine"` or `"late_result"` or `"anomaly"` or `"workspace_pause"` | yes | | | `note` | string or null | yes | | | `createdBy` | [Actor](#schema-actor) | yes | | | `createdAt` | string (date-time) | yes | | | `releasedAt` | string (date-time) or null | yes | | | `releasedBy` | [Actor](#schema-actor) or null | yes | | ### MissedSlot {#schema-missedslot} | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `postId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `scheduledAt` | string (date-time) | yes | | | `excerpt` | string | yes | | ### MissedSlotPage {#schema-missedslotpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [MissedSlot](#schema-missedslot)[] | yes | | | `nextCursor` | string or null | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PostAuthoring {#schema-postauthoring} | Field | Type | Required | Description | |---|---|---|---| | `baseText` | string | yes | | | `media` | [PostAuthoringMedia](#schema-postauthoringmedia)[] | yes | | | `variants` | [PostAuthoringVariant](#schema-postauthoringvariant)[] | yes | | | `destinations` | [PostAuthoringDestination](#schema-postauthoringdestination)[] | yes | | ### PostAuthoringDestination {#schema-postauthoringdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `scheduledAt` | string (date-time) or null | yes | | ### PostAuthoringMedia {#schema-postauthoringmedia} | Field | Type | Required | Description | |---|---|---|---| | `assetId` | string (uuid) | yes | | | `altText` | string or null | no | | ### PostAuthoringVariant {#schema-postauthoringvariant} | Field | Type | Required | Description | |---|---|---|---| | `network` | [Network](#schema-network) | yes | | | `channelId` | string (uuid) or null | yes | | | `text` | string or null | yes | | | `media` | [PostAuthoringMedia](#schema-postauthoringmedia)[] or null | yes | | | `options` | map of any | yes | | | `threadParts` | string[] | yes | | | `firstComment` | string or null | yes | | | `aiLabel` | boolean or null | yes | | ### PostRecurrenceView {#schema-postrecurrenceview} | Field | Type | Required | Description | |---|---|---|---| | `recurrence` | [Recurrence](#schema-recurrence) or null | yes | | | `evergreen` | boolean | yes | | ### PostRollup {#schema-postrollup} | Field | Type | Required | Description | |---|---|---|---| | `total` | integer | yes | | | `verified` | integer | yes | | | `confirmedByPerson` | integer | yes | | | `acceptedOnly` | integer | yes | | | `failed` | integer | yes | | | `unknown` | integer | yes | | | `waiting` | integer | yes | | | `cancelled` | integer | yes | | | `allPublished` | boolean | yes | | ### PostState {#schema-poststate} Type: `"draft"` or `"in_review"` or `"approved"` or `"scheduled"` or `"cancelled"` ### PostVersionView {#schema-postversionview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `baseText` | string | yes | | | `media` | object[] | yes | | | `variants` | [VariantView](#schema-variantview)[] | yes | | | `destinations` | object[] | yes | | | `authoring` | [PostAuthoring](#schema-postauthoring) | no | | | `createdAt` | string (date-time) | yes | | | `createdBy` | [Actor](#schema-actor) | yes | | | `authoredBy` | [AuthoredBy](#schema-authoredby) | no | | ### PostView {#schema-postview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `state` | [PostState](#schema-poststate) | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `tags` | string[] | yes | | | `version` | [PostVersionView](#schema-postversionview) | yes | | | `deliveries` | [DeliveryStatus](#schema-deliverystatus)[] | yes | | | `rollup` | [PostRollup](#schema-postrollup) | yes | | | `createdAt` | string (date-time) | yes | | | `createdBy` | [Actor](#schema-actor) | yes | | | `authoredBy` | [AuthoredBy](#schema-authoredby) | no | | | `updatedAt` | string (date-time) | yes | | | `revision` | integer | yes | | | `actions` | object | no | | ### PostWriteResult {#schema-postwriteresult} | Field | Type | Required | Description | |---|---|---|---| | `post` | [PostView](#schema-postview) | yes | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | yes | | | `alreadyLive` | [DispatchingRef](#schema-dispatchingref)[] | yes | | ### PreflightResult {#schema-preflightresult} Type: object ### PreflightStatus {#schema-preflightstatus} | Field | Type | Required | Description | |---|---|---|---| | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `complete` | boolean | yes | | | `destinations` | object[] | yes | | ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewInput {#schema-previewinput} | Field | Type | Required | Description | |---|---|---|---| | `mode` | `"schedule"` or `"publish_now"` | yes | | | `expectedRevision` | integer | yes | | | `channelIds` | string (uuid)[] | no | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### PublicationDryRunInput {#schema-publicationdryruninput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `channelIds` | string (uuid)[] | no | | ### Recurrence {#schema-recurrence} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `postId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `every` | object | yes | | | `nextAt` | string (date-time) | yes | | | `endsAt` | string (date-time) or null | yes | | | `remaining` | integer or null | yes | | | `state` | `"active"` or `"paused"` or `"ended"` | yes | | | `pausedReason` | string or null | yes | | | `runs` | integer | yes | | | `lastPostId` | string (uuid) or null | yes | | | `lastRunAt` | string (date-time) or null | yes | | ### ReleaseHoldDryRun {#schema-releaseholddryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"releaseHold"` | yes | | ### ReleaseHoldResult {#schema-releaseholdresult} | Field | Type | Required | Description | |---|---|---|---| | `hold` | [HoldView](#schema-holdview) | yes | | | `released` | integer | yes | | | `missed` | [MissedSlot](#schema-missedslot)[] | yes | | ### RemoteRemoval {#schema-remoteremoval} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"queued"` or `"running"` or `"removed"` or `"failed"` or `"unknown"` | yes | | | `requestedAt` | string (date-time) | yes | | | `requestedBy` | [Actor](#schema-actor) | yes | | | `finishedAt` | string (date-time) or null | yes | | | `error` | object or null | yes | | ### RescheduleInput {#schema-rescheduleinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `scheduledAt` | string (date-time) | yes | | | `scope` | `"post"` or `"channels"` | no | | | `channelIds` | string (uuid)[] | no | | | `keepOffsets` | boolean | no | | ### ReschedulePostDryRun {#schema-reschedulepostdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"reschedulePost"` | yes | | ### ResolveMissedInput {#schema-resolvemissedinput} | Field | Type | Required | Description | |---|---|---|---| | `deliveryIds` | string (uuid)[] | yes | | | `action` | `"publish_now"` or `"shift"` or `"skip"` | yes | | | `shiftTo` | string (date-time) | no | | ### ResolveMissedResult {#schema-resolvemissedresult} | Field | Type | Required | Description | |---|---|---|---| | `updated` | integer | yes | | | `stillMissed` | [MissedSlot](#schema-missedslot)[] | yes | | ### ResolveMissedSlotsDryRun {#schema-resolvemissedslotsdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"resolveMissedSlots"` | yes | | ### ScheduleResult {#schema-scheduleresult} | Field | Type | Required | Description | |---|---|---|---| | `post` | [PostView](#schema-postview) | yes | | | `outcome` | `"scheduled"` or `"publishing"` or `"in_review"` | yes | | | `reviewLink` | string or null | yes | | ### SetEvergreenRuleInput {#schema-setevergreenruleinput} | Field | Type | Required | Description | |---|---|---|---| | `enabled` | boolean | yes | | | `weekdays` | integer[] | yes | | | `time` | string | yes | | | `timezone` | string | yes | | | `minGapDays` | integer | yes | | ### SetPostEvergreenInput {#schema-setpostevergreeninput} | Field | Type | Required | Description | |---|---|---|---| | `evergreen` | boolean | yes | | ### SetRecurrenceInput {#schema-setrecurrenceinput} | Field | Type | Required | Description | |---|---|---|---| | `every` | object | yes | | | `startAt` | string (date-time) | yes | | | `endsAt` | string (date-time) or null | no | | | `times` | integer or null | no | | | `paused` | boolean | no | | ### SignedUrl {#schema-signedurl} A signed media URL. Bearer access until it expires. In an answer that carries an ETag the URL is minted per fixed window: the expiry is rounded up to the next full hour plus one hour, and the signature is the same within that window, so the ETag changes only when the content does and polling with If-None-Match still gets 304. | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `expiresAt` | string (date-time) | yes | | ### StopResult {#schema-stopresult} | Field | Type | Required | Description | |---|---|---|---| | `post` | [PostView](#schema-postview) | yes | | | `stopped` | integer | yes | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | yes | | ### UnschedulePostDryRun {#schema-unschedulepostdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"unschedulePost"` | yes | | ### VariantView {#schema-variantview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `channelId` | string (uuid) or null | yes | | | `text` | string | yes | | | `forked` | boolean | yes | | | `media` | object[] | yes | | | `options` | map of any | yes | | | `threadParts` | string[] | yes | | | `firstComment` | string or null | yes | | | `aiLabel` | boolean | yes | | | `finalLinks` | string[] | yes | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Deliveries Where each post went and what each network answered: delivery states, evidence, attempts, retries and unknown outcomes. 17 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Read the [delivery states](../../guides/concepts.md#states) and [what live means](../../guides/concepts.md#live) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/deliveries`](#op-listdeliveries) | Deliveries by post, brand, channel or state | any key | | [`GET /v1/deliveries/{deliveryId}`](#op-getdelivery) | One delivery with its state and evidence | any key | | [`GET /v1/deliveries/{deliveryId}/historical-unknown`](#op-gethistoricalunknown) | Minimal evidence for an older unresolved delivery | any key | | [`POST /v1/deliveries/{deliveryId}/historical-unknown`](#op-resolvehistoricalunknown) | Resolve an older unknown outcome without reopening the post | `post.publish` | | [`GET /v1/deliveries/{deliveryId}/attempts`](#op-listdeliveryattempts) | Every write request made for a delivery; nothing is removed on retry | any key | | [`POST /v1/deliveries/{deliveryId}/retry`](#op-retrydelivery) | Retry a failed delivery with the same frozen payload | `post.publish` | | [`POST /v1/deliveries/{deliveryId}/steps/{operationId}/retry`](#op-retrydeliverystep) | Retry a definitively failed reply or first comment without resending the post | `post.publish` | | [`POST /v1/posts/{postId}/retry-failed`](#op-retryfaileddeliveries) | Retry only the failed destinations of a post | `post.publish` | | [`POST /v1/deliveries/{deliveryId}/resolve`](#op-resolvedelivery) | Resolve an unknown outcome: search the network first, or a person decides | `post.publish` | | [`POST /v1/deliveries/{deliveryId}/confirm`](#op-confirmdelivery) | Mark a delivery live with its URL, confirmed by a person (human_confirmed) | `post.publish` | | [`POST /v1/deliveries/{deliveryId}/cancel`](#op-canceldelivery) | Cancel one destination of a post | `post.schedule` | | [`DELETE /v1/posts/{postId}/deliveries/{deliveryId}/remote`](#op-removedeliveryfromnetwork) | Delete a sent post from its network; this cannot be undone | `post.delete_remote` | | [`POST /v1/extension/heartbeat`](#op-extensionheartbeat) | The browser extension checks in | `extension.post` | | [`GET /v1/extension/jobs`](#op-listextensionjobs) | Posts waiting for this browser | `extension.post` | | [`POST /v1/extension/jobs/{jobId}/claim`](#op-claimextensionjob) | Take one waiting post for this browser | `extension.post` | | [`POST /v1/extension/jobs/{jobId}/lease`](#op-extendextensionjoblease) | Keep a leased post for longer | `extension.post` | | [`POST /v1/extension/jobs/{jobId}/report`](#op-reportextensionjob) | Say what happened to a leased post | `extension.post` | ## Operations ### Deliveries by post, brand, channel or state {#op-listdeliveries} `GET /v1/deliveries` Operation `listDeliveries`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `postId` | query | no | string (uuid) | | | `brandId` | query | no | string (uuid) | | | `channelId` | query | no | string (uuid) | | | `state` | query | no | `"pending"` or `"scheduled"` or `"needs_reconnect"` or `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"failed"` or `"unknown"` or `"cancelled"` | | Response `200`: [DeliveryPage](#schema-deliverypage). A page of deliveries Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/deliveries" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "nextCursor": "string" } ``` ### One delivery with its state and evidence {#op-getdelivery} `GET /v1/deliveries/{deliveryId}` Operation `getDelivery`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | Response `200`: [DeliveryStatus](#schema-deliverystatus). The delivery Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/deliveries/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "publishedAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "liveSource": "verified", "liveConfirmedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "browserJobId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "steps": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "post", "partNo": 0, "parentOperationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "planned", "retryable": false } ], "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z", "attachmentResolution": { "operationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "operationClaimGeneration": "string", "attemptId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postVersionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "nomination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "providerAttachmentId": "string", "status": "pending" } }, "remoteDeleteSupported": false, "remoteRemoval": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "requestedAt": "2026-10-21T09:00:00Z", "requestedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "finishedAt": "2026-10-21T09:00:00Z", "error": { "code": "string", "message": "string" } } } ``` ### Minimal evidence for an older unresolved delivery {#op-gethistoricalunknown} `GET /v1/deliveries/{deliveryId}/historical-unknown` Operation `getHistoricalUnknown`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | Response `200`: [HistoricalUnknown](#schema-historicalunknown). An unresolved historical delivery Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/deliveries//historical-unknown" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries//historical-unknown", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "canResolve": false } ``` ### Resolve an older unknown outcome without reopening the post {#op-resolvehistoricalunknown} `POST /v1/deliveries/{deliveryId}/historical-unknown` Operation `resolveHistoricalUnknown`. Needs a key with the scope `post.publish`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | Request body: [HistoricalUnknownResolutionInput](#schema-historicalunknownresolutioninput) Response `202`: [HistoricalUnknownResolutionResult](#schema-historicalunknownresolutionresult). The resolution Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/deliveries//historical-unknown" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "action": "search" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries//historical-unknown", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "action": "search" }), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "unknown", "searchQueuedAt": "2026-10-21T09:00:00Z" } ``` ### Every write request made for a delivery; nothing is removed on retry {#op-listdeliveryattempts} `GET /v1/deliveries/{deliveryId}/attempts` Operation `listDeliveryAttempts`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | | `cursor` | query | no | string | | | `limit` | query | no | integer | | Response `200`: [DeliveryAttemptPage](#schema-deliveryattemptpage). A page of attempts Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/deliveries//attempts" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries//attempts", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "attemptNo": 0, "operationKind": "post", "partNo": 0, "startedAt": "2026-10-21T09:00:00Z", "sentAt": "2026-10-21T09:00:00Z", "finishedAt": "2026-10-21T09:00:00Z", "outcome": "in_flight", "httpStatus": -9007199254740991, "providerPostId": "string", "errorCode": "string", "responseExcerpt": "string", "durationMs": 0 } ], "nextCursor": "string" } ``` ### Retry a failed delivery with the same frozen payload {#op-retrydelivery} `POST /v1/deliveries/{deliveryId}/retry` Operation `retryDelivery`. Needs a key with the scope `post.publish`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | Request body: [RetryDeliveryInput](#schema-retrydeliveryinput) | Field | Type | Required | Description | |---|---|---|---| | `acceptDuplicateRisk` | boolean | no | | Response `202`: [DeliveryStatus](#schema-deliverystatus). The delivery, scheduled again Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`409 duplicate_risk_unacknowledged`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 budget_exhausted`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/deliveries//retry" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "acceptDuplicateRisk": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries//retry", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "acceptDuplicateRisk": false }), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "publishedAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "liveSource": "verified", "liveConfirmedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "browserJobId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "steps": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "post", "partNo": 0, "parentOperationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "planned", "retryable": false } ], "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z", "attachmentResolution": { "operationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "operationClaimGeneration": "string", "attemptId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postVersionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "nomination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "providerAttachmentId": "string", "status": "pending" } }, "remoteDeleteSupported": false, "remoteRemoval": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "requestedAt": "2026-10-21T09:00:00Z", "requestedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "finishedAt": "2026-10-21T09:00:00Z", "error": { "code": "string", "message": "string" } } } ``` ### Retry a definitively failed reply or first comment without resending the post {#op-retrydeliverystep} `POST /v1/deliveries/{deliveryId}/steps/{operationId}/retry` Operation `retryDeliveryStep`. Needs a key with the scope `post.publish`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | | `operationId` | path | yes | string (uuid) | | Request body: [RetryDeliveryStepInput](#schema-retrydeliverystepinput) Response `202`: [DeliveryStatus](#schema-deliverystatus). The delivery with its step queued again Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/deliveries//steps//retry" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{}' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries//steps//retry", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({}), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "publishedAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "liveSource": "verified", "liveConfirmedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "browserJobId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "steps": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "post", "partNo": 0, "parentOperationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "planned", "retryable": false } ], "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z", "attachmentResolution": { "operationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "operationClaimGeneration": "string", "attemptId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postVersionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "nomination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "providerAttachmentId": "string", "status": "pending" } }, "remoteDeleteSupported": false, "remoteRemoval": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "requestedAt": "2026-10-21T09:00:00Z", "requestedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "finishedAt": "2026-10-21T09:00:00Z", "error": { "code": "string", "message": "string" } } } ``` ### Retry only the failed destinations of a post {#op-retryfaileddeliveries} `POST /v1/posts/{postId}/retry-failed` Operation `retryFailedDeliveries`. Needs a key with the scope `post.publish`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | Request body: [RetryDeliveryInput](#schema-retrydeliveryinput) | Field | Type | Required | Description | |---|---|---|---| | `acceptDuplicateRisk` | boolean | no | | Response `202`: [RetryFailedResult](#schema-retryfailedresult). What was retried Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 budget_exhausted`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/posts//retry-failed" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "acceptDuplicateRisk": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//retry-failed", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "acceptDuplicateRisk": false }), }); const data = await res.json(); ``` ```json title="Response 202" { "retried": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" } ], "needsPerson": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ``` ### Resolve an unknown outcome: search the network first, or a person decides {#op-resolvedelivery} `POST /v1/deliveries/{deliveryId}/resolve` Operation `resolveDelivery`. Needs a key with the scope `post.publish`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | Request body: [ResolveDeliveryInput](#schema-resolvedeliveryinput) Response `202`: [ResolveDeliveryResult](#schema-resolvedeliveryresult). The delivery Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/deliveries//resolve" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "action": "search" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries//resolve", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "action": "search" }), }); const data = await res.json(); ``` ```json title="Response 202" { "delivery": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" }, "searchQueuedAt": "2026-10-21T09:00:00Z" } ``` ### Mark a delivery live with its URL, confirmed by a person (human_confirmed) {#op-confirmdelivery} `POST /v1/deliveries/{deliveryId}/confirm` Operation `confirmDelivery`. Needs a key with the scope `post.publish`. Also the Reddit submit-by-hand confirmation. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | Request body: [ConfirmDeliveryInput](#schema-confirmdeliveryinput) | Field | Type | Required | Description | |---|---|---|---| | `providerUrl` | string (uri) | yes | | Response `200`: [DeliveryStatus](#schema-deliverystatus). The delivery Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/deliveries//confirm" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "providerUrl": "https://example.invalid/post/1" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries//confirm", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "providerUrl": "https://example.invalid/post/1" }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "publishedAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "liveSource": "verified", "liveConfirmedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "browserJobId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "steps": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "post", "partNo": 0, "parentOperationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "planned", "retryable": false } ], "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z", "attachmentResolution": { "operationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "operationClaimGeneration": "string", "attemptId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postVersionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "nomination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "providerAttachmentId": "string", "status": "pending" } }, "remoteDeleteSupported": false, "remoteRemoval": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "requestedAt": "2026-10-21T09:00:00Z", "requestedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "finishedAt": "2026-10-21T09:00:00Z", "error": { "code": "string", "message": "string" } } } ``` ### Cancel one destination of a post {#op-canceldelivery} `POST /v1/deliveries/{deliveryId}/cancel` Operation `cancelDelivery`. Needs a key with the scope `post.schedule`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `deliveryId` | path | yes | string (uuid) | | Response `200`: [CancelDeliveryResult](#schema-canceldeliveryresult) or [CancelDeliveryDryRun](#schema-canceldeliverydryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/deliveries//cancel" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deliveries//cancel", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "delivery": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" }, "mayStillComplete": false } ``` ### Delete a sent post from its network; this cannot be undone {#op-removedeliveryfromnetwork} `DELETE /v1/posts/{postId}/deliveries/{deliveryId}/remote` Operation `removeDeliveryFromNetwork`. Needs a key with the scope `post.delete_remote`. Queues one delete of the post this delivery sent (the main post; replies and comments stay where the network keeps them). The answer is 202 with the request; the delivery's `remoteRemoval` shows the outcome. Asking again while a request runs, or after the post was removed, answers that request. 409 `conflict` when the post is not live with a network id, or when the network's connector has no delete (`reason: remote_delete_unsupported`). An MCP client in Approve mode is refused (post.delete_remote). Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `postId` | path | yes | string (uuid) | | | `deliveryId` | path | yes | string (uuid) | | Response `202`: [RemoveDeliveryRemoteResult](#schema-removedeliveryremoteresult). The removal request Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`409 organization_frozen`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X DELETE "https://app.postbroad.com/v1/posts//deliveries//remote" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/posts//deliveries//remote", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 202" { "delivery": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "account": { "handle": "string", "displayName": "string" }, "destination": { "kind": "feed", "name": "string" }, "versionNo": 0, "currentVersionNo": 0, "state": "pending", "scheduledAt": "2026-10-21T09:00:00Z", "dispatchAt": "2026-10-21T09:00:00Z", "deferral": { "reason": "rate_limited", "until": "2026-10-21T09:00:00Z" }, "verificationLevel": "full", "evidenceMethod": "none", "intendedVisibility": "public", "observedVisibility": "public", "checkedAt": "2026-10-21T09:00:00Z", "checkedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "resolutionSource": "system", "providerPostId": "string", "providerUrl": "string", "lastError": { "code": "string", "message": "string", "fix": "string" }, "attemptCount": 0, "followupsState": "none", "retryRequiresPerson": false, "duplicateRiskAck": { "by": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "at": "2026-10-21T09:00:00Z" }, "preflightState": "pending", "updatedAt": "2026-10-21T09:00:00Z" }, "removal": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "requestedAt": "2026-10-21T09:00:00Z", "requestedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "finishedAt": "2026-10-21T09:00:00Z", "error": { "code": "string", "message": "string" } } } ``` ### The browser extension checks in {#op-extensionheartbeat} `POST /v1/extension/heartbeat` Operation `extensionHeartbeat`. Needs a key with the scope `extension.post`. Needs an API key holding `extension.post`; the key is the browser. Records it as seen with its version and kill switch, and answers how many jobs wait for it. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [BrowserHeartbeatInput](#schema-browserheartbeatinput) | Field | Type | Required | Description | |---|---|---|---| | `version` | string | yes | | | `paused` | boolean | yes | | | `name` | string | no | | | `selfTest` | [BrowserSelfTest](#schema-browserselftest) | no | | Response `200`: [BrowserHeartbeat](#schema-browserheartbeat). Seen Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/extension/heartbeat" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "version": "string", "paused": false, "name": "string", "selfTest": { "checkedAt": "2026-10-21T09:00:00Z", "results": [ { "network": "facebook_groups", "ok": false } ] } }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/extension/heartbeat", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "version": "string", "paused": false, "name": "string", "selfTest": { "checkedAt": "2026-10-21T09:00:00Z", "results": [ { "network": "facebook_groups", "ok": false } ] } }), }); const data = await res.json(); ``` ```json title="Response 200" { "browserId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "lastSeenAt": "2026-10-21T09:00:00Z", "waitingJobs": 0 } ``` ### Posts waiting for this browser {#op-listextensionjobs} `GET /v1/extension/jobs` Operation `listExtensionJobs`. Needs a key with the scope `extension.post`. Waiting jobs in the key's brands, for connections bound to this browser or to none yet, oldest first, at most 50. Ends stale work first: a lease that ran out without a report goes to a person, a job more than a day late expires. Response `200`: [BrowserJobList](#schema-browserjoblist). Waiting jobs Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/extension/jobs" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/extension/jobs", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook_groups", "state": "waiting", "targetUrl": "string", "targetKind": "profile", "openUrl": "string", "label": "string", "text": "string", "title": null, "options": {}, "mediaCount": 0, "assist": "auto", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "dueAt": "2026-10-21T09:00:00Z", "createdAt": "2026-10-21T09:00:00Z" } ] } ``` ### Take one waiting post for this browser {#op-claimextensionjob} `POST /v1/extension/jobs/{jobId}/claim` Operation `claimExtensionJob`. Needs a key with the scope `extension.post`. Leases the job to this browser for five minutes and binds its connection to this browser, and answers its media as signed links (images 15 minutes, video 60; byte ranges are served). Asking again for a job this browser holds answers the same lease with freshly signed links. 429 with `retryAfterSeconds` when the network's pacing says wait; 409 when the job is no longer waiting or another browser runs this connection; 409 `media_unavailable` with `retryAfterSeconds` while a file of the post is not ready. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `jobId` | path | yes | string (uuid) | | Response `200`: [BrowserJobClaim](#schema-browserjobclaim). The leased job Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/extension/jobs//claim" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/extension/jobs//claim", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "job": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook_groups", "state": "waiting", "targetUrl": "string", "targetKind": "profile", "openUrl": "string", "label": "string", "text": "string", "title": null, "options": {}, "mediaCount": 0, "assist": "auto", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "dueAt": "2026-10-21T09:00:00Z", "createdAt": "2026-10-21T09:00:00Z" }, "leaseUntil": "2026-10-21T09:00:00Z", "media": [ { "url": "string", "mime": "string", "bytes": 0, "alt": "string", "kind": "image", "expiresAt": "2026-10-21T09:00:00Z" } ] } ``` ### Keep a leased post for longer {#op-extendextensionjoblease} `POST /v1/extension/jobs/{jobId}/lease` Operation `extendExtensionJobLease`. Needs a key with the scope `extension.post`. By the browser that holds the job: the lease runs until `seconds` from now (60 to 3, 600), never shorter than it was and never more than three hours after the claim. For a person pressing Post in `fill` mode, or a long video upload. 409 when the lease is gone. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `jobId` | path | yes | string (uuid) | | Request body: [BrowserJobLeaseInput](#schema-browserjobleaseinput) | Field | Type | Required | Description | |---|---|---|---| | `seconds` | integer | yes | | Response `200`: [BrowserJobLease](#schema-browserjoblease). The new lease Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/extension/jobs//lease" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "seconds": 60 }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/extension/jobs//lease", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "seconds": 60 }), }); const data = await res.json(); ``` ```json title="Response 200" { "leaseUntil": "2026-10-21T09:00:00Z" } ``` ### Say what happened to a leased post {#op-reportextensionjob} `POST /v1/extension/jobs/{jobId}/report` Operation `reportExtensionJob`. Needs a key with the scope `extension.post`. Once per job, by the browser that holds it. `posted` with a link of that network marks the delivery accepted with the link (never checked: nothing reads it back); `not_posted` and `declined` fail it with the reason; `unknown` hands it to a person to confirm. 409 when the lease is gone. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `jobId` | path | yes | string (uuid) | | Request body: [BrowserJobReportInput](#schema-browserjobreportinput) Response `200`: [BrowserJobReport](#schema-browserjobreport). Recorded Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/extension/jobs//report" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "outcome": "posted", "url": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/extension/jobs//report", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "outcome": "posted", "url": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "state": "waiting", "deliveryState": "string" } ``` ## Schemas ### Actor {#schema-actor} | Field | Type | Required | Description | |---|---|---|---| | `type` | `"member"` or `"agent"` or `"token"` or `"mcp_client"` or `"guest"` or `"system"` or `"profile_server_key"` or `"connect_token"` | yes | | | `id` | string (uuid) or null | yes | | | `name` | string or null | yes | | ### BrowserAssistLevel {#schema-browserassistlevel} `auto` fills the composer and presses Post; `fill` fills it and the person presses Post. Type: `"auto"` or `"fill"` ### BrowserHeartbeat {#schema-browserheartbeat} | Field | Type | Required | Description | |---|---|---|---| | `browserId` | string (uuid) | yes | | | `lastSeenAt` | string (date-time) | yes | | | `waitingJobs` | integer | yes | | ### BrowserHeartbeatInput {#schema-browserheartbeatinput} | Field | Type | Required | Description | |---|---|---|---| | `version` | string | yes | | | `paused` | boolean | yes | | | `name` | string | no | | | `selfTest` | [BrowserSelfTest](#schema-browserselftest) | no | | ### BrowserJob {#schema-browserjob} A post waiting for a browser, with the exact text it will post. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `network` | [BrowserNetwork](#schema-browsernetwork) | yes | A network the extension posts to (BROWSER_CAPABLE_NETWORKS). | | `state` | [BrowserJobState](#schema-browserjobstate) | yes | | | `targetUrl` | string | yes | | | `targetKind` | [BrowserTargetKind](#schema-browsertargetkind) or null | yes | | | `openUrl` | string | yes | | | `label` | string | yes | | | `text` | string | yes | | | `title` | string or null | yes | | | `options` | map of any | yes | | | `mediaCount` | integer | yes | | | `assist` | [BrowserAssistLevel](#schema-browserassistlevel) | yes | `auto` fills the composer and presses Post; `fill` fills it and the person presses Post. | | `brandId` | string (uuid) | yes | | | `dueAt` | string (date-time) | yes | | | `createdAt` | string (date-time) | yes | | ### BrowserJobClaim {#schema-browserjobclaim} A job this browser now holds until `leaseUntil`. Report before then. | Field | Type | Required | Description | |---|---|---|---| | `job` | [BrowserJob](#schema-browserjob) | yes | A post waiting for a browser, with the exact text it will post. | | `leaseUntil` | string (date-time) | yes | | | `media` | [BrowserJobMedia](#schema-browserjobmedia)[] | yes | | ### BrowserJobLease {#schema-browserjoblease} The job is this browser's until `leaseUntil`, never more than three hours after its claim. | Field | Type | Required | Description | |---|---|---|---| | `leaseUntil` | string (date-time) | yes | | ### BrowserJobLeaseInput {#schema-browserjobleaseinput} | Field | Type | Required | Description | |---|---|---|---| | `seconds` | integer | yes | | ### BrowserJobList {#schema-browserjoblist} | Field | Type | Required | Description | |---|---|---|---| | `data` | [BrowserJob](#schema-browserjob)[] | yes | | ### BrowserJobMedia {#schema-browserjobmedia} | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | | | `mime` | string | yes | | | `bytes` | integer | yes | | | `alt` | string or null | yes | | | `kind` | `"image"` or `"video"` | yes | | | `durationMs` | integer | no | | | `width` | integer | no | | | `height` | integer | no | | | `expiresAt` | string (date-time) | yes | | ### BrowserJobReport {#schema-browserjobreport} | Field | Type | Required | Description | |---|---|---|---| | `state` | [BrowserJobState](#schema-browserjobstate) | yes | | | `deliveryState` | string | yes | | ### BrowserJobReportInput {#schema-browserjobreportinput} Type: object ### BrowserJobState {#schema-browserjobstate} Type: `"waiting"` or `"claimed"` or `"posted"` or `"not_posted"` or `"unknown"` or `"declined"` or `"expired"` ### BrowserNetwork {#schema-browsernetwork} A network the extension posts to (BROWSER_CAPABLE_NETWORKS). Type: `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` or `"linkedin"` or `"threads"` or `"pinterest"` or `"instagram"` or `"facebook"` ### BrowserSelfTest {#schema-browserselftest} | Field | Type | Required | Description | |---|---|---|---| | `checkedAt` | string (date-time) | yes | | | `results` | object[] | yes | | ### BrowserTargetKind {#schema-browsertargetkind} Type: `"profile"` or `"page"` or `"group"` or `"board"` ### CancelDeliveryDryRun {#schema-canceldeliverydryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"cancelDelivery"` | yes | | ### CancelDeliveryResult {#schema-canceldeliveryresult} | Field | Type | Required | Description | |---|---|---|---| | `delivery` | [DeliveryStatus](#schema-deliverystatus) | yes | | | `mayStillComplete` | boolean | yes | | ### ConfirmDeliveryInput {#schema-confirmdeliveryinput} | Field | Type | Required | Description | |---|---|---|---| | `providerUrl` | string (uri) | yes | | ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### DeferReason {#schema-deferreason} Type: `"rate_limited"` or `"network_wait"` or `"hold"` or `"budget"` or `"missed_slot"` or `"late_result"` or `"restore_quarantine"` or `"manual"` or `"policy_block"` or `"browser_wait"` ### DeliveryAttemptPage {#schema-deliveryattemptpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [DeliveryAttemptView](#schema-deliveryattemptview)[] | yes | | | `nextCursor` | string or null | yes | | ### DeliveryAttemptView {#schema-deliveryattemptview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `deliveryId` | string (uuid) | yes | | | `attemptNo` | integer | yes | | | `operationKind` | `"post"` or `"thread_part"` or `"first_comment"` or `"stage"` or `"commit"` or `"generation_submit"` | yes | | | `partNo` | integer | yes | | | `startedAt` | string (date-time) | yes | | | `sentAt` | string (date-time) or null | yes | | | `finishedAt` | string (date-time) or null | yes | | | `outcome` | `"in_flight"` or `"ok"` or `"ok_late"` or `"failed"` or `"unknown"` or `"not_sent"` | yes | | | `httpStatus` | integer or null | yes | | | `providerPostId` | string or null | yes | | | `errorCode` | string or null | yes | | | `responseExcerpt` | string or null | yes | | | `durationMs` | integer or null | yes | | ### DeliveryPage {#schema-deliverypage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [DeliveryStatus](#schema-deliverystatus)[] | yes | | | `nextCursor` | string or null | yes | | ### DeliveryState {#schema-deliverystate} Type: `"pending"` or `"scheduled"` or `"needs_reconnect"` or `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"failed"` or `"unknown"` or `"cancelled"` ### DeliveryStatus {#schema-deliverystatus} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `postId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `account` | object | yes | | | `destination` | object | yes | | | `versionNo` | integer | yes | | | `currentVersionNo` | integer | yes | | | `state` | [DeliveryState](#schema-deliverystate) | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `dispatchAt` | string (date-time) or null | yes | | | `deferral` | object or null | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | | `evidenceMethod` | [EvidenceMethod](#schema-evidencemethod) | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `observedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` or `"unknown"` or null | yes | | | `checkedAt` | string (date-time) or null | yes | | | `checkedBy` | [Actor](#schema-actor) or null | yes | | | `publishedAt` | string (date-time) or null | no | | | `verifiedAt` | string (date-time) or null | no | | | `liveSource` | `"verified"` or `"person"` or `"url_only"` or null | no | | | `liveConfirmedBy` | [Actor](#schema-actor) or null | no | | | `resolutionSource` | `"system"` or `"status_check"` or `"person"` | yes | | | `providerPostId` | string or null | yes | | | `providerUrl` | string or null | yes | | | `browserJobId` | string (uuid) or null | no | | | `lastError` | object or null | yes | | | `attemptCount` | integer | yes | | | `followupsState` | `"none"` or `"pending"` or `"complete"` or `"incomplete"` | yes | | | `steps` | object[] | no | | | `retryRequiresPerson` | boolean | yes | | | `duplicateRiskAck` | object or null | yes | | | `preflightState` | `"pending"` or `"ok"` or `"blocked"` | yes | | | `updatedAt` | string (date-time) | yes | | | `attachmentResolution` | object or null | no | | | `remoteDeleteSupported` | boolean | no | | | `remoteRemoval` | [RemoteRemoval](#schema-remoteremoval) or null | no | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### EvidenceMethod {#schema-evidencemethod} Type: `"none"` or `"provider_ack"` or `"status_endpoint"` or `"readback_match"` or `"public_fetch"` or `"human_confirmed"` ### HistoricalUnknown {#schema-historicalunknown} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `canResolve` | boolean | yes | | ### HistoricalUnknownResolutionInput {#schema-historicalunknownresolutioninput} Type: object ### HistoricalUnknownResolutionResult {#schema-historicalunknownresolutionresult} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"unknown"` or `"published"` or `"failed"` | yes | | | `searchQueuedAt` | string (date-time) or null | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### RemoteRemoval {#schema-remoteremoval} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"queued"` or `"running"` or `"removed"` or `"failed"` or `"unknown"` | yes | | | `requestedAt` | string (date-time) | yes | | | `requestedBy` | [Actor](#schema-actor) | yes | | | `finishedAt` | string (date-time) or null | yes | | | `error` | object or null | yes | | ### RemoveDeliveryFromNetworkDryRun {#schema-removedeliveryfromnetworkdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"removeDeliveryFromNetwork"` | yes | | ### RemoveDeliveryRemoteResult {#schema-removedeliveryremoteresult} | Field | Type | Required | Description | |---|---|---|---| | `delivery` | [DeliveryStatus](#schema-deliverystatus) | yes | | | `removal` | [RemoteRemoval](#schema-remoteremoval) | yes | | ### ResolveDeliveryDryRun {#schema-resolvedeliverydryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"resolveDelivery"` | yes | | ### ResolveDeliveryInput {#schema-resolvedeliveryinput} Type: object ### ResolveDeliveryResult {#schema-resolvedeliveryresult} | Field | Type | Required | Description | |---|---|---|---| | `delivery` | [DeliveryStatus](#schema-deliverystatus) | yes | | | `searchQueuedAt` | string (date-time) or null | yes | | ### RetryDeliveryDryRun {#schema-retrydeliverydryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"retryDelivery"` | yes | | ### RetryDeliveryInput {#schema-retrydeliveryinput} | Field | Type | Required | Description | |---|---|---|---| | `acceptDuplicateRisk` | boolean | no | | ### RetryDeliveryStepDryRun {#schema-retrydeliverystepdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"retryDeliveryStep"` | yes | | ### RetryDeliveryStepInput {#schema-retrydeliverystepinput} Type: object ### RetryFailedDeliveriesDryRun {#schema-retryfaileddeliveriesdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"retryFailedDeliveries"` | yes | | ### RetryFailedResult {#schema-retryfailedresult} | Field | Type | Required | Description | |---|---|---|---| | `retried` | [DeliveryStatus](#schema-deliverystatus)[] | yes | | | `needsPerson` | string (uuid)[] | yes | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Media Upload and import media, organize the library, and read each file's renditions per network. 14 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`POST /v1/media/uploads`](#op-createupload) | Start an upload: a pending session (1 h) and where to send the bytes | `media.upload` | | [`PUT /v1/media/uploads/{uploadId}/content`](#op-uploadmediacontent) | The bytes of an upload whose target is `api`, streamed to storage with a bounded memory allowance | `media.upload` | | [`POST /v1/media/uploads/{uploadId}/complete`](#op-completeupload) | Bind the stored bytes; the media container then ingests them | `media.upload` | | [`GET /v1/media/uploads/{uploadId}`](#op-getupload) | Poll an upload until it is ingested or rejected | any key | | [`POST /v1/media/imports`](#op-importmedia) | Add media from a shared link or a stock library | `media.upload` | | [`GET /v1/media/stock`](#op-searchstockmedia) | Search the stock photo libraries this installation offers | `media.upload` | | [`GET /v1/media`](#op-listmedia) | The media library | any key | | [`GET /v1/media-facets`](#op-getmediafacets) | Folders and tags of the library with counts, and how many files are unused or lack alt text | any key | | [`GET /v1/media/{assetId}`](#op-getmediaasset) | One asset with signed URLs for its thumbnail and original | any key | | [`PATCH /v1/media/{assetId}`](#op-updatemediaasset) | Change alt text, folder or tags | `media.manage` | | [`POST /v1/media/bulk-delete`](#op-bulkdeletemedia) | Delete assets that no scheduled or draft post uses | `media.manage` | | [`GET /v1/media/{assetId}/renditions`](#op-listmediarenditions) | Renditions of an asset per media profile, with status | any key | | [`POST /v1/media/{assetId}/alt-suggestion`](#op-suggestmediaalt) | Suggest alt text for an image from the image itself; nothing is saved | `media.manage` | | [`GET /v1/media/{assetId}/usage`](#op-getmediausage) | Posts that use an asset | any key | ## Operations ### Start an upload: a pending session (1 h) and where to send the bytes {#op-createupload} `POST /v1/media/uploads` Operation `createUpload`. Needs a key with the scope `media.upload`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreateUploadInput](#schema-createuploadinput) | Field | Type | Required | Description | |---|---|---|---| | `mime` | `"image/jpeg"` or `"image/png"` or `"image/webp"` or `"image/gif"` or `"image/avif"` or `"video/mp4"` or `"video/quicktime"` or `"video/webm"` or `"application/pdf"` or `"audio/mpeg"` or `"audio/mp4"` | yes | | | `size` | integer | yes | | | `sha256` | string | yes | | | `filename` | string or null | no | | | `brandId` | string (uuid) or null | no | | | `sourceAssetId` | string (uuid) | no | | | `clientRender` | [ClientRender](#schema-clientrender) | no | | Response `201`: [CreateUploadResult](#schema-createuploadresult). The session and the upload target Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`413 payload_too_large`](../errors.md#status-413), [`415 unsupported_media_type`](../errors.md#status-415), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/media/uploads" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "mime": "image/jpeg", "size": 0, "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "sourceAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "clientRender": { "v": 1, "tool": "string", "action": "as_is", "networks": [ "string" ], "facts": { "width": 0, "height": 0, "durationSeconds": 0, "frameRate": 0, "videoCodec": "string", "audioCodec": "string", "hdr": false }, "actions": [ "string" ], "timings": {} } }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/uploads", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "mime": "image/jpeg", "size": 0, "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "sourceAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "clientRender": { "v": 1, "tool": "string", "action": "as_is", "networks": [ "string" ], "facts": { "width": 0, "height": 0, "durationSeconds": 0, "frameRate": 0, "videoCodec": "string", "audioCodec": "string", "hdr": false }, "actions": [ "string" ], "timings": {} } }), }); const data = await res.json(); ``` ```json title="Response 201" { "upload": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "pending", "store": "fs", "declaredMime": "string", "declaredSize": 0, "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "expiresAt": "2026-10-21T09:00:00Z", "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "error": "string" }, "target": { "kind": "presigned", "method": "PUT", "url": "string", "headers": {} } } ``` ### The bytes of an upload whose target is `api`, streamed to storage with a bounded memory allowance {#op-uploadmediacontent} `PUT /v1/media/uploads/{uploadId}/content` Operation `uploadMediaContent`. Needs a key with the scope `media.upload`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `uploadId` | path | yes | string (uuid) | | Response `200`: [MediaUploadView](#schema-mediauploadview). The session Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`413 payload_too_large`](../errors.md#status-413), [`415 unsupported_media_type`](../errors.md#status-415), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X PUT "https://app.postbroad.com/v1/media/uploads//content" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/uploads//content", { method: "PUT", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "pending", "store": "fs", "declaredMime": "string", "declaredSize": 0, "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "expiresAt": "2026-10-21T09:00:00Z", "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "error": "string" } ``` ### Bind the stored bytes; the media container then ingests them {#op-completeupload} `POST /v1/media/uploads/{uploadId}/complete` Operation `completeUpload`. Needs a key with the scope `media.upload`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `uploadId` | path | yes | string (uuid) | | Response `200`: [MediaUploadView](#schema-mediauploadview) or [CompleteUploadDryRun](#schema-completeuploaddryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/media/uploads//complete" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/uploads//complete", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "pending", "store": "fs", "declaredMime": "string", "declaredSize": 0, "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "expiresAt": "2026-10-21T09:00:00Z", "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "error": "string" } ``` ### Poll an upload until it is ingested or rejected {#op-getupload} `GET /v1/media/uploads/{uploadId}` Operation `getUpload`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `uploadId` | path | yes | string (uuid) | | Response `200`: [MediaUploadView](#schema-mediauploadview). The session Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/media/uploads/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/uploads/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "pending", "store": "fs", "declaredMime": "string", "declaredSize": 0, "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "expiresAt": "2026-10-21T09:00:00Z", "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "error": "string" } ``` ### Add media from a shared link or a stock library {#op-importmedia} `POST /v1/media/imports` Operation `importMedia`. Needs a key with the scope `media.upload`. The file is read once through the safe fetch into the ordinary upload; the media worker checks and ingests it. Wait on the upload like any other. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [ImportMediaInput](#schema-importmediainput) | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) or null | no | | | `source` | object | yes | | Response `201`: [MediaUploadView](#schema-mediauploadview). The upload, received Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`413 payload_too_large`](../errors.md#status-413), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/media/imports" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "source": { "kind": "link", "url": "string" } }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/imports", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "source": { "kind": "link", "url": "string" } }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "pending", "store": "fs", "declaredMime": "string", "declaredSize": 0, "declaredSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "expiresAt": "2026-10-21T09:00:00Z", "mediaAssetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "error": "string" } ``` ### Search the stock photo libraries this installation offers {#op-searchstockmedia} `GET /v1/media/stock` Operation `searchStockMedia`. Needs a key with the scope `media.upload`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `q` | query | no | string | | | `provider` | query | no | `"unsplash"` or `"pexels"` | | | `page` | query | no | integer | | Response `200`: [StockSearch](#schema-stocksearch). Photos Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/media/stock" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/stock", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "providers": [ "unsplash" ], "results": [ { "provider": "unsplash", "id": "string", "description": "string", "thumbUrl": "string", "fullUrl": "string", "width": 0, "height": 0, "credit": { "name": "string", "url": "string" }, "sourceUrl": "string" } ] } ``` ### The media library {#op-listmedia} `GET /v1/media` Operation `listMedia`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `brandId` | query | no | string (uuid) | | | `kind` | query | no | `"image"` or `"video"` or `"document"` or `"audio"` | | | `folder` | query | no | string | | | `tag` | query | no | string | | | `missingAlt` | query | no | `"true"` or `"false"` | | | `unused` | query | no | `"true"` or `"false"` | | | `q` | query | no | string | | | `createdAfter` | query | no | string (date-time) | | Response `200`: [MediaAssetPage](#schema-mediaassetpage). A page of assets Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/media" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "image", "mime": "string", "sizeBytes": 0, "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "altText": "string", "folder": "string", "tags": [ "string" ], "width": 0, "height": 0, "durationMs": 0, "provenance": {}, "aiGenerated": false, "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "original": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "renditions": { "ready": 0, "pending": 0, "failed": 0 }, "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ], "nextCursor": "string" } ``` ### Folders and tags of the library with counts, and how many files are unused or lack alt text {#op-getmediafacets} `GET /v1/media-facets` Operation `getMediaFacets`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | query | no | string (uuid) | | Response `200`: [MediaFacets](#schema-mediafacets). The facets Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/media-facets" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media-facets", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "total": 0, "unused": 0, "missingAlt": 0, "folders": [ { "name": "string", "count": 0 } ], "tags": [ { "name": "string", "count": 0 } ] } ``` ### One asset with signed URLs for its thumbnail and original {#op-getmediaasset} `GET /v1/media/{assetId}` Operation `getMediaAsset`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `assetId` | path | yes | string (uuid) | | Response `200`: [MediaAssetView](#schema-mediaassetview). The asset Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/media/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "image", "mime": "string", "sizeBytes": 0, "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "altText": "string", "folder": "string", "tags": [ "string" ], "width": 0, "height": 0, "frameCount": 0, "durationMs": 0, "provenance": {}, "aiGenerated": false, "canCrop": false, "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "original": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "renditions": { "ready": 0, "pending": 0, "failed": 0 }, "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Change alt text, folder or tags {#op-updatemediaasset} `PATCH /v1/media/{assetId}` Operation `updateMediaAsset`. Needs a key with the scope `media.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `assetId` | path | yes | string (uuid) | | Request body: [UpdateMediaAssetInput](#schema-updatemediaassetinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `altText` | string or null | no | | | `folder` | string or null | no | | | `tags` | string[] | no | | Response `200`: [MediaAssetView](#schema-mediaassetview) or [UpdateMediaAssetDryRun](#schema-updatemediaassetdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/media/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "altText": "string", "folder": "string", "tags": [ "string" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "altText": "string", "folder": "string", "tags": [ "string" ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "image", "mime": "string", "sizeBytes": 0, "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "filename": "string", "altText": "string", "folder": "string", "tags": [ "string" ], "width": 0, "height": 0, "frameCount": 0, "durationMs": 0, "provenance": {}, "aiGenerated": false, "canCrop": false, "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "original": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "renditions": { "ready": 0, "pending": 0, "failed": 0 }, "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Delete assets that no scheduled or draft post uses {#op-bulkdeletemedia} `POST /v1/media/bulk-delete` Operation `bulkDeleteMedia`. Needs a key with the scope `media.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [BulkDeleteMediaInput](#schema-bulkdeletemediainput) | Field | Type | Required | Description | |---|---|---|---| | `assetIds` | string (uuid)[] | yes | | Response `200`: [BulkDeleteMediaResult](#schema-bulkdeletemediaresult) or [BulkDeleteMediaDryRun](#schema-bulkdeletemediadryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/media/bulk-delete" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "assetIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media/bulk-delete", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "assetIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "deleted": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "inUse": [ { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "posts": 0 } ] } ``` ### Renditions of an asset per media profile, with status {#op-listmediarenditions} `GET /v1/media/{assetId}/renditions` Operation `listMediaRenditions`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `assetId` | path | yes | string (uuid) | | Response `200`: [MediaRenditionList](#schema-mediarenditionlist). The renditions Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/media//renditions" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media//renditions", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "profileName": "string", "profileHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "status": "queued", "mime": "string", "width": 0, "height": 0, "durationMs": 0, "sizeBytes": 0, "error": "string", "url": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" } } ] } ``` ### Suggest alt text for an image from the image itself; nothing is saved {#op-suggestmediaalt} `POST /v1/media/{assetId}/alt-suggestion` Operation `suggestMediaAlt`. Needs a key with the scope `media.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `assetId` | path | yes | string (uuid) | | Response `200`: [AltSuggestion](#schema-altsuggestion). The suggestion Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`415 unsupported_media_type`](../errors.md#status-415), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 budget_exhausted`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/media//alt-suggestion" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media//alt-suggestion", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "suggestion": "string", "model": "string" } ``` ### Posts that use an asset {#op-getmediausage} `GET /v1/media/{assetId}/usage` Operation `getMediaUsage`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `assetId` | path | yes | string (uuid) | | Response `200`: [MediaUsage](#schema-mediausage). The posts Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/media//usage" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/media//usage", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "assetId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "posts": [ { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionNo": 0, "state": "draft", "excerpt": "string" } ] } ``` ## Schemas ### AltSuggestion {#schema-altsuggestion} | Field | Type | Required | Description | |---|---|---|---| | `assetId` | string (uuid) | yes | | | `suggestion` | string | yes | | | `model` | string or null | yes | | ### BulkDeleteMediaDryRun {#schema-bulkdeletemediadryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"bulkDeleteMedia"` | yes | | ### BulkDeleteMediaInput {#schema-bulkdeletemediainput} | Field | Type | Required | Description | |---|---|---|---| | `assetIds` | string (uuid)[] | yes | | ### BulkDeleteMediaResult {#schema-bulkdeletemediaresult} | Field | Type | Required | Description | |---|---|---|---| | `deleted` | string (uuid)[] | yes | | | `inUse` | object[] | yes | | ### ClientRender {#schema-clientrender} | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `tool` | string | yes | | | `action` | `"as_is"` or `"remux"` or `"convert"` | yes | | | `networks` | string[] | yes | | | `facts` | object | yes | | | `actions` | string[] | yes | | | `timings` | map of integer | yes | | ### CompleteUploadDryRun {#schema-completeuploaddryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"completeUpload"` | yes | | ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### CreateUploadDryRun {#schema-createuploaddryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"createUpload"` | yes | | ### CreateUploadInput {#schema-createuploadinput} | Field | Type | Required | Description | |---|---|---|---| | `mime` | `"image/jpeg"` or `"image/png"` or `"image/webp"` or `"image/gif"` or `"image/avif"` or `"video/mp4"` or `"video/quicktime"` or `"video/webm"` or `"application/pdf"` or `"audio/mpeg"` or `"audio/mp4"` | yes | | | `size` | integer | yes | | | `sha256` | string | yes | | | `filename` | string or null | no | | | `brandId` | string (uuid) or null | no | | | `sourceAssetId` | string (uuid) | no | | | `clientRender` | [ClientRender](#schema-clientrender) | no | | ### CreateUploadResult {#schema-createuploadresult} | Field | Type | Required | Description | |---|---|---|---| | `upload` | [MediaUploadView](#schema-mediauploadview) | yes | | | `target` | [UploadTarget](#schema-uploadtarget) | yes | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### ImportMediaDryRun {#schema-importmediadryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"importMedia"` | yes | | ### ImportMediaInput {#schema-importmediainput} | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) or null | no | | | `source` | object | yes | | ### MediaAssetPage {#schema-mediaassetpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [MediaAssetView](#schema-mediaassetview)[] | yes | | | `nextCursor` | string or null | yes | | ### MediaAssetView {#schema-mediaassetview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) or null | yes | | | `workspaceId` | string (uuid) or null | yes | | | `kind` | [MediaKind](#schema-mediakind) | yes | | | `mime` | string | yes | | | `sizeBytes` | integer | yes | | | `sha256` | string | yes | | | `filename` | string or null | yes | | | `altText` | string or null | yes | | | `folder` | string or null | yes | | | `tags` | string[] | yes | | | `width` | integer or null | yes | | | `height` | integer or null | yes | | | `frameCount` | integer or null | no | | | `durationMs` | integer or null | yes | | | `provenance` | map of any | yes | | | `aiGenerated` | boolean | yes | | | `canCrop` | boolean | no | | | `thumbnail` | [SignedUrl](#schema-signedurl) or null | yes | | | `original` | [SignedUrl](#schema-signedurl) or null | yes | | | `renditions` | object | yes | | | `createdAt` | string (date-time) | yes | | | `revision` | integer | yes | | ### MediaFacets {#schema-mediafacets} | Field | Type | Required | Description | |---|---|---|---| | `total` | integer | yes | | | `unused` | integer | yes | | | `missingAlt` | integer | yes | | | `folders` | object[] | yes | | | `tags` | object[] | yes | | ### MediaKind {#schema-mediakind} Type: `"image"` or `"video"` or `"document"` or `"audio"` ### MediaRenditionList {#schema-mediarenditionlist} | Field | Type | Required | Description | |---|---|---|---| | `data` | [MediaRenditionView](#schema-mediarenditionview)[] | yes | | ### MediaRenditionView {#schema-mediarenditionview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `profileName` | string or null | yes | | | `profileHash` | string | yes | | | `status` | `"queued"` or `"running"` or `"ready"` or `"failed"` or `"evicted"` | yes | | | `mime` | string or null | yes | | | `width` | integer or null | yes | | | `height` | integer or null | yes | | | `durationMs` | integer or null | yes | | | `sizeBytes` | integer or null | yes | | | `error` | string or null | yes | | | `url` | [SignedUrl](#schema-signedurl) or null | yes | | ### MediaUploadView {#schema-mediauploadview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) or null | yes | | | `status` | `"pending"` or `"uploaded"` or `"ingested"` or `"rejected"` or `"expired"` | yes | | | `store` | `"fs"` or `"s3"` | yes | | | `declaredMime` | string | yes | | | `declaredSize` | integer | yes | | | `declaredSha256` | string | yes | | | `filename` | string or null | yes | | | `expiresAt` | string (date-time) | yes | | | `mediaAssetId` | string (uuid) or null | yes | | | `error` | string or null | yes | | ### MediaUsage {#schema-mediausage} | Field | Type | Required | Description | |---|---|---|---| | `assetId` | string (uuid) | yes | | | `posts` | object[] | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### SignedUrl {#schema-signedurl} A signed media URL. Bearer access until it expires. In an answer that carries an ETag the URL is minted per fixed window: the expiry is rounded up to the next full hour plus one hour, and the signature is the same within that window, so the ETag changes only when the content does and polling with If-None-Match still gets 304. | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `expiresAt` | string (date-time) | yes | | ### StockSearch {#schema-stocksearch} | Field | Type | Required | Description | |---|---|---|---| | `providers` | `"unsplash"` or `"pexels"`[] | yes | | | `results` | object[] | yes | | ### UpdateMediaAssetDryRun {#schema-updatemediaassetdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"updateMediaAsset"` | yes | | ### UpdateMediaAssetInput {#schema-updatemediaassetinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `altText` | string or null | no | | | `folder` | string or null | no | | | `tags` | string[] | no | | ### UploadTarget {#schema-uploadtarget} Type: object ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Brands Brands with their settings and rules, the accounts a post of a brand can go to, posting slots and link shorteners. 19 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/brands`](#op-listbrands) | Brands the caller can see (also the brand switcher) | any key | | [`POST /v1/brands`](#op-createbrand) | Create a brand | `brand.create` | | [`POST /v1/brands/from-url/preview`](#op-previewbrandfromurl) | Preview editable brand details from a website | `brand.create` | | [`POST /v1/brands/from-url`](#op-createbrandfromurl) | Create a brand from a website address | `brand.create` | | [`GET /v1/brands/{brandId}`](#op-getbrand) | A brand with its settings, rules and networks | any key | | [`PATCH /v1/brands/{brandId}`](#op-updatebrand) | Change a brand's settings, voice or rules | `brand.manage` | | [`GET /v1/brands/{brandId}/destinations`](#op-getbranddestinations) | Networks and accounts a post of this brand can go to, with capabilities and options | any key | | [`GET /v1/brand-networks/{brandNetworkId}`](#op-getbrandnetwork) | A brand's presence on one network: defaults, link policy, hashtag sets | any key | | [`PATCH /v1/brand-networks/{brandNetworkId}`](#op-updatebrandnetwork) | Change a brand network's defaults, link policy, hashtag sets or signature | `brand.manage` | | [`GET /v1/brand-networks/{brandNetworkId}/slots`](#op-listslots) | Weekly posting slots of a brand network and its accounts | any key | | [`PUT /v1/brand-networks/{brandNetworkId}/slots`](#op-replaceslots) | Replace the weekly posting slots of a brand network | `brand.manage` | | [`GET /v1/channels`](#op-listchannels) | Connected accounts per brand, with health (the core Connections table) | any key | | [`GET /v1/channels/{channelId}`](#op-getchannel) | One channel with its account, destination and connection health | any key | | [`PATCH /v1/channels/{channelId}`](#op-updatechannel) | Rename a channel or choose its preferred connection | `channel.manage` | | [`GET /v1/channels/{channelId}/disconnect-preview`](#op-previewdisconnect) | What stops if this channel is disconnected | any key | | [`POST /v1/channels/{channelId}/disconnect`](#op-disconnectchannel) | Disconnect a channel; scheduled posts wait for a reconnect | `channel.manage` | | [`GET /v1/brands/{brandId}/link-shortener`](#op-getlinkshortener) | The brand's link shortener and the providers on offer | `content.read` | | [`PUT /v1/brands/{brandId}/link-shortener`](#op-setlinkshortener) | Connect a link shortener to the brand, or change it | `brand.settings` | | [`DELETE /v1/brands/{brandId}/link-shortener`](#op-removelinkshortener) | Disconnect the brand's link shortener and forget its key | `brand.settings` | ## Operations ### Brands the caller can see (also the brand switcher) {#op-listbrands} `GET /v1/brands` Operation `listBrands`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `q` | query | no | string | | Response `200`: [BrandPage](#schema-brandpage). A page of brands Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "slug": "northwind", "logoUrl": "string", "networks": [ "facebook" ], "needsAttention": 0 } ], "nextCursor": "string" } ``` ### Create a brand {#op-createbrand} `POST /v1/brands` Operation `createBrand`. Needs a key with the scope `brand.create`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreateBrandInput](#schema-createbrandinput) | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | | `slug` | string | no | | | `workspaceId` | string (uuid) | no | | | `timezone` | string | yes | | | `language` | string | no | | | `voice` | string or null | no | | | `logoUrl` | string (uri) or null | no | | Response `201`: [BrandView](#schema-brandview). The new brand Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/brands" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "slug": "northwind", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "timezone": "Europe/Riga", "language": "en", "voice": "string", "logoUrl": "https://example.invalid/post/1" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "name": "string", "slug": "northwind", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "timezone": "Europe/Riga", "language": "en", "voice": "string", "logoUrl": "https://example.invalid/post/1" }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "slug": "northwind", "logoUrl": "string", "timezone": "Europe/Riga", "language": "en", "voice": "string", "signature": "string", "utmRules": {}, "linkDomain": "string", "approvalPolicy": "none", "xSpendCapEnabled": false, "xSpendCapCents": 0, "contentRating": "string", "rules": { "requiredDisclosures": [ "string" ], "bannedWords": [ "string" ], "bannedClaims": [ "string" ], "linkRules": {} }, "missedSlotGraceMinutes": 0, "enabled": false, "actions": { "canRead": false, "canSubmit": false, "canApprove": false, "canCommentInternal": false, "canManagePolicy": false }, "networks": [ { "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "accountCount": 0 } ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Preview editable brand details from a website {#op-previewbrandfromurl} `POST /v1/brands/from-url/preview` Operation `previewBrandFromUrl`. Needs a key with the scope `brand.create`. One safeFetch HTML read under ten seconds, capped at 512 KiB. Logo, RSS and sitemap links are same-origin candidates, never followed. No brand is created until the person accepts exact fields. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [PreviewBrandFromUrlInput](#schema-previewbrandfromurlinput) | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `workspaceId` | string (uuid) | no | | Response `200`: [BrandWebsitePreview](#schema-brandwebsitepreview). Editable website metadata Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/brands/from-url/preview" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.invalid/post/1", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands/from-url/preview", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://example.invalid/post/1", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" }), }); const data = await res.json(); ``` ```json title="Response 200" { "url": "https://example.invalid/post/1", "suggested": { "name": "string", "description": "string", "logoUrl": "https://example.invalid/post/1", "language": "en", "timezone": "Europe/Riga", "timezoneSource": "metadata", "rssUrls": [ "https://example.invalid/post/1" ], "sitemapUrls": [ "https://example.invalid/post/1" ] } } ``` ### Create a brand from a website address {#op-createbrandfromurl} `POST /v1/brands/from-url` Operation `createBrandFromUrl`. Needs a key with the scope `brand.create`. Create using the exact accepted metadata after preview. No website is fetched during acceptance; ordinary brand creation authorization and allowances apply. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreateBrandFromUrlInput](#schema-createbrandfromurlinput) | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `workspaceId` | string (uuid) | no | | | `timezone` | string | no | | | `accepted` | object | yes | | Response `201`: [BrandFromUrlResult](#schema-brandfromurlresult). The new brand and what was read Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/brands/from-url" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.invalid/post/1", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "timezone": "Europe/Riga", "accepted": { "name": "string", "timezone": "Europe/Riga", "language": "en" } }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands/from-url", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://example.invalid/post/1", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "timezone": "Europe/Riga", "accepted": { "name": "string", "timezone": "Europe/Riga", "language": "en" } }), }); const data = await res.json(); ``` ```json title="Response 201" { "brand": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "slug": "northwind", "logoUrl": "string", "timezone": "Europe/Riga", "language": "en", "voice": "string", "utmRules": {}, "linkDomain": "string", "approvalPolicy": "none", "xSpendCapEnabled": false, "xSpendCapCents": 0, "contentRating": "string", "rules": { "requiredDisclosures": [ "string" ], "bannedWords": [ "string" ], "bannedClaims": [ "string" ], "linkRules": {} }, "missedSlotGraceMinutes": 0, "enabled": false, "networks": [ { "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "accountCount": 0 } ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0 }, "extracted": { "name": "string", "description": "string", "language": "string", "logoFound": false, "voiceSuggestion": "string" } } ``` ### A brand with its settings, rules and networks {#op-getbrand} `GET /v1/brands/{brandId}` Operation `getBrand`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Response `200`: [BrandView](#schema-brandview). The brand Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "slug": "northwind", "logoUrl": "string", "timezone": "Europe/Riga", "language": "en", "voice": "string", "signature": "string", "utmRules": {}, "linkDomain": "string", "approvalPolicy": "none", "xSpendCapEnabled": false, "xSpendCapCents": 0, "contentRating": "string", "rules": { "requiredDisclosures": [ "string" ], "bannedWords": [ "string" ], "bannedClaims": [ "string" ], "linkRules": {} }, "missedSlotGraceMinutes": 0, "enabled": false, "actions": { "canRead": false, "canSubmit": false, "canApprove": false, "canCommentInternal": false, "canManagePolicy": false }, "networks": [ { "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "accountCount": 0 } ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Change a brand's settings, voice or rules {#op-updatebrand} `PATCH /v1/brands/{brandId}` Operation `updateBrand`. Needs a key with the scope `brand.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Request body: [UpdateBrandInput](#schema-updatebrandinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `name` | string | no | | | `slug` | string | no | | | `timezone` | string | no | | | `language` | string | no | | | `voice` | string or null | no | | | `logoUrl` | string (uri) or null | no | | | `signature` | string or null | no | | | `utmRules` | map of string | no | | | `linkDomain` | string or null | no | | | `approvalPolicy` | `"none"` or `"internal"` or `"client"` or `"two_step"` | no | | | `xSpendCapEnabled` | boolean | no | | | `xSpendCapCents` | integer or null | no | | | `contentRating` | string or null | no | | | `rules` | object | no | | | `missedSlotGraceMinutes` | integer | no | | | `enabled` | boolean | no | | Response `200`: [BrandUpdateResult](#schema-brandupdateresult) or [UpdateBrandDryRun](#schema-updatebranddryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/brands/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "name": "string", "slug": "northwind", "timezone": "Europe/Riga", "language": "en", "voice": "string", "logoUrl": "https://example.invalid/post/1", "signature": "string", "utmRules": {}, "linkDomain": "string", "approvalPolicy": "none", "xSpendCapEnabled": false, "xSpendCapCents": 0, "contentRating": "string", "rules": {}, "missedSlotGraceMinutes": 0, "enabled": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "name": "string", "slug": "northwind", "timezone": "Europe/Riga", "language": "en", "voice": "string", "logoUrl": "https://example.invalid/post/1", "signature": "string", "utmRules": {}, "linkDomain": "string", "approvalPolicy": "none", "xSpendCapEnabled": false, "xSpendCapCents": 0, "contentRating": "string", "rules": {}, "missedSlotGraceMinutes": 0, "enabled": false }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "slug": "northwind", "logoUrl": "string", "timezone": "Europe/Riga", "language": "en", "voice": "string", "signature": "string", "utmRules": {}, "linkDomain": "string", "approvalPolicy": "none", "xSpendCapEnabled": false, "xSpendCapCents": 0, "contentRating": "string", "rules": { "requiredDisclosures": [ "string" ], "bannedWords": [ "string" ], "bannedClaims": [ "string" ], "linkRules": {} }, "missedSlotGraceMinutes": 0, "enabled": false, "actions": { "canRead": false, "canSubmit": false, "canApprove": false, "canCommentInternal": false, "canManagePolicy": false }, "networks": [ { "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "accountCount": 0 } ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0, "alreadyDispatching": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ``` ### Networks and accounts a post of this brand can go to, with capabilities and options {#op-getbranddestinations} `GET /v1/brands/{brandId}/destinations` Operation `getBrandDestinations`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Response `200`: [BrandDestinations](#schema-branddestinations). Destinations by network Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands//destinations" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//destinations", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "networks": [ { "network": "facebook", "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "textLimits": { "maxChars": 0, "counting": "string" }, "optionsSchema": {}, "defaultOptions": {}, "accounts": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "handle": "string", "displayName": "string", "avatarUrl": "string", "destinationKind": null, "destinationName": "string", "health": null, "capabilities": { "publish": false, "threads": false, "firstComment": false, "statusLookup": false, "readback": false, "media": [] }, "verificationLevel": null } ] } ] } ``` ### A brand's presence on one network: defaults, link policy, hashtag sets {#op-getbrandnetwork} `GET /v1/brand-networks/{brandNetworkId}` Operation `getBrandNetwork`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandNetworkId` | path | yes | string (uuid) | | Response `200`: [BrandNetworkView](#schema-brandnetworkview). The brand network Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brand-networks/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brand-networks/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "defaultSettings": {}, "voiceTweaks": "string", "hashtagSets": [ { "name": "string", "tags": [ "string" ] } ], "linkPolicy": {}, "signature": { "mode": "brand", "text": "string" }, "revision": 0 } ``` ### Change a brand network's defaults, link policy, hashtag sets or signature {#op-updatebrandnetwork} `PATCH /v1/brand-networks/{brandNetworkId}` Operation `updateBrandNetwork`. Needs a key with the scope `brand.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandNetworkId` | path | yes | string (uuid) | | Request body: [UpdateBrandNetworkInput](#schema-updatebrandnetworkinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `defaultSettings` | map of any | no | | | `voiceTweaks` | string or null | no | | | `hashtagSets` | object[] | no | | | `linkPolicy` | map of any | no | | | `signature` | [NetworkSignatureInput](#schema-networksignatureinput) | no | | Response `200`: [BrandNetworkView](#schema-brandnetworkview) or [UpdateBrandNetworkDryRun](#schema-updatebrandnetworkdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/brand-networks/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "defaultSettings": {}, "voiceTweaks": "string", "hashtagSets": [ { "name": "string", "tags": [ "string" ] } ], "linkPolicy": {}, "signature": { "mode": "brand" } }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brand-networks/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "defaultSettings": {}, "voiceTweaks": "string", "hashtagSets": [ { "name": "string", "tags": [ "string" ] } ], "linkPolicy": {}, "signature": { "mode": "brand" } }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "defaultSettings": {}, "voiceTweaks": "string", "hashtagSets": [ { "name": "string", "tags": [ "string" ] } ], "linkPolicy": {}, "signature": { "mode": "brand", "text": "string" }, "revision": 0 } ``` ### Weekly posting slots of a brand network and its accounts {#op-listslots} `GET /v1/brand-networks/{brandNetworkId}/slots` Operation `listSlots`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandNetworkId` | path | yes | string (uuid) | | Response `200`: [SlotList](#schema-slotlist). The slots Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brand-networks//slots" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brand-networks//slots", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "weekday": 1, "localTime": "09:30", "tz": "Europe/Riga" } ] } ``` ### Replace the weekly posting slots of a brand network {#op-replaceslots} `PUT /v1/brand-networks/{brandNetworkId}/slots` Operation `replaceSlots`. Needs a key with the scope `brand.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandNetworkId` | path | yes | string (uuid) | | Request body: [ReplaceSlotsInput](#schema-replaceslotsinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | no | | | `slots` | object[] | yes | | Response `200`: [SlotList](#schema-slotlist) or [ReplaceSlotsDryRun](#schema-replaceslotsdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PUT "https://app.postbroad.com/v1/brand-networks//slots" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "slots": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "weekday": 1, "localTime": "09:30", "tz": "Europe/Riga" } ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brand-networks//slots", { method: "PUT", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "slots": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "weekday": 1, "localTime": "09:30", "tz": "Europe/Riga" } ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "weekday": 1, "localTime": "09:30", "tz": "Europe/Riga" } ] } ``` ### Connected accounts per brand, with health (the core Connections table) {#op-listchannels} `GET /v1/channels` Operation `listChannels`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `brandId` | query | no | string (uuid) | | | `network` | query | no | `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` | | | `health` | query | no | `"healthy"` or `"expiring"` or `"broken"` or `"missing_permission"` or `"disconnected"` | | | `needsAttention` | query | no | `"true"` or `"false"` | | Response `200`: [ChannelPage](#schema-channelpage). A page of channels Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/channels" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/channels", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "displayName": "string", "status": "active", "account": { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "handle": "string", "displayName": "string", "avatarUrl": "string", "instanceHost": "string", "kind": "string" }, "destination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "feed", "name": "string", "gone": false }, "connection": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "health": "healthy", "healthReason": "string", "appKind": "ours", "platformAppId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accessExpiresAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "postsVia": "api" }, "verificationLevel": "full", "evidenceLadder": [ "none" ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ], "nextCursor": "string" } ``` ### One channel with its account, destination and connection health {#op-getchannel} `GET /v1/channels/{channelId}` Operation `getChannel`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `channelId` | path | yes | string (uuid) | | Response `200`: [ChannelView](#schema-channelview). The channel Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/channels/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/channels/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "displayName": "string", "status": "active", "account": { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "handle": "string", "displayName": "string", "avatarUrl": "string", "instanceHost": "string", "kind": "string" }, "destination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "feed", "name": "string", "gone": false }, "connection": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "health": "healthy", "healthReason": "string", "appKind": "ours", "platformAppId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accessExpiresAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "postsVia": "api" }, "verificationLevel": "full", "evidenceLadder": [ "none" ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Rename a channel or choose its preferred connection {#op-updatechannel} `PATCH /v1/channels/{channelId}` Operation `updateChannel`. Needs a key with the scope `channel.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `channelId` | path | yes | string (uuid) | | Request body: [UpdateChannelInput](#schema-updatechannelinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `displayName` | string | no | | | `preferredConnectionId` | string (uuid) | no | | | `status` | `"active"` or `"paused"` | no | | Response `200`: [ChannelView](#schema-channelview) or [UpdateChannelDryRun](#schema-updatechanneldryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/channels/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "displayName": "string", "preferredConnectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "active" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/channels/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "displayName": "string", "preferredConnectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "active" }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "displayName": "string", "status": "active", "account": { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "handle": "string", "displayName": "string", "avatarUrl": "string", "instanceHost": "string", "kind": "string" }, "destination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "feed", "name": "string", "gone": false }, "connection": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "health": "healthy", "healthReason": "string", "appKind": "ours", "platformAppId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accessExpiresAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "postsVia": "api" }, "verificationLevel": "full", "evidenceLadder": [ "none" ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### What stops if this channel is disconnected {#op-previewdisconnect} `GET /v1/channels/{channelId}/disconnect-preview` Operation `previewDisconnect`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `channelId` | path | yes | string (uuid) | | Response `200`: [DisconnectPreview](#schema-disconnectpreview). The consequences Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/channels//disconnect-preview" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/channels//disconnect-preview", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "waitingPosts": 0, "nextScheduledAt": "2026-10-21T09:00:00Z", "otherChannelsOnLogin": 0, "revokesAtNetwork": false, "manualRevokeHint": "string" } ``` ### Disconnect a channel; scheduled posts wait for a reconnect {#op-disconnectchannel} `POST /v1/channels/{channelId}/disconnect` Operation `disconnectChannel`. Needs a key with the scope `channel.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `channelId` | path | yes | string (uuid) | | Request body: [DisconnectInput](#schema-disconnectinput) | Field | Type | Required | Description | |---|---|---|---| | `revokeLogin` | boolean | no | | Response `200`: [DisconnectResult](#schema-disconnectresult) or [DisconnectPreview](#schema-disconnectpreview). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/channels//disconnect" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "revokeLogin": true }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/channels//disconnect", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "revokeLogin": true }), }); const data = await res.json(); ``` ```json title="Response 200" { "channel": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "displayName": "string", "status": "active", "account": { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "handle": "string", "displayName": "string", "avatarUrl": "string", "instanceHost": "string", "kind": "string" }, "destination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "feed", "name": "string", "gone": false }, "connection": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "health": "healthy", "healthReason": "string", "appKind": "ours", "platformAppId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accessExpiresAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "postsVia": "api" }, "verificationLevel": "full", "evidenceLadder": [ "none" ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0 }, "waiting": 0, "alreadyDispatching": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "sending", "claimedAt": "2026-10-21T09:00:00Z", "versionNo": 0 } ], "revokedAtNetwork": false } ``` ### The brand's link shortener and the providers on offer {#op-getlinkshortener} `GET /v1/brands/{brandId}/link-shortener` Operation `getLinkShortener`. Needs a key with the scope `content.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Response `200`: [LinkShortenerView](#schema-linkshortenerview). Shortener Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands//link-shortener" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//link-shortener", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "shortener": { "provider": "bitly", "domain": "string", "enabled": false, "keyLast4": "string", "lastError": "string" }, "providers": [ { "id": "bitly", "name": "string", "needsKey": false, "needsDomain": false } ] } ``` ### Connect a link shortener to the brand, or change it {#op-setlinkshortener} `PUT /v1/brands/{brandId}/link-shortener` Operation `setLinkShortener`. Needs a key with the scope `brand.settings`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Request body: [SetLinkShortenerInput](#schema-setlinkshortenerinput) | Field | Type | Required | Description | |---|---|---|---| | `provider` | [LinkShortenerProvider](#schema-linkshortenerprovider) | yes | | | `domain` | string or null | no | | | `enabled` | boolean | no | | | `apiKey` | string | no | | Response `200`: [LinkShortenerView](#schema-linkshortenerview). Shortener Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PUT "https://app.postbroad.com/v1/brands//link-shortener" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "provider": "bitly", "domain": "string", "enabled": true, "apiKey": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//link-shortener", { method: "PUT", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "provider": "bitly", "domain": "string", "enabled": true, "apiKey": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "shortener": { "provider": "bitly", "domain": "string", "enabled": false, "keyLast4": "string", "lastError": "string" }, "providers": [ { "id": "bitly", "name": "string", "needsKey": false, "needsDomain": false } ] } ``` ### Disconnect the brand's link shortener and forget its key {#op-removelinkshortener} `DELETE /v1/brands/{brandId}/link-shortener` Operation `removeLinkShortener`. Needs a key with the scope `brand.settings`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Response `200`: [LinkShortenerView](#schema-linkshortenerview). Shortener Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X DELETE "https://app.postbroad.com/v1/brands//link-shortener" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//link-shortener", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "shortener": { "provider": "bitly", "domain": "string", "enabled": false, "keyLast4": "string", "lastError": "string" }, "providers": [ { "id": "bitly", "name": "string", "needsKey": false, "needsDomain": false } ] } ``` ## Schemas ### BrandDestinations {#schema-branddestinations} | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) | yes | | | `networks` | [DestinationNetwork](#schema-destinationnetwork)[] | yes | | ### BrandFromUrlResult {#schema-brandfromurlresult} | Field | Type | Required | Description | |---|---|---|---| | `brand` | [BrandView](#schema-brandview) | yes | | | `extracted` | object | yes | | ### BrandNetworkView {#schema-brandnetworkview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `defaultSettings` | map of any | yes | | | `voiceTweaks` | string or null | yes | | | `hashtagSets` | object[] | yes | | | `linkPolicy` | map of any | yes | | | `signature` | [NetworkSignature](#schema-networksignature) | no | | | `revision` | integer | yes | | ### BrandPage {#schema-brandpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [BrandSummary](#schema-brandsummary)[] | yes | | | `nextCursor` | string or null | yes | | ### BrandSummary {#schema-brandsummary} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `workspaceId` | string (uuid) | yes | | | `name` | string | yes | | | `slug` | string | yes | | | `logoUrl` | string or null | yes | | | `networks` | [Network](#schema-network)[] | yes | | | `needsAttention` | integer | yes | | | `approvalPolicy` | `"none"` or `"internal"` or `"client"` or `"two_step"` | no | | | `verifiedActivity` | object | no | | | `actions` | object | no | | ### BrandUpdateResult {#schema-brandupdateresult} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `workspaceId` | string (uuid) | yes | | | `name` | string | yes | | | `slug` | string | yes | | | `logoUrl` | string or null | yes | | | `timezone` | string | yes | | | `language` | string | yes | | | `voice` | string or null | yes | | | `signature` | string or null | no | | | `utmRules` | map of string | yes | | | `linkDomain` | string or null | yes | | | `approvalPolicy` | `"none"` or `"internal"` or `"client"` or `"two_step"` | yes | | | `xSpendCapEnabled` | boolean | yes | | | `xSpendCapCents` | integer or null | yes | | | `contentRating` | string or null | yes | | | `rules` | object | yes | | | `missedSlotGraceMinutes` | integer | yes | | | `enabled` | boolean | yes | | | `actions` | object | no | | | `networks` | object[] | yes | | | `createdAt` | string (date-time) | yes | | | `revision` | integer | yes | | | `alreadyDispatching` | string (uuid)[] | no | | ### BrandView {#schema-brandview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `workspaceId` | string (uuid) | yes | | | `name` | string | yes | | | `slug` | string | yes | | | `logoUrl` | string or null | yes | | | `timezone` | string | yes | | | `language` | string | yes | | | `voice` | string or null | yes | | | `signature` | string or null | no | | | `utmRules` | map of string | yes | | | `linkDomain` | string or null | yes | | | `approvalPolicy` | `"none"` or `"internal"` or `"client"` or `"two_step"` | yes | | | `xSpendCapEnabled` | boolean | yes | | | `xSpendCapCents` | integer or null | yes | | | `contentRating` | string or null | yes | | | `rules` | object | yes | | | `missedSlotGraceMinutes` | integer | yes | | | `enabled` | boolean | yes | | | `actions` | object | no | | | `networks` | object[] | yes | | | `createdAt` | string (date-time) | yes | | | `revision` | integer | yes | | ### BrandWebsitePreview {#schema-brandwebsitepreview} | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `suggested` | object | yes | | ### ChannelPage {#schema-channelpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [ChannelView](#schema-channelview)[] | yes | | | `nextCursor` | string or null | yes | | ### ChannelView {#schema-channelview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `brandNetworkId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `displayName` | string | yes | | | `status` | `"active"` or `"paused"` or `"disconnected"` | yes | | | `account` | object | yes | | | `destination` | object | yes | | | `connection` | object | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | | `evidenceLadder` | [EvidenceMethod](#schema-evidencemethod)[] | yes | | | `createdAt` | string (date-time) | yes | | | `revision` | integer | yes | | ### ConnectionHealth {#schema-connectionhealth} Type: `"healthy"` or `"expiring"` or `"broken"` or `"missing_permission"` or `"disconnected"` ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### CreateBrandDryRun {#schema-createbranddryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"createBrand"` | yes | | ### CreateBrandFromUrlDryRun {#schema-createbrandfromurldryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"createBrandFromUrl"` | yes | | ### CreateBrandFromUrlInput {#schema-createbrandfromurlinput} | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `workspaceId` | string (uuid) | no | | | `timezone` | string | no | | | `accepted` | object | yes | | ### CreateBrandInput {#schema-createbrandinput} | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | | `slug` | string | no | | | `workspaceId` | string (uuid) | no | | | `timezone` | string | yes | | | `language` | string | no | | | `voice` | string or null | no | | | `logoUrl` | string (uri) or null | no | | ### DestinationAccount {#schema-destinationaccount} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `handle` | string or null | yes | | | `displayName` | string | yes | | | `avatarUrl` | string or null | yes | | | `destinationKind` | [DestinationKind](#schema-destinationkind) | yes | | | `destinationName` | string | yes | | | `health` | [ConnectionHealth](#schema-connectionhealth) | yes | | | `capabilities` | object | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | | `creator` | object or null | no | | | `subreddit` | object or null | no | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DestinationNetwork {#schema-destinationnetwork} | Field | Type | Required | Description | |---|---|---|---| | `network` | [Network](#schema-network) | yes | | | `brandNetworkId` | string (uuid) | yes | | | `name` | string | yes | | | `textLimits` | object | yes | | | `optionsSchema` | map of any | yes | | | `defaultOptions` | map of any | yes | | | `accounts` | [DestinationAccount](#schema-destinationaccount)[] | yes | | ### DisconnectInput {#schema-disconnectinput} | Field | Type | Required | Description | |---|---|---|---| | `revokeLogin` | boolean | no | | ### DisconnectPreview {#schema-disconnectpreview} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `waitingPosts` | integer | yes | | | `nextScheduledAt` | string (date-time) or null | yes | | | `otherChannelsOnLogin` | integer | yes | | | `revokesAtNetwork` | boolean | yes | | | `manualRevokeHint` | string or null | yes | | ### DisconnectResult {#schema-disconnectresult} | Field | Type | Required | Description | |---|---|---|---| | `channel` | [ChannelView](#schema-channelview) | yes | | | `waiting` | integer | yes | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | yes | | | `revokedAtNetwork` | boolean | yes | | ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### EvidenceMethod {#schema-evidencemethod} Type: `"none"` or `"provider_ack"` or `"status_endpoint"` or `"readback_match"` or `"public_fetch"` or `"human_confirmed"` ### LinkShortener {#schema-linkshortener} | Field | Type | Required | Description | |---|---|---|---| | `provider` | [LinkShortenerProvider](#schema-linkshortenerprovider) | yes | | | `domain` | string or null | yes | | | `enabled` | boolean | yes | | | `keyLast4` | string or null | yes | | | `lastError` | string or null | yes | | ### LinkShortenerProvider {#schema-linkshortenerprovider} Type: `"bitly"` or `"rebrandly"` or `"dub"` or `"shortio"` or `"postbroad"` ### LinkShortenerView {#schema-linkshortenerview} | Field | Type | Required | Description | |---|---|---|---| | `shortener` | [LinkShortener](#schema-linkshortener) or null | yes | | | `providers` | object[] | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### NetworkSignature {#schema-networksignature} | Field | Type | Required | Description | |---|---|---|---| | `mode` | `"brand"` or `"off"` or `"custom"` | yes | | | `text` | string or null | yes | | ### NetworkSignatureInput {#schema-networksignatureinput} | Field | Type | Required | Description | |---|---|---|---| | `mode` | `"brand"` or `"off"` or `"custom"` | yes | | | `text` | string or null | no | | ### PreflightResult {#schema-preflightresult} Type: object ### PreviewBrandFromUrlInput {#schema-previewbrandfromurlinput} | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `workspaceId` | string (uuid) | no | | ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### ReplaceSlotsDryRun {#schema-replaceslotsdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"replaceSlots"` | yes | | ### ReplaceSlotsInput {#schema-replaceslotsinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | no | | | `slots` | object[] | yes | | ### SetLinkShortenerInput {#schema-setlinkshortenerinput} | Field | Type | Required | Description | |---|---|---|---| | `provider` | [LinkShortenerProvider](#schema-linkshortenerprovider) | yes | | | `domain` | string or null | no | | | `enabled` | boolean | no | | | `apiKey` | string | no | | ### Slot {#schema-slot} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `channelId` | string (uuid) or null | yes | | | `weekday` | integer | yes | | | `localTime` | string | yes | | | `tz` | string | yes | | ### SlotList {#schema-slotlist} | Field | Type | Required | Description | |---|---|---|---| | `data` | [Slot](#schema-slot)[] | yes | | ### UpdateBrandDryRun {#schema-updatebranddryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"updateBrand"` | yes | | ### UpdateBrandInput {#schema-updatebrandinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `name` | string | no | | | `slug` | string | no | | | `timezone` | string | no | | | `language` | string | no | | | `voice` | string or null | no | | | `logoUrl` | string (uri) or null | no | | | `signature` | string or null | no | | | `utmRules` | map of string | no | | | `linkDomain` | string or null | no | | | `approvalPolicy` | `"none"` or `"internal"` or `"client"` or `"two_step"` | no | | | `xSpendCapEnabled` | boolean | no | | | `xSpendCapCents` | integer or null | no | | | `contentRating` | string or null | no | | | `rules` | object | no | | | `missedSlotGraceMinutes` | integer | no | | | `enabled` | boolean | no | | ### UpdateBrandNetworkDryRun {#schema-updatebrandnetworkdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"updateBrandNetwork"` | yes | | ### UpdateBrandNetworkInput {#schema-updatebrandnetworkinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `defaultSettings` | map of any | no | | | `voiceTweaks` | string or null | no | | | `hashtagSets` | object[] | no | | | `linkPolicy` | map of any | no | | | `signature` | [NetworkSignatureInput](#schema-networksignatureinput) | no | | ### UpdateChannelDryRun {#schema-updatechanneldryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"updateChannel"` | yes | | ### UpdateChannelInput {#schema-updatechannelinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `displayName` | string | no | | | `preferredConnectionId` | string (uuid) | no | | | `status` | `"active"` or `"paused"` | no | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Connect Every network and its spec, your own apps on the networks, and the connect flow for an account. 18 operations, 17 need an API key. Read the [concepts](../../guides/concepts.md) first. Connecting an account that signs in on its network is a browser flow a person completes. The API starts and polls it, takes the details of networks that connect with a key, and registers your own apps. `GET /oauth/callback/{network}` is where a network sends the browser back; you never call it. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/networks`](#op-listnetworks) | Every network with its group, prerequisites, scopes and evidence level | any key | | [`GET /v1/networks/{network}`](#op-getnetwork) | One network with its full connector spec | any key | | [`GET /v1/networks/{network}/review-kit`](#op-getnetworkreviewkit) | The app review kit of a network: the checklist and the screencast script | any key | | [`GET /v1/platform-apps`](#op-listplatformapps) | The organization's own apps | any key | | [`POST /v1/platform-apps`](#op-createplatformapp) | Register an own app; the secret is write-only | `connection.manage` | | [`GET /v1/platform-apps/{platformAppId}`](#op-getplatformapp) | One own app | any key | | [`PATCH /v1/platform-apps/{platformAppId}`](#op-updateplatformapp) | Rename an app or change its scopes | `connection.manage` | | [`POST /v1/platform-apps/{platformAppId}/test`](#op-testplatformapp) | Test call: success or the exact failing setting | `connection.manage` | | [`GET /v1/platform-apps/{platformAppId}/rotate-preview`](#op-previewrotatesecret) | Predicted impact of rotating the app secret | any key | | [`POST /v1/platform-apps/{platformAppId}/rotate`](#op-rotatesecret) | Rotate the app secret; the old one stays until the test passes | `connection.manage` | | [`POST /v1/connect-sessions`](#op-startconnect) | Start a connect flow: an authorize URL, or the key-entry fields | `connection.manage` | | [`GET /v1/connect-sessions/{sessionId}`](#op-getconnectsession) | Poll a connect session: status and the returned accounts | any key | | [`POST /v1/connect-sessions/{sessionId}/key`](#op-submitconnectkey) | Send the key-entry fields (app password, bot token, API key) | `connection.manage` | | [`POST /v1/connect-sessions/{sessionId}/commit`](#op-commitconnect) | Assign the chosen destinations to brands as channels | `connection.manage` | | [`POST /v1/channels/{channelId}/reconnect`](#op-reconnectchannel) | Start a reconnect for a channel; history and schedule are kept | `connection.manage` | | [`POST /v1/connect-sessions/{sessionId}/complete-reconnect`](#op-completereconnect) | Apply a finished reconnect: waiting posts go back to scheduled, missed slots come back | `connection.manage` | | [`POST /v1/connections/{connectionId}/check`](#op-checkconnection) | Run the permission check of one connection now | `connection.manage` | | [`GET /oauth/callback/{network}`](#op-oauthcallback) | OAuth redirect target; answers 303 to /connect/{sessionId}/done | no key | ## Operations ### Every network with its group, prerequisites, scopes and evidence level {#op-listnetworks} `GET /v1/networks` Operation `listNetworks`. Any API key of the organization may call it. Response `200`: [NetworkList](#schema-networklist). The networks Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/networks" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/networks", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "network": "facebook", "name": "string", "family": "social", "access": "account", "postsVia": "api", "installUrl": "string", "browserPath": { "targetKinds": [], "assist": "auto", "images": false, "video": false, "mediaRequired": false, "terms": "string" }, "authKind": "oauth2", "byo": false, "postbroadApp": false, "gated": false, "launch": false, "accountUnit": "string", "destinationKinds": [ "feed" ], "verificationLevel": "full", "evidence": [ "none" ], "scopes": [ { "scope": "string", "why": "string" } ], "prerequisites": [ "string" ], "custody": [ "customer_relay" ], "redirectUri": "string" } ] } ``` ### One network with its full connector spec {#op-getnetwork} `GET /v1/networks/{network}` Operation `getNetwork`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `network` | path | yes | `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` | | Response `200`: [NetworkDetail](#schema-networkdetail). The network Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/networks/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/networks/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "network": { "network": "facebook", "name": "string", "family": "social", "access": "account", "postsVia": "api", "installUrl": "string", "browserPath": { "targetKinds": [ "profile" ], "assist": "auto", "images": false, "video": false, "mediaRequired": false, "terms": "string" }, "authKind": "oauth2", "byo": false, "postbroadApp": false, "gated": false, "launch": false, "accountUnit": "string", "destinationKinds": [ "feed" ], "verificationLevel": "full", "evidence": [ "none" ], "scopes": [ { "scope": "string", "why": "string" } ], "prerequisites": [ "string" ], "custody": [ "customer_relay" ], "redirectUri": "string" }, "spec": { "network": "string", "auth": { "verified": false, "source": "string", "value": { "kind": "oauth2", "fallbacks": [], "byo": false } }, "tokenFamily": { "verified": false, "source": "string", "value": "rotating" }, "refreshReuse": "forbidden", "formats": { "verified": false, "source": "string", "value": { "text": false, "images": { "max": 0 }, "video": { "max": 0 }, "carousel": { "max": 0 }, "thread": false, "firstComment": "none", "article": false, "mediaRequired": false, "extras": [] } }, "textLimits": { "verified": false, "source": "string", "value": { "maxChars": 0, "unit": "characters", "titleMaxChars": 0 } }, "mediaProfiles": { "verified": false, "source": "string", "value": {} }, "destinationKinds": { "verified": false, "source": "string", "value": [ "feed" ] }, "accountUnit": { "verified": false, "source": "string", "value": "string" }, "operations": [ { "name": "string", "kind": "post", "targetClass": "client_addressed", "effectiveClass": "client_addressed", "classVerified": false, "dedupe": { "identity": "idempotency_key_header", "windowSeconds": 0, "windowVerified": false }, "negativeEvidence": "string", "source": "string" } ], "evidence": { "verified": false, "source": "string", "value": [ "none" ] }, "processingDeadlineSeconds": 0, "ratePolicies": [ { "scopeKind": "app", "class": "write", "basis": "documented", "capacity": 0, "windowSeconds": 0, "verified": false, "citation": "string" } ], "capabilityProbes": [ "string" ], "notes": [ "string" ] } } ``` ### The app review kit of a network: the checklist and the screencast script {#op-getnetworkreviewkit} `GET /v1/networks/{network}/review-kit` Operation `getNetworkReviewKit`. Any API key of the organization may call it. For a network whose bring-your-own app must pass a review before it can post for other people. It lists what the reviewer has to see in Postbroad and a script for the recording, with the permissions in plain words and what each one is used for. It is Postbroad's side of the review, with the date its facts were read; the network's own, current requirements are named in `checkYourself`. 404 for a network whose app has no review. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `network` | path | yes | `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` | | Response `200`: [NetworkReviewKit](#schema-networkreviewkit). The review kit Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/networks//review-kit" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/networks//review-kit", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "network": "string", "name": "string", "step": "string", "where": "string", "beforeApproval": "string", "prerequisites": [ "string" ], "testAccountRole": "string", "permissions": [ { "scope": "string", "why": "string", "show": "string" } ], "checklist": [ { "id": "string", "text": "string", "evidence": "screencast" } ], "screencast": { "lengthHint": "string", "steps": [ { "step": 0, "say": "string", "show": "string" } ] }, "checkYourself": "string", "readOn": "string" } ``` ### The organization's own apps {#op-listplatformapps} `GET /v1/platform-apps` Operation `listPlatformApps`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `network` | query | no | `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` | | Response `200`: [PlatformAppPage](#schema-platformapppage). A page of apps Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/platform-apps" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/platform-apps", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "name": "string", "clientId": "string", "scopes": [ "string" ], "custody": "customer_relay", "boundHost": "string", "capabilities": { "tier": "string", "reviewStatus": "not_needed", "restrictions": [], "verifiedUrlPrefixes": [] }, "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "hasSecret": false, "secretUpdatedAt": "2026-10-21T09:00:00Z", "lastTest": { "ok": false, "checkedAt": "2026-10-21T09:00:00Z", "failingSetting": "string", "message": "string" }, "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ], "nextCursor": "string" } ``` ### Register an own app; the secret is write-only {#op-createplatformapp} `POST /v1/platform-apps` Operation `createPlatformApp`. Needs a key with the scope `connection.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreatePlatformAppInput](#schema-createplatformappinput) Response `201`: [PlatformAppView](#schema-platformappview). The app Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/platform-apps" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "network": "facebook", "name": "string", "clientId": "string", "scopes": [ "string" ], "reviewStatus": "not_needed", "instanceHost": "string", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "clientSecret": "string", "custody": "hosted_vault" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/platform-apps", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "network": "facebook", "name": "string", "clientId": "string", "scopes": [ "string" ], "reviewStatus": "not_needed", "instanceHost": "string", "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "clientSecret": "string", "custody": "hosted_vault" }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "name": "string", "clientId": "string", "scopes": [ "string" ], "custody": "customer_relay", "boundHost": "string", "capabilities": { "tier": "string", "reviewStatus": "not_needed", "restrictions": [ "string" ], "verifiedUrlPrefixes": [ "string" ] }, "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "hasSecret": false, "secretUpdatedAt": "2026-10-21T09:00:00Z", "lastTest": { "ok": false, "checkedAt": "2026-10-21T09:00:00Z", "failingSetting": "string", "message": "string" }, "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### One own app {#op-getplatformapp} `GET /v1/platform-apps/{platformAppId}` Operation `getPlatformApp`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `platformAppId` | path | yes | string (uuid) | | Response `200`: [PlatformAppView](#schema-platformappview). The app Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/platform-apps/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/platform-apps/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "name": "string", "clientId": "string", "scopes": [ "string" ], "custody": "customer_relay", "boundHost": "string", "capabilities": { "tier": "string", "reviewStatus": "not_needed", "restrictions": [ "string" ], "verifiedUrlPrefixes": [ "string" ] }, "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "hasSecret": false, "secretUpdatedAt": "2026-10-21T09:00:00Z", "lastTest": { "ok": false, "checkedAt": "2026-10-21T09:00:00Z", "failingSetting": "string", "message": "string" }, "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Rename an app or change its scopes {#op-updateplatformapp} `PATCH /v1/platform-apps/{platformAppId}` Operation `updatePlatformApp`. Needs a key with the scope `connection.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `platformAppId` | path | yes | string (uuid) | | Request body: [UpdatePlatformAppInput](#schema-updateplatformappinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `name` | string | no | | | `scopes` | string[] | no | | | `brandId` | string (uuid) or null | no | | | `reviewStatus` | `"not_needed"` or `"not_submitted"` or `"in_review"` or `"approved"` or `"rejected"` | no | | Response `200`: [PlatformAppView](#schema-platformappview). The app Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/platform-apps/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "name": "string", "scopes": [ "string" ], "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "reviewStatus": "not_needed" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/platform-apps/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "name": "string", "scopes": [ "string" ], "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "reviewStatus": "not_needed" }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "name": "string", "clientId": "string", "scopes": [ "string" ], "custody": "customer_relay", "boundHost": "string", "capabilities": { "tier": "string", "reviewStatus": "not_needed", "restrictions": [ "string" ], "verifiedUrlPrefixes": [ "string" ] }, "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "hasSecret": false, "secretUpdatedAt": "2026-10-21T09:00:00Z", "lastTest": { "ok": false, "checkedAt": "2026-10-21T09:00:00Z", "failingSetting": "string", "message": "string" }, "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Test call: success or the exact failing setting {#op-testplatformapp} `POST /v1/platform-apps/{platformAppId}/test` Operation `testPlatformApp`. Needs a key with the scope `connection.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `platformAppId` | path | yes | string (uuid) | | Response `200`: [PlatformAppTestResult](#schema-platformapptestresult). The test result Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/platform-apps//test" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/platform-apps//test", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "ok": false, "checkedAt": "2026-10-21T09:00:00Z", "failingSetting": "string", "message": "string" } ``` ### Predicted impact of rotating the app secret {#op-previewrotatesecret} `GET /v1/platform-apps/{platformAppId}/rotate-preview` Operation `previewRotateSecret`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `platformAppId` | path | yes | string (uuid) | | Response `200`: [RotatePreview](#schema-rotatepreview). The predicted impact Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/platform-apps//rotate-preview" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/platform-apps//rotate-preview", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "platformAppId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "credentials": 0, "accounts": 0, "channels": 0, "scheduledDeliveries": 0, "reconnectNeeded": false } ``` ### Rotate the app secret; the old one stays until the test passes {#op-rotatesecret} `POST /v1/platform-apps/{platformAppId}/rotate` Operation `rotateSecret`. Needs a key with the scope `connection.manage`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `platformAppId` | path | yes | string (uuid) | | Request body: [RotateSecretInput](#schema-rotatesecretinput) | Field | Type | Required | Description | |---|---|---|---| | `clientSecret` | string | yes | | Response `200`: [RotateSecretResult](#schema-rotatesecretresult). The rotation result Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/platform-apps//rotate" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "clientSecret": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/platform-apps//rotate", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "clientSecret": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "app": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "name": "string", "clientId": "string", "scopes": [ "string" ], "custody": "customer_relay", "boundHost": "string", "capabilities": { "tier": "string", "reviewStatus": "not_needed", "restrictions": [ "string" ], "verifiedUrlPrefixes": [ "string" ] }, "workspaceId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "hasSecret": false, "secretUpdatedAt": "2026-10-21T09:00:00Z", "lastTest": { "ok": false, "checkedAt": "2026-10-21T09:00:00Z", "failingSetting": "string", "message": "string" }, "createdAt": "2026-10-21T09:00:00Z", "revision": 0 }, "test": { "ok": false, "checkedAt": "2026-10-21T09:00:00Z", "failingSetting": "string", "message": "string" }, "active": "new" } ``` ### Start a connect flow: an authorize URL, or the key-entry fields {#op-startconnect} `POST /v1/connect-sessions` Operation `startConnect`. Needs a key with the scope `connection.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [StartConnectInput](#schema-startconnectinput) | Field | Type | Required | Description | |---|---|---|---| | `network` | [Network](#schema-network) | yes | | | `platformAppId` | string (uuid) or null | yes | | | `postbroadApp` | boolean | no | | | `brandId` | string (uuid) | no | | | `scopes` | string[] | no | | | `instanceHost` | string | no | | | `via` | `"api"` or `"browser_extension"` | no | | Response `201`: [ConnectSessionView](#schema-connectsessionview). The session Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/connect-sessions" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "network": "facebook", "platformAppId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postbroadApp": false, "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scopes": [ "string" ], "instanceHost": "string", "via": "api" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/connect-sessions", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "network": "facebook", "platformAppId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postbroadApp": false, "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scopes": [ "string" ], "instanceHost": "string", "via": "api" }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "connect", "network": "facebook", "status": "created", "expiresAt": "2026-10-21T09:00:00Z", "authorizeUrl": "string", "postsVia": "api", "keyEntry": { "fields": [ { "name": "string", "label": "string", "secret": false, "required": false, "help": "string" } ] }, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "result": { "loginSubject": "string", "assets": [ { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "instanceHost": "string", "providerAccountId": "string", "kind": "string", "handle": "string", "displayName": "string", "destinations": [], "permissions": { "ok": false, "missing": [] } } ], "reconnect": { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accountPresent": false, "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" }, "error": { "code": "string" } } } ``` ### Poll a connect session: status and the returned accounts {#op-getconnectsession} `GET /v1/connect-sessions/{sessionId}` Operation `getConnectSession`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `sessionId` | path | yes | string (uuid) | | Response `200`: [ConnectSessionView](#schema-connectsessionview). The session Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/connect-sessions/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/connect-sessions/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "connect", "network": "facebook", "status": "created", "expiresAt": "2026-10-21T09:00:00Z", "authorizeUrl": "string", "postsVia": "api", "keyEntry": { "fields": [ { "name": "string", "label": "string", "secret": false, "required": false, "help": "string" } ] }, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "result": { "loginSubject": "string", "assets": [ { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "instanceHost": "string", "providerAccountId": "string", "kind": "string", "handle": "string", "displayName": "string", "destinations": [], "permissions": { "ok": false, "missing": [] } } ], "reconnect": { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accountPresent": false, "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" }, "error": { "code": "string" } } } ``` ### Send the key-entry fields (app password, bot token, API key) {#op-submitconnectkey} `POST /v1/connect-sessions/{sessionId}/key` Operation `submitConnectKey`. Needs a key with the scope `connection.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `sessionId` | path | yes | string (uuid) | | Request body: [SubmitKeyEntryInput](#schema-submitkeyentryinput) | Field | Type | Required | Description | |---|---|---|---| | `fields` | map of string | yes | | Response `202`: [ConnectSessionView](#schema-connectsessionview). The session, exchanging Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/connect-sessions//key" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "fields": {} }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/connect-sessions//key", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "fields": {} }), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "connect", "network": "facebook", "status": "created", "expiresAt": "2026-10-21T09:00:00Z", "authorizeUrl": "string", "postsVia": "api", "keyEntry": { "fields": [ { "name": "string", "label": "string", "secret": false, "required": false, "help": "string" } ] }, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "result": { "loginSubject": "string", "assets": [ { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "instanceHost": "string", "providerAccountId": "string", "kind": "string", "handle": "string", "displayName": "string", "destinations": [], "permissions": { "ok": false, "missing": [] } } ], "reconnect": { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accountPresent": false, "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" }, "error": { "code": "string" } } } ``` ### Assign the chosen destinations to brands as channels {#op-commitconnect} `POST /v1/connect-sessions/{sessionId}/commit` Operation `commitConnect`. Needs a key with the scope `connection.manage`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `sessionId` | path | yes | string (uuid) | | Request body: [CommitConnectInput](#schema-commitconnectinput) | Field | Type | Required | Description | |---|---|---|---| | `assignments` | object[] | yes | | Response `200`: [CommitConnectResult](#schema-commitconnectresult). The new channels Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/connect-sessions//commit" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "assignments": [ { "destinationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/connect-sessions//commit", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "assignments": [ { "destinationId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "channels": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "displayName": "string", "status": "active", "account": { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "handle": "string", "displayName": "string", "avatarUrl": "string", "instanceHost": "string", "kind": "string" }, "destination": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "feed", "name": "string", "gone": false }, "connection": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "health": "healthy", "healthReason": "string", "appKind": "ours", "platformAppId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accessExpiresAt": "2026-10-21T09:00:00Z", "verifiedAt": "2026-10-21T09:00:00Z", "postsVia": "api" }, "verificationLevel": "full", "evidenceLadder": [ "none" ], "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ], "accounts": { "used": 0, "limit": 0 }, "allowance": [ { "network": "facebook", "accountsUsed": 0, "accountsLimit": 0 } ] } ``` ### Start a reconnect for a channel; history and schedule are kept {#op-reconnectchannel} `POST /v1/channels/{channelId}/reconnect` Operation `reconnectChannel`. Needs a key with the scope `connection.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `channelId` | path | yes | string (uuid) | | Response `201`: [ConnectSessionView](#schema-connectsessionview). The reconnect session Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/channels//reconnect" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/channels//reconnect", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "connect", "network": "facebook", "status": "created", "expiresAt": "2026-10-21T09:00:00Z", "authorizeUrl": "string", "postsVia": "api", "keyEntry": { "fields": [ { "name": "string", "label": "string", "secret": false, "required": false, "help": "string" } ] }, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "result": { "loginSubject": "string", "assets": [ { "externalAccountId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "instanceHost": "string", "providerAccountId": "string", "kind": "string", "handle": "string", "displayName": "string", "destinations": [], "permissions": { "ok": false, "missing": [] } } ], "reconnect": { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "accountPresent": false, "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" }, "error": { "code": "string" } } } ``` ### Apply a finished reconnect: waiting posts go back to scheduled, missed slots come back {#op-completereconnect} `POST /v1/connect-sessions/{sessionId}/complete-reconnect` Operation `completeReconnect`. Needs a key with the scope `connection.manage`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `sessionId` | path | yes | string (uuid) | | Response `200`: [ReconnectOutcome](#schema-reconnectoutcome). The outcome Errors: [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/connect-sessions//complete-reconnect" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/connect-sessions//complete-reconnect", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "outcome": "applied", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "rescheduled": 0, "missed": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "scheduledAt": "2026-10-21T09:00:00Z", "excerpt": "string" } ] } ``` ### Run the permission check of one connection now {#op-checkconnection} `POST /v1/connections/{connectionId}/check` Operation `checkConnection`. Needs a key with the scope `connection.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `connectionId` | path | yes | string (uuid) | | Response `200`: [PermissionCheck](#schema-permissioncheck). The check Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/connections//check" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/connections//check", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "connectionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "checkedAt": "2026-10-21T09:00:00Z", "ok": false, "health": "healthy", "missing": [ { "permission": "string", "operation": "string", "fix": "string" } ] } ``` ### OAuth redirect target; answers 303 to /connect/{sessionId}/done {#op-oauthcallback} `GET /oauth/callback/{network}` Operation `oauthCallback`. No key needed. Public. `state` is verified (HMAC and expiry) before anything else; the code is sealed at once. Responses carry Referrer-Policy: no-referrer and Cache-Control: no-store; the query string is never logged. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `network` | path | yes | `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` | | | `code` | query | no | string | | | `device_id` | query | no | string | | | `state` | query | no | string | | | `iss` | query | no | string | | | `error` | query | no | string | | | `error_description` | query | no | string | | | `loginRequestToken` | query | no | string | | | `oauth_token` | query | no | string | | | `oauth_verifier` | query | no | string | | Errors: [`400 bad_request`](../errors.md#status-400), [`404 not_found`](../errors.md#status-404). ```bash title="curl" curl -X GET "https://app.postbroad.com/oauth/callback/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/oauth/callback/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ## Schemas ### ChannelView {#schema-channelview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `brandNetworkId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `displayName` | string | yes | | | `status` | `"active"` or `"paused"` or `"disconnected"` | yes | | | `account` | object | yes | | | `destination` | object | yes | | | `connection` | object | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | | `evidenceLadder` | [EvidenceMethod](#schema-evidencemethod)[] | yes | | | `createdAt` | string (date-time) | yes | | | `revision` | integer | yes | | ### CommitConnectInput {#schema-commitconnectinput} | Field | Type | Required | Description | |---|---|---|---| | `assignments` | object[] | yes | | ### CommitConnectResult {#schema-commitconnectresult} | Field | Type | Required | Description | |---|---|---|---| | `channels` | [ChannelView](#schema-channelview)[] | yes | | | `accounts` | object | yes | | | `allowance` | object[] | yes | | ### ConnectAsset {#schema-connectasset} | Field | Type | Required | Description | |---|---|---|---| | `externalAccountId` | string (uuid) | yes | | | `connectionId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `instanceHost` | string | yes | | | `providerAccountId` | string | yes | | | `kind` | string | yes | | | `handle` | string or null | yes | | | `displayName` | string or null | yes | | | `destinations` | object[] | yes | | | `permissions` | object | yes | | ### ConnectSessionStatus {#schema-connectsessionstatus} Type: `"created"` or `"authorizing"` or `"exchanging"` or `"completed"` or `"failed"` or `"expired"` ### ConnectSessionView {#schema-connectsessionview} One connect or reconnect flow. Never carries a token or a secret. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `kind` | `"connect"` or `"reconnect"` | yes | | | `network` | [Network](#schema-network) | yes | | | `status` | [ConnectSessionStatus](#schema-connectsessionstatus) | yes | | | `expiresAt` | string (date-time) | yes | | | `authorizeUrl` | string or null | yes | | | `postsVia` | `"api"` or `"browser_extension"` | yes | | | `keyEntry` | object or null | yes | | | `channelId` | string (uuid) or null | yes | | | `result` | object or null | yes | | ### ConnectionHealth {#schema-connectionhealth} Type: `"healthy"` or `"expiring"` or `"broken"` or `"missing_permission"` or `"disconnected"` ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### CreatePlatformAppInput {#schema-createplatformappinput} Type: object ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### EvidenceMethod {#schema-evidencemethod} Type: `"none"` or `"provider_ack"` or `"status_endpoint"` or `"readback_match"` or `"public_fetch"` or `"human_confirmed"` ### MissedSlot {#schema-missedslot} | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `postId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `scheduledAt` | string (date-time) | yes | | | `excerpt` | string | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### NetworkAccess {#schema-networkaccess} Type: `"account"` or `"own_app"` or `"by_hand"` ### NetworkCapabilities {#schema-networkcapabilities} | Field | Type | Required | Description | |---|---|---|---| | `network` | string | yes | | | `auth` | object | yes | | | `tokenFamily` | object | yes | | | `refreshReuse` | `"forbidden"` or object | yes | | | `formats` | object | yes | | | `textLimits` | object | yes | | | `mediaProfiles` | object | yes | | | `destinationKinds` | object | yes | | | `accountUnit` | object | yes | | | `operations` | object[] | yes | | | `evidence` | object | yes | | | `processingDeadlineSeconds` | integer | yes | | | `ratePolicies` | object[] | yes | | | `capabilityProbes` | string[] | yes | | | `notes` | string[] | yes | | | `poll` | object | no | | ### NetworkDetail {#schema-networkdetail} | Field | Type | Required | Description | |---|---|---|---| | `network` | [NetworkView](#schema-networkview) | yes | | | `spec` | [NetworkCapabilities](#schema-networkcapabilities) | yes | | ### NetworkList {#schema-networklist} | Field | Type | Required | Description | |---|---|---|---| | `data` | [NetworkView](#schema-networkview)[] | yes | | ### NetworkReviewKit {#schema-networkreviewkit} | Field | Type | Required | Description | |---|---|---|---| | `network` | string | yes | | | `name` | string | yes | | | `step` | string | yes | | | `where` | string | yes | | | `beforeApproval` | string or null | yes | | | `prerequisites` | string[] | yes | | | `testAccountRole` | string or null | yes | | | `permissions` | object[] | yes | | | `checklist` | object[] | yes | | | `screencast` | object | yes | | | `checkYourself` | string | yes | | | `readOn` | string | yes | | ### NetworkView {#schema-networkview} | Field | Type | Required | Description | |---|---|---|---| | `network` | [Network](#schema-network) | yes | | | `name` | string | yes | | | `family` | `"social"` or `"video"` or `"community"` or `"messaging"` or `"publishing"` or `"newsletter"` | yes | | | `access` | [NetworkAccess](#schema-networkaccess) | yes | | | `postsVia` | `"api"` or `"browser_extension"` | yes | | | `installUrl` | string or null | yes | | | `browserPath` | object or null | yes | | | `authKind` | `"oauth2"` or `"oauth2_pkce"` or `"oauth2_per_instance"` or `"oauth1"` or `"atproto_oauth"` or `"app_password"` or `"bot_token"` or `"incoming_webhook"` or `"api_key"` or `"admin_api_key"` or `"password_login"` or `"nip46_signer"` or `"private_key"` or `"signer_provider"` or `"session"` or `"vendor_login_token"` or `"app_credentials"` or `"browser_extension"` | yes | | | `byo` | boolean | yes | | | `postbroadApp` | boolean | yes | | | `gated` | boolean | yes | | | `launch` | boolean | yes | | | `accountUnit` | string | yes | | | `destinationKinds` | [DestinationKind](#schema-destinationkind)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | | `evidence` | [EvidenceMethod](#schema-evidencemethod)[] | yes | | | `scopes` | object[] | yes | | | `prerequisites` | string[] | yes | | | `custody` | `"customer_relay"` or `"hosted_vault"`[] | yes | | | `redirectUri` | string or null | yes | | ### PermissionCheck {#schema-permissioncheck} | Field | Type | Required | Description | |---|---|---|---| | `connectionId` | string (uuid) | yes | | | `checkedAt` | string (date-time) | yes | | | `ok` | boolean | yes | | | `health` | [ConnectionHealth](#schema-connectionhealth) | yes | | | `missing` | [PermissionGap](#schema-permissiongap)[] | yes | | ### PermissionGap {#schema-permissiongap} | Field | Type | Required | Description | |---|---|---|---| | `permission` | string | yes | | | `operation` | string | yes | | | `fix` | string | yes | | ### PlatformAppPage {#schema-platformapppage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [PlatformAppView](#schema-platformappview)[] | yes | | | `nextCursor` | string or null | yes | | ### PlatformAppTestResult {#schema-platformapptestresult} | Field | Type | Required | Description | |---|---|---|---| | `ok` | boolean | yes | | | `checkedAt` | string (date-time) | yes | | | `failingSetting` | string or null | yes | | | `message` | string | yes | | ### PlatformAppView {#schema-platformappview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `name` | string | yes | | | `clientId` | string | yes | | | `scopes` | string[] | yes | | | `custody` | `"customer_relay"` or `"hosted_vault"` | yes | | | `boundHost` | string | yes | | | `capabilities` | object | yes | | | `workspaceId` | string (uuid) or null | yes | | | `brandId` | string (uuid) or null | yes | | | `hasSecret` | boolean | yes | | | `secretUpdatedAt` | string (date-time) or null | yes | | | `lastTest` | [PlatformAppTestResult](#schema-platformapptestresult) or null | yes | | | `createdAt` | string (date-time) | yes | | | `revision` | integer | yes | | ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### ReconnectOutcome {#schema-reconnectoutcome} Type: object ### RotatePreview {#schema-rotatepreview} | Field | Type | Required | Description | |---|---|---|---| | `platformAppId` | string (uuid) | yes | | | `credentials` | integer | yes | | | `accounts` | integer | yes | | | `channels` | integer | yes | | | `scheduledDeliveries` | integer | yes | | | `reconnectNeeded` | boolean | yes | | ### RotateSecretInput {#schema-rotatesecretinput} | Field | Type | Required | Description | |---|---|---|---| | `clientSecret` | string | yes | | ### RotateSecretResult {#schema-rotatesecretresult} | Field | Type | Required | Description | |---|---|---|---| | `app` | [PlatformAppView](#schema-platformappview) | yes | | | `test` | [PlatformAppTestResult](#schema-platformapptestresult) | yes | | | `active` | `"new"` or `"previous"` | yes | | ### StartConnectInput {#schema-startconnectinput} | Field | Type | Required | Description | |---|---|---|---| | `network` | [Network](#schema-network) | yes | | | `platformAppId` | string (uuid) or null | yes | | | `postbroadApp` | boolean | no | | | `brandId` | string (uuid) | no | | | `scopes` | string[] | no | | | `instanceHost` | string | no | | | `via` | `"api"` or `"browser_extension"` | no | | ### SubmitKeyEntryInput {#schema-submitkeyentryinput} | Field | Type | Required | Description | |---|---|---|---| | `fields` | map of string | yes | | ### UpdatePlatformAppInput {#schema-updateplatformappinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `name` | string | no | | | `scopes` | string[] | no | | | `brandId` | string (uuid) or null | no | | | `reviewStatus` | `"not_needed"` or `"not_submitted"` or `"in_review"` or `"approved"` or `"rejected"` | no | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Approvals Read a review, record a person's decision on it, and revoke review links. 4 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. An agent or an API key on its own can never approve a post; a decision is a person's. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/reviews/{approvalId}`](#op-getreview) | Read an authorized review and its protected interactive page | `content.read` | | [`POST /v1/reviews/{approvalId}/decision`](#op-decidereview) | Record an eligible human review decision | `post.approve` | | [`POST /v1/reviews/{approvalId}/withdraw`](#op-withdrawreview) | Withdraw your own recorded approval | `post.approve` | | [`POST /v1/review-links/{linkId}/revoke`](#op-revokereviewbatch) | Revoke a review link and its browser sessions | `post.submit` | ## Operations ### Read an authorized review and its protected interactive page {#op-getreview} `GET /v1/reviews/{approvalId}` Operation `getReview`. Needs a key with the scope `content.read`. Returns the current authorized projection. Agents receive an interactive page URL, never a guest bearer link or authority to decide. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `approvalId` | path | yes | string (uuid) | | Response `200`: [ReviewView](#schema-reviewview). Projected review Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/reviews/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/reviews/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "versionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "contentHash": "string", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "current", "notice": "string", "content": { "baseText": "string", "variants": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "string", "text": "string", "threadParts": [], "firstComment": "string", "media": [], "overrides": [] } ] }, "approvals": [ { "approvalId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "contentHash": "string", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "roundId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "stage": "internal", "state": "requested", "waiting": false, "canDecide": false, "revision": 0, "createdAt": "2026-10-21T09:00:00Z", "dueAt": "2026-10-21T09:00:00Z" } ], "interactiveUrl": "https://example.com" } ``` ### Record an eligible human review decision {#op-decidereview} `POST /v1/reviews/{approvalId}/decision` Operation `decideReview`. Needs a key with the scope `post.approve`. Requires the eligible human's own session or personal token, the current revision and an explicit viewed value. Hosted MCP clients, agents and service principals cannot decide for a person. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `approvalId` | path | yes | string (uuid) | | Request body: [DecideReviewInput](#schema-decidereviewinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `decision` | `"approved"` or `"rejected"` or `"changes_requested"` | yes | | | `viewed` | boolean | yes | | | `comment` | string or null | no | | Response `200`: [ReviewDecisionResult](#schema-reviewdecisionresult) or [DecideReviewDryRun](#schema-decidereviewdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/reviews//decision" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "decision": "approved", "viewed": false, "comment": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/reviews//decision", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "decision": "approved", "viewed": false, "comment": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "receiptId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "revision": 0, "verdict": "satisfied" } ``` ### Withdraw your own recorded approval {#op-withdrawreview} `POST /v1/reviews/{approvalId}/withdraw` Operation `withdrawReview`. Needs a key with the scope `post.approve`. The eligible human withdraws their own current approval; the original receipt is retained and future unclaimed deliveries stop. Hosted MCP grants, agents and service identities cannot withdraw for a person. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `approvalId` | path | yes | string (uuid) | | Request body: [WithdrawReviewInput](#schema-withdrawreviewinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `reason` | string or null | no | | Response `200`: [ReviewWithdrawalResult](#schema-reviewwithdrawalresult) or [WithdrawReviewDryRun](#schema-withdrawreviewdryrun). Pure operation preview when dry_run=true; no mutation is performed Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/reviews//withdraw" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "reason": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/reviews//withdraw", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "reason": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "withdrawalId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "versionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "revision": 0, "alreadyDispatching": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ``` ### Revoke a review link and its browser sessions {#op-revokereviewbatch} `POST /v1/review-links/{linkId}/revoke` Operation `revokeReviewBatch`. Needs a key with the scope `post.submit`. Requires current issuer authority. Stops access through this link and its sessions without changing recorded approval decisions. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `linkId` | path | yes | string (uuid) | | Request body: [RevokeReviewBatchInput](#schema-revokereviewbatchinput) Response `200`: [ReviewBatchRevokeResult](#schema-reviewbatchrevokeresult). Revoked review link Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 rule_violation`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/review-links//revoke" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{}' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/review-links//revoke", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({}), }); const data = await res.json(); ``` ```json title="Response 200" { "linkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "revoked": true } ``` ## Schemas ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### DecideReviewDryRun {#schema-decidereviewdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"decideReview"` | yes | | ### DecideReviewInput {#schema-decidereviewinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `decision` | `"approved"` or `"rejected"` or `"changes_requested"` | yes | | | `viewed` | boolean | yes | | | `comment` | string or null | no | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### ReviewBatchRevokeResult {#schema-reviewbatchrevokeresult} | Field | Type | Required | Description | |---|---|---|---| | `linkId` | string (uuid) | yes | | | `revoked` | `true` | yes | | ### ReviewDecisionResult {#schema-reviewdecisionresult} | Field | Type | Required | Description | |---|---|---|---| | `receiptId` | string (uuid) | yes | | | `postId` | string (uuid) | yes | | | `versionId` | string (uuid) | yes | | | `revision` | integer | yes | | | `verdict` | `"satisfied"` or `"pending"` or `"expired"` or `"voided"` or `"blocked_module_missing"` | yes | | ### ReviewView {#schema-reviewview} | Field | Type | Required | Description | |---|---|---|---| | `versionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `brandId` | string (uuid) | yes | | | `status` | `"current"` or `"replaced"` | yes | | | `notice` | string or null | yes | | | `content` | object or null | yes | | | `approvals` | object[] | yes | | | `interactiveUrl` | string (uri) | yes | | ### ReviewWithdrawalResult {#schema-reviewwithdrawalresult} | Field | Type | Required | Description | |---|---|---|---| | `withdrawalId` | string (uuid) | yes | | | `postId` | string (uuid) | yes | | | `versionId` | string (uuid) | yes | | | `revision` | integer | yes | | | `alreadyDispatching` | string (uuid)[] | yes | | ### RevokeReviewBatchInput {#schema-revokereviewbatchinput} Type: object ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` ### WithdrawReviewDryRun {#schema-withdrawreviewdryrun} | Field | Type | Required | Description | |---|---|---|---| | `resources` | object[] | yes | | | `effects` | object[] | yes | | | `content` | object[] | yes | | | `details` | object[] | yes | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | object | yes | | | `operationId` | `"withdrawReview"` | yes | | ### WithdrawReviewInput {#schema-withdrawreviewinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `reason` | string or null | no | | # Webhook endpoints Create, change, rotate, disable and delete webhook endpoints, and list and replay what was sent to them. 10 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. How events are signed, sent and retried is in the [webhooks guide](../webhooks.md). The create and rotate answers carry `signingSecret` once, on the original answer: a replay of the same `Idempotency-Key` answers `secretDisclosure: "already_shown"` without it. If that answer is lost, rotate the secret with a new key; the previous secret stays valid for 24 hours. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/webhook-endpoints`](#op-listwebhookendpoints) | List webhook endpoints | `webhook.manage` | | [`POST /v1/webhook-endpoints`](#op-createwebhookendpoint) | Create a webhook endpoint | `webhook.manage` | | [`POST /v1/webhook-endpoints/{endpointId}/rotate-secret`](#op-rotatewebhooksecret) | Rotate a webhook signing secret | `webhook.manage` | | [`PATCH /v1/webhook-endpoints/{endpointId}`](#op-updatewebhookendpoint) | Change or re-enable a webhook endpoint | `webhook.manage` | | [`DELETE /v1/webhook-endpoints/{endpointId}`](#op-deletewebhookendpoint) | Delete a webhook endpoint | `webhook.manage` | | [`GET /v1/webhook-endpoints/{endpointId}/deliveries`](#op-listwebhookdeliveries) | List recent webhook deliveries | `webhook.manage` | | [`GET /v1/webhook-endpoints/{endpointId}/dead-letters`](#op-listwebhookdeadletters) | List failed webhook deliveries | `webhook.manage` | | [`POST /v1/webhook-endpoints/{endpointId}/dead-letters/{webhookDeliveryId}/replay`](#op-replaywebhookdelivery) | Schedule a dead letter for redelivery | `webhook.manage` | | [`POST /v1/webhook-endpoints/{endpointId}/test`](#op-testwebhookendpoint) | Send a test event to a webhook endpoint | `webhook.manage` | | [`POST /v1/webhook-endpoints/{endpointId}/disable`](#op-disablewebhookendpoint) | Disable a webhook endpoint | `webhook.manage` | ## Operations ### List webhook endpoints {#op-listwebhookendpoints} `GET /v1/webhook-endpoints` Operation `listWebhookEndpoints`. Needs a key with the scope `webhook.manage`. The 500 newest endpoints, newest first. Response `200`: [WebhookEndpointList](#schema-webhookendpointlist). Endpoints Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/webhook-endpoints" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "url": "string", "events": [ "string" ], "enabled": false, "createdAt": "2026-10-21T09:00:00Z" } ] } ``` ### Create a webhook endpoint {#op-createwebhookendpoint} `POST /v1/webhook-endpoints` Operation `createWebhookEndpoint`. Needs a key with the scope `webhook.manage`, listed on the key by name. The signing secret is shown only on the initial response. If it is lost, rotate with a new idempotency key. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreateWebhookEndpointInput](#schema-createwebhookendpointinput) | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | | | `events` | string[] | no | | | `channelIds` | string (uuid)[] or null | no | | Response `201`: [WebhookSecretResult](#schema-webhooksecretresult). Endpoint and one-time signing secret Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/webhook-endpoints" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "url": "string", "events": [ "string" ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "url": "string", "events": [ "string" ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "url": "string", "events": [ "string" ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "enabled": false, "createdAt": "2026-10-21T09:00:00Z", "secretDisclosure": "shown_once", "signingSecret": "string" } ``` ### Rotate a webhook signing secret {#op-rotatewebhooksecret} `POST /v1/webhook-endpoints/{endpointId}/rotate-secret` Operation `rotateWebhookSecret`. Needs a key with the scope `webhook.manage`, listed on the key by name. The previous secret remains valid for 24 hours. The new secret is shown only on the initial response. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `endpointId` | path | yes | string (uuid) | | Request body: [RotateWebhookSecretInput](#schema-rotatewebhooksecretinput) Response `200`: [WebhookSecretResult](#schema-webhooksecretresult). Endpoint and one-time signing secret Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/webhook-endpoints//rotate-secret" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{}' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints//rotate-secret", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({}), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "url": "string", "events": [ "string" ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "enabled": false, "createdAt": "2026-10-21T09:00:00Z", "secretDisclosure": "shown_once", "signingSecret": "string" } ``` ### Change or re-enable a webhook endpoint {#op-updatewebhookendpoint} `PATCH /v1/webhook-endpoints/{endpointId}` Operation `updateWebhookEndpoint`. Needs a key with the scope `webhook.manage`, listed on the key by name. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `endpointId` | path | yes | string (uuid) | | Request body: [UpdateWebhookEndpointInput](#schema-updatewebhookendpointinput) | Field | Type | Required | Description | |---|---|---|---| | `url` | string | no | | | `events` | string[] | no | | | `channelIds` | string (uuid)[] or null | no | | | `enabled` | boolean | no | | Response `200`: [WebhookEndpoint](#schema-webhookendpoint). Updated endpoint Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/webhook-endpoints/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "url": "string", "events": [ "string" ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "enabled": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "url": "string", "events": [ "string" ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "enabled": false }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "url": "string", "events": [ "string" ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "enabled": false, "createdAt": "2026-10-21T09:00:00Z" } ``` ### Delete a webhook endpoint {#op-deletewebhookendpoint} `DELETE /v1/webhook-endpoints/{endpointId}` Operation `deleteWebhookEndpoint`. Needs a key with the scope `webhook.manage`, listed on the key by name. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `endpointId` | path | yes | string (uuid) | | Response `204`. Deleted Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X DELETE "https://app.postbroad.com/v1/webhook-endpoints/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints/", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ### List recent webhook deliveries {#op-listwebhookdeliveries} `GET /v1/webhook-endpoints/{endpointId}/deliveries` Operation `listWebhookDeliveries`. Needs a key with the scope `webhook.manage`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `endpointId` | path | yes | string (uuid) | | Response `200`: [WebhookDeliveryList](#schema-webhookdeliverylist). Recent deliveries Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/webhook-endpoints//deliveries" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints//deliveries", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "eventId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "eventType": "string", "state": "string", "attemptNo": -9007199254740991, "outcome": "string", "attemptAt": "2026-10-21T09:00:00Z", "lastStatus": -9007199254740991, "lastAttemptAt": "2026-10-21T09:00:00Z", "nextAttemptAt": "2026-10-21T09:00:00Z", "createdAt": "2026-10-21T09:00:00Z" } ] } ``` ### List failed webhook deliveries {#op-listwebhookdeadletters} `GET /v1/webhook-endpoints/{endpointId}/dead-letters` Operation `listWebhookDeadLetters`. Needs a key with the scope `webhook.manage`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `endpointId` | path | yes | string (uuid) | | | `cursor` | query | no | string | | | `limit` | query | no | integer | | Response `200`: [WebhookDeadLetterPage](#schema-webhookdeadletterpage). Dead letters Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/webhook-endpoints//dead-letters" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints//dead-letters", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "eventId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "eventType": "string", "deadAt": "2026-10-21T09:00:00Z", "replayable": false } ], "nextCursor": "string" } ``` ### Schedule a dead letter for redelivery {#op-replaywebhookdelivery} `POST /v1/webhook-endpoints/{endpointId}/dead-letters/{webhookDeliveryId}/replay` Operation `replayWebhookDelivery`. Needs a key with the scope `webhook.manage`, listed on the key by name. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `endpointId` | path | yes | string (uuid) | | | `webhookDeliveryId` | path | yes | string (uuid) | | Request body: [ReplayWebhookDeliveryInput](#schema-replaywebhookdeliveryinput) Response `200`: [ReplayedWebhookDelivery](#schema-replayedwebhookdelivery). Redelivery scheduled Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/webhook-endpoints//dead-letters//replay" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{}' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints//dead-letters//replay", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({}), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "pending" } ``` ### Send a test event to a webhook endpoint {#op-testwebhookendpoint} `POST /v1/webhook-endpoints/{endpointId}/test` Operation `testWebhookEndpoint`. Needs a key with the scope `webhook.manage`. Queues one `webhook.test` event for this endpoint only, signed and retried like any other, so the receiving side can check its signature handling. It shows in the endpoint's recent deliveries. A disabled endpoint is refused with 409 `conflict`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `endpointId` | path | yes | string (uuid) | | Request body: [TestWebhookEndpointInput](#schema-testwebhookendpointinput) Response `202`: [WebhookTestEvent](#schema-webhooktestevent). Test event queued Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/webhook-endpoints//test" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{}' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints//test", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({}), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "eventId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "eventType": "webhook.test", "state": "pending" } ``` ### Disable a webhook endpoint {#op-disablewebhookendpoint} `POST /v1/webhook-endpoints/{endpointId}/disable` Operation `disableWebhookEndpoint`. Needs a key with the scope `webhook.manage`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `endpointId` | path | yes | string (uuid) | | Request body: [DisableWebhookEndpointInput](#schema-disablewebhookendpointinput) Response `200`: [WebhookEndpoint](#schema-webhookendpoint). Disabled endpoint Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/webhook-endpoints//disable" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{}' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/webhook-endpoints//disable", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({}), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "url": "string", "events": [ "string" ], "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "enabled": false, "createdAt": "2026-10-21T09:00:00Z" } ``` ## Schemas ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### CreateWebhookEndpointInput {#schema-createwebhookendpointinput} | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | | | `events` | string[] | no | | | `channelIds` | string (uuid)[] or null | no | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DisableWebhookEndpointInput {#schema-disablewebhookendpointinput} Type: object ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### ReplayWebhookDeliveryInput {#schema-replaywebhookdeliveryinput} Type: object ### ReplayedWebhookDelivery {#schema-replayedwebhookdelivery} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"pending"` | yes | | ### RotateWebhookSecretInput {#schema-rotatewebhooksecretinput} Type: object ### TestWebhookEndpointInput {#schema-testwebhookendpointinput} Type: object ### UpdateWebhookEndpointInput {#schema-updatewebhookendpointinput} | Field | Type | Required | Description | |---|---|---|---| | `url` | string | no | | | `events` | string[] | no | | | `channelIds` | string (uuid)[] or null | no | | | `enabled` | boolean | no | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` ### WebhookDeadLetter {#schema-webhookdeadletter} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `eventId` | string (uuid) | yes | | | `eventType` | string | yes | | | `deadAt` | string (date-time) | yes | | | `replayable` | boolean | yes | | ### WebhookDeadLetterPage {#schema-webhookdeadletterpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [WebhookDeadLetter](#schema-webhookdeadletter)[] | yes | | | `nextCursor` | string or null | yes | | ### WebhookDelivery {#schema-webhookdelivery} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `eventId` | string (uuid) | yes | | | `eventType` | string | yes | | | `state` | string | yes | | | `attemptNo` | integer | yes | | | `outcome` | string or null | yes | | | `attemptAt` | string (date-time) or null | yes | | | `lastStatus` | integer or null | yes | | | `lastAttemptAt` | string (date-time) or null | yes | | | `nextAttemptAt` | string (date-time) or null | yes | | | `createdAt` | string (date-time) | yes | | ### WebhookDeliveryList {#schema-webhookdeliverylist} | Field | Type | Required | Description | |---|---|---|---| | `data` | [WebhookDelivery](#schema-webhookdelivery)[] | yes | | ### WebhookEndpoint {#schema-webhookendpoint} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `url` | string | yes | | | `events` | string[] | yes | | | `channelIds` | string (uuid)[] or null | no | | | `enabled` | boolean | yes | | | `createdAt` | string (date-time) | yes | | ### WebhookEndpointList {#schema-webhookendpointlist} | Field | Type | Required | Description | |---|---|---|---| | `data` | [WebhookEndpoint](#schema-webhookendpoint)[] | yes | | ### WebhookSecretResult {#schema-webhooksecretresult} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `url` | string | yes | | | `events` | string[] | yes | | | `channelIds` | string (uuid)[] or null | no | | | `enabled` | boolean | yes | | | `createdAt` | string (date-time) | yes | | | `secretDisclosure` | `"shown_once"` or `"already_shown"` | yes | | | `signingSecret` | string | no | | ### WebhookTestEvent {#schema-webhooktestevent} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `eventId` | string (uuid) | yes | | | `eventType` | `"webhook.test"` | yes | | | `state` | `"pending"` | yes | | # Analytics Export brand metrics as CSV or JSON, and read the organization's first-run milestones. 6 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`POST /v1/metrics/exports`](#op-createmetricsexport) | Queue a CSV or JSON export of brand metrics | `analytics.export` | | [`GET /v1/metrics/exports`](#op-listmetricsexports) | The caller's recent metrics exports, newest first | `analytics.export` | | [`GET /v1/metrics/exports/{requestId}`](#op-getmetricsexport) | Read the caller's metrics export and its short-lived download link | `analytics.export` | | [`GET /v1/metrics/exports/{requestId}/content`](#op-downloadmetricsexport) | Download the file after rechecking the requester, scope and its signature | `analytics.export` | | [`GET /v1/events/activation`](#op-getactivationmilestones) | Read first-run milestones for the organization | any key | | [`POST /v1/events/activation`](#op-recordactivationevent) | Count a first-run step for the organization | any key | ## Operations ### Queue a CSV or JSON export of brand metrics {#op-createmetricsexport} `POST /v1/metrics/exports` Operation `createMetricsExport`. Needs a key with the scope `analytics.export`. Needs an interactive member session and `analytics.export` on every brand in the request. The period must fit within the plan's analytics history. YouTube numbers are always left out. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [MetricsExportInput](#schema-metricsexportinput) | Field | Type | Required | Description | |---|---|---|---| | `format` | `"csv"` or `"json"` | yes | | | `from` | string | yes | | | `to` | string | yes | | | `brandIds` | string (uuid)[] | no | | | `subjectType` | `"channel"` or `"delivery"` | no | | | `subjectIds` | string (uuid)[] | no | | | `networks` | string[] | no | | Response `202`: [MetricsExportView](#schema-metricsexportview). The durable export request Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/metrics/exports" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "format": "csv", "from": "string", "to": "string", "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "subjectType": "channel", "subjectIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "networks": [ "string" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/metrics/exports", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "format": "csv", "from": "string", "to": "string", "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "subjectType": "channel", "subjectIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "networks": [ "string" ] }), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "createdAt": "2026-10-21T09:00:00Z", "finishedAt": "2026-10-21T09:00:00Z", "expiresAt": "2026-10-21T09:00:00Z", "errorCode": "string", "downloadUrl": "https://example.com", "format": "csv", "specHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "excludedNetworks": [ null ], "from": "string", "to": "string", "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ``` ### The caller's recent metrics exports, newest first {#op-listmetricsexports} `GET /v1/metrics/exports` Operation `listMetricsExports`. Needs a key with the scope `analytics.export`. Needs an interactive member session. Returns at most the 20 newest exports the caller asked for; an export whose brands or period the caller may no longer see is left out. Response `200`: [MetricsExportList](#schema-metricsexportlist). The caller's recent metrics exports that current access still allows Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/metrics/exports" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/metrics/exports", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "createdAt": "2026-10-21T09:00:00Z", "finishedAt": "2026-10-21T09:00:00Z", "expiresAt": "2026-10-21T09:00:00Z", "errorCode": "string", "downloadUrl": "https://example.com", "format": "csv", "specHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "excludedNetworks": [ null ], "from": "string", "to": "string", "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ] } ``` ### Read the caller's metrics export and its short-lived download link {#op-getmetricsexport} `GET /v1/metrics/exports/{requestId}` Operation `getMetricsExport`. Needs a key with the scope `analytics.export`. Needs an interactive member session and the access the request was made with. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `requestId` | path | yes | string (uuid) | | Response `200`: [MetricsExportView](#schema-metricsexportview). The export Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/metrics/exports/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/metrics/exports/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "createdAt": "2026-10-21T09:00:00Z", "finishedAt": "2026-10-21T09:00:00Z", "expiresAt": "2026-10-21T09:00:00Z", "errorCode": "string", "downloadUrl": "https://example.com", "format": "csv", "specHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "excludedNetworks": [ null ], "from": "string", "to": "string", "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ``` ### Download the file after rechecking the requester, scope and its signature {#op-downloadmetricsexport} `GET /v1/metrics/exports/{requestId}/content` Operation `downloadMetricsExport`. Needs a key with the scope `analytics.export`. Reached through the signed `downloadUrl` of the export. The file is CSV or JSON, as the request asked; its Content-Type says which. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `requestId` | path | yes | string (uuid) | | | `org` | query | yes | string (uuid) | | | `expires` | query | yes | string | | | `signature` | query | yes | string | | Response `200`. A private CSV or JSON file Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/metrics/exports//content?org=&expires=&signature=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/metrics/exports//content?org=&expires=&signature=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ### Read first-run milestones for the organization {#op-getactivationmilestones} `GET /v1/events/activation` Operation `getActivationMilestones`. Any API key of the organization may call it. Cloud only. Derived from current authorized organization records; wizard steps are separately reported. Response `200`: [ActivationMilestones](#schema-activationmilestones). Observed milestones Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/events/activation" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/events/activation", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "signup": false, "firstChannel": false, "firstPublishedPost": false, "firstTeammate": false, "firstAgent": false, "wizard": [ "kind" ] } ``` ### Count a first-run step for the organization {#op-recordactivationevent} `POST /v1/events/activation` Operation `recordActivationEvent`. Any API key of the organization may call it. Cloud only. One count per organization and step; repeating a step answers counted false. Never blocks the first run: callers ignore a failure. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [ActivationEventInput](#schema-activationeventinput) | Field | Type | Required | Description | |---|---|---|---| | `event` | `"wizard_step"` | yes | | | `step` | `"kind"` or `"brand"` or `"connect"` or `"post"` or `"next"` | yes | | | `kind` | [OrgKind](#schema-orgkind) | no | | Response `200`: [ActivationEventResult](#schema-activationeventresult). Whether this step was counted now Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/events/activation" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "event": "wizard_step", "step": "kind", "kind": "creator" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/events/activation", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "event": "wizard_step", "step": "kind", "kind": "creator" }), }); const data = await res.json(); ``` ```json title="Response 200" { "counted": false } ``` ## Schemas ### ActivationEventInput {#schema-activationeventinput} | Field | Type | Required | Description | |---|---|---|---| | `event` | `"wizard_step"` | yes | | | `step` | `"kind"` or `"brand"` or `"connect"` or `"post"` or `"next"` | yes | | | `kind` | [OrgKind](#schema-orgkind) | no | | ### ActivationEventResult {#schema-activationeventresult} | Field | Type | Required | Description | |---|---|---|---| | `counted` | boolean | yes | | ### ActivationMilestones {#schema-activationmilestones} | Field | Type | Required | Description | |---|---|---|---| | `signup` | boolean | yes | | | `firstChannel` | boolean | yes | | | `firstPublishedPost` | boolean | yes | | | `firstTeammate` | boolean | yes | | | `firstAgent` | boolean | yes | | | `wizard` | `"kind"` or `"brand"` or `"connect"` or `"post"` or `"next"`[] | yes | | ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### MetricsExportDocument {#schema-metricsexportdocument} Type: string ### MetricsExportInput {#schema-metricsexportinput} The period, brands and format of a metrics export. `from` and `to` are UTC days (YYYY-MM-DD); `to` is not included, and the period is at most 730 days. `networks` takes network slugs. | Field | Type | Required | Description | |---|---|---|---| | `format` | `"csv"` or `"json"` | yes | | | `from` | string | yes | | | `to` | string | yes | | | `brandIds` | string (uuid)[] | no | | | `subjectType` | `"channel"` or `"delivery"` | no | | | `subjectIds` | string (uuid)[] | no | | | `networks` | string[] | no | | ### MetricsExportList {#schema-metricsexportlist} | Field | Type | Required | Description | |---|---|---|---| | `data` | [MetricsExportView](#schema-metricsexportview)[] | yes | | ### MetricsExportView {#schema-metricsexportview} A metrics export: queued, built by the export worker, then downloadable through a short-lived link signed for its requester. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"queued"` or `"running"` or `"done"` or `"failed"` | yes | | | `createdAt` | string (date-time) | yes | | | `finishedAt` | string (date-time) or null | yes | | | `expiresAt` | string (date-time) or null | yes | | | `errorCode` | string or null | yes | | | `downloadUrl` | string (uri) or null | yes | | | `format` | `"csv"` or `"json"` | yes | | | `specHash` | string | yes | | | `excludedNetworks` | any[] | yes | | | `from` | string | yes | | | `to` | string | yes | | | `brandIds` | string (uuid)[] or null | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### OrgKind {#schema-orgkind} Type: `"creator"` or `"agency"` or `"developer"` ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Views Ready made views of the app: today, the calendar, open slots, connection health, post results, reliability and search. 10 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/views/attention-count`](#op-getattentioncount) | The number of visible items needing attention | any key | | [`GET /v1/views/today`](#op-gettodayview) | Today: what needs a person, what goes out next, what went live | any key | | [`GET /v1/views/calendar`](#op-getcalendarrange) | Posts, open slots and holds between two instants (at most 62 days) | any key | | [`GET /v1/brands/{brandId}/gaps`](#op-getbrandgaps) | Open posting times of a brand in the next days, and the next free one per network | any key | | [`GET /v1/views/connections-matrix`](#op-getconnectionsmatrix) | Health of every brand on every network | any key | | [`GET /v1/analytics/posts`](#op-listanalyticsposts) | Matching posts ordered by scheduled time or verified network results | `analytics.read` | | [`GET /v1/analytics/brands/{brandId}/reliability`](#op-getdeliveryreliability) | Delivery reliability by network and verification level | `analytics.read` | | [`GET /v1/search`](#op-search) | Search visible brands, posts, channels and media | any key | | [`GET /v1/requests`](#op-listrequests) | Request metadata without request bodies, codes or credentials | `audit.read` | | [`GET /v1/requests/by-key`](#op-getrequestbykey) | Read the caller's completed response by its request key | any key | ## Operations ### The number of visible items needing attention {#op-getattentioncount} `GET /v1/views/attention-count` Operation `getAttentionCount`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | query | no | string (uuid) | | Response `200`: [AttentionCount](#schema-attentioncount). Grouped attention count Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/views/attention-count" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/views/attention-count", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "count": 0 } ``` ### Today: what needs a person, what goes out next, what went live {#op-gettodayview} `GET /v1/views/today` Operation `getTodayView`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | query | no | string (uuid) | | Response `200`: [TodayView](#schema-todayview). The Today view Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/views/today" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/views/today", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "generatedAt": "2026-10-21T09:00:00Z", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "summary": { "status": "on_track", "needsYou": 0, "goingOutNext": 0, "wentLiveThisWeek": 0 }, "needsYou": [ { "kind": "reconnect", "count": 0, "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "subject": { "type": "channel", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "label": "string" }, "actionOperationId": "string", "openedAt": "2026-10-21T09:00:00Z" } ], "attentionGroups": [ { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "deliveryIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "exceptionIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ], "goingOutNext": [ { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "revision": 0, "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "state": "draft", "excerpt": "string", "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "scheduledAt": "2026-10-21T09:00:00Z", "networks": [ "facebook" ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "destinations": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "state": null, "providerUrl": "string" } ] } ], "wentLive": [ { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "revision": 0, "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "state": "draft", "excerpt": "string", "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "scheduledAt": "2026-10-21T09:00:00Z", "networks": [ "facebook" ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "destinations": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "state": null, "providerUrl": "string" } ] } ], "channels": { "total": 0, "healthy": 0, "needsAttention": 0 }, "activeHolds": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "reason": "org_pause", "note": "string", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "releasedAt": "2026-10-21T09:00:00Z", "releasedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } } ] } ``` ### Posts, open slots and holds between two instants (at most 62 days) {#op-getcalendarrange} `GET /v1/views/calendar` Operation `getCalendarRange`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `from` | query | yes | string (date-time) | | | `to` | query | yes | string (date-time) | | | `brandId` | query | no | string (uuid) | | | `network` | query | no | `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` | | | `channelId` | query | no | string (uuid) | | | `state` | query | no | `"pending"` or `"scheduled"` or `"needs_reconnect"` or `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"failed"` or `"unknown"` or `"cancelled"` | | | `tag` | query | no | string | | Response `200`: [CalendarRange](#schema-calendarrange). The range Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/views/calendar?from=&to=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/views/calendar?from=&to=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "from": "2026-10-21T09:00:00Z", "to": "2026-10-21T09:00:00Z", "timezone": "Europe/Riga", "items": [ { "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "revision": 0, "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "state": "draft", "excerpt": "string", "thumbnail": { "url": "https://example.invalid/post/1", "expiresAt": "2026-10-21T09:00:00Z" }, "scheduledAt": "2026-10-21T09:00:00Z", "networks": [ "facebook" ], "rollup": { "total": 0, "verified": 0, "confirmedByPerson": 0, "acceptedOnly": 0, "failed": 0, "unknown": 0, "waiting": 0, "cancelled": 0, "allPublished": false }, "destinations": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": null, "state": null, "providerUrl": "string" } ], "tags": [ "string" ] } ], "openSlots": [ { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "at": "2026-10-21T09:00:00Z" } ], "activeHolds": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "reason": "org_pause", "note": "string", "createdBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" }, "createdAt": "2026-10-21T09:00:00Z", "releasedAt": "2026-10-21T09:00:00Z", "releasedBy": { "type": "member", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } } ], "truncated": false, "nextCursor": "string", "viewerTimezone": "Europe/Riga" } ``` ### Open posting times of a brand in the next days, and the next free one per network {#op-getbrandgaps} `GET /v1/brands/{brandId}/gaps` Operation `getBrandGaps`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | | `days` | query | no | integer | | | `network` | query | no | `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` | | | `channelId` | query | no | string (uuid) | | Response `200`: [BrandGaps](#schema-brandgaps). The gaps Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands//gaps" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//gaps", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "timezone": "Europe/Riga", "from": "2026-10-21T09:00:00Z", "to": "2026-10-21T09:00:00Z", "gaps": [ { "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "at": "2026-10-21T09:00:00Z" } ], "nextFree": [ { "brandNetworkId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "at": "2026-10-21T09:00:00Z" } ] } ``` ### Health of every brand on every network {#op-getconnectionsmatrix} `GET /v1/views/connections-matrix` Operation `getConnectionsMatrix`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `workspaceId` | query | no | string (uuid) | | Response `200`: [ConnectionsMatrix](#schema-connectionsmatrix). The matrix Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/views/connections-matrix" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/views/connections-matrix", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "generatedAt": "2026-10-21T09:00:00Z", "brands": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } ], "networks": [ "facebook" ], "cells": [ { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "network": "facebook", "status": "healthy", "accounts": [ { "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "handle": "string", "health": null } ], "fixChannelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "quota": { "used": 0, "limit": 0 } } ] } ``` ### Matching posts ordered by scheduled time or verified network results {#op-listanalyticsposts} `GET /v1/analytics/posts` Operation `listAnalyticsPosts`. Needs a key with the scope `analytics.read`. The verified ranking counts network results, not reach or engagement. The cursor traverses live values; updates can change subsequent pages. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `from` | query | yes | string (date-time) | | | `to` | query | yes | string (date-time) | | | `brandId` | query | no | string (uuid) | | | `state` | query | no | `"draft"` or `"in_review"` or `"approved"` or `"scheduled"` or `"cancelled"` | | | `q` | query | no | string | | | `network` | query | no | string | | | `sort` | query | no | `"scheduled"` or `"verified"` | | Response `200`: [AnalyticsPostPage](#schema-analyticspostpage). A page of matching posts Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/analytics/posts?from=&to=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/analytics/posts?from=&to=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "excerpt": "string", "state": "string", "scheduledAt": "2026-10-21T09:00:00Z", "verified": 0 } ], "nextCursor": "string" } ``` ### Delivery reliability by network and verification level {#op-getdeliveryreliability} `GET /v1/analytics/brands/{brandId}/reliability` Operation `getDeliveryReliability`. Needs a key with the scope `analytics.read`. Sent root attempts in the half-open period, limited to 366 days and the current analytics retention window. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | | `from` | query | yes | string (date-time) | | | `to` | query | yes | string (date-time) | | Response `200`: [DeliveryReliability](#schema-deliveryreliability). Attempted delivery outcomes Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/analytics/brands//reliability?from=&to=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/analytics/brands//reliability?from=&to=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "from": "2026-10-21T09:00:00Z", "to": "2026-10-21T09:00:00Z", "groups": [ { "network": "string", "verificationLevel": "string", "attempted": 0, "published": 0, "verified": 0, "person": 0, "unknown": 0, "attempts": 0, "latenessSamples": 0, "p95LatenessSeconds": 0 } ] } ``` ### Search visible brands, posts, channels and media {#op-search} `GET /v1/search` Operation `search`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `q` | query | yes | string | | | `brandId` | query | no | string (uuid) | | Response `200`: [SearchPage](#schema-searchpage). A page of visible matches Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/search?q=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/search?q=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "kind": "brand", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "label": "string", "excerpt": "string" } ], "nextCursor": "string" } ``` ### Request metadata without request bodies, codes or credentials {#op-listrequests} `GET /v1/requests` Operation `listRequests`. Needs a key with the scope `audit.read`. Filters combine with AND and hold on every page. `principal` is the key or agent the call was made with, exactly as the log shows it. `status` is a class (`2xx`, `4xx`, `5xx`) or an exact code (`429`). `from` and `to` are instants, both ends included; `from` older than the plan's request log window, or after `to`, is 422. A caller limited to some brands does not reach this list. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `route` | query | no | string | | | `principal` | query | no | string | | | `status` | query | no | string | | | `from` | query | no | string (date-time) | | | `to` | query | no | string (date-time) | | Response `200`: [RequestLogPage](#schema-requestlogpage). A page of requests Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/requests" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/requests", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "principal": "string", "route": "string", "method": "string", "status": -9007199254740991, "durationMs": 0, "createdAt": "2026-10-21T09:00:00Z" } ], "nextCursor": "string" } ``` ### Read the caller's completed response by its request key {#op-getrequestbykey} `GET /v1/requests/by-key` Operation `getRequestByKey`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `route` | query | yes | string | | | `key` | query | yes | string | | Response `200`: [RequestReceipt](#schema-requestreceipt). The original completed response Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/requests/by-key?route=&key=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/requests/by-key?route=&key=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "status": -9007199254740991, "body": "string" } ``` ## Schemas ### Actor {#schema-actor} | Field | Type | Required | Description | |---|---|---|---| | `type` | `"member"` or `"agent"` or `"token"` or `"mcp_client"` or `"guest"` or `"system"` or `"profile_server_key"` or `"connect_token"` | yes | | | `id` | string (uuid) or null | yes | | | `name` | string or null | yes | | ### AnalyticsPostPage {#schema-analyticspostpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [AnalyticsPostRow](#schema-analyticspostrow)[] | yes | | | `nextCursor` | string or null | yes | | ### AnalyticsPostRow {#schema-analyticspostrow} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `excerpt` | string | yes | | | `state` | string | yes | | | `scheduledAt` | string (date-time) | yes | | | `verified` | integer | yes | | ### AttentionCount {#schema-attentioncount} | Field | Type | Required | Description | |---|---|---|---| | `count` | integer | yes | | ### AuthoredBy {#schema-authoredby} | Field | Type | Required | Description | |---|---|---|---| | `kind` | `"member"` or `"agent"` or `"api"` | yes | | | `name` | string or null | yes | | ### BrandGaps {#schema-brandgaps} | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) | yes | | | `timezone` | string | yes | | | `from` | string (date-time) | yes | | | `to` | string (date-time) | yes | | | `gaps` | [Gap](#schema-gap)[] | yes | | | `nextFree` | [Gap](#schema-gap)[] | yes | | ### CalendarItem {#schema-calendaritem} | Field | Type | Required | Description | |---|---|---|---| | `postId` | string (uuid) | yes | | | `revision` | integer | yes | | | `brandId` | string (uuid) | yes | | | `brandName` | string | yes | | | `state` | [PostState](#schema-poststate) | yes | | | `excerpt` | string | yes | | | `thumbnail` | [SignedUrl](#schema-signedurl) or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `networks` | [Network](#schema-network)[] | yes | | | `rollup` | [PostRollup](#schema-postrollup) | yes | | | `authoredBy` | [AuthoredBy](#schema-authoredby) | no | | | `destinations` | object[] | yes | | | `tags` | string[] | yes | | | `brandTimezone` | string | no | | | `displayAt` | string (date-time) or null | no | | | `displayHistorical` | boolean | no | | | `canReschedule` | boolean | no | | | `leadVideo` | object or null | no | | ### CalendarRange {#schema-calendarrange} | Field | Type | Required | Description | |---|---|---|---| | `from` | string (date-time) | yes | | | `to` | string (date-time) | yes | | | `timezone` | string | yes | | | `items` | [CalendarItem](#schema-calendaritem)[] | yes | | | `openSlots` | object[] | yes | | | `activeHolds` | [HoldView](#schema-holdview)[] | yes | | | `truncated` | boolean | yes | | | `nextCursor` | string or null | no | | | `viewerTimezone` | string | no | | ### ConnectionHealth {#schema-connectionhealth} Type: `"healthy"` or `"expiring"` or `"broken"` or `"missing_permission"` or `"disconnected"` ### ConnectionsMatrix {#schema-connectionsmatrix} | Field | Type | Required | Description | |---|---|---|---| | `generatedAt` | string (date-time) | yes | | | `brands` | object[] | yes | | | `networks` | [Network](#schema-network)[] | yes | | | `cells` | object[] | yes | | ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### DeliveryReliability {#schema-deliveryreliability} | Field | Type | Required | Description | |---|---|---|---| | `from` | string (date-time) | yes | | | `to` | string (date-time) | yes | | | `groups` | object[] | yes | | ### DeliveryState {#schema-deliverystate} Type: `"pending"` or `"scheduled"` or `"needs_reconnect"` or `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"failed"` or `"unknown"` or `"cancelled"` ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### Gap {#schema-gap} | Field | Type | Required | Description | |---|---|---|---| | `brandNetworkId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `channelId` | string (uuid) or null | yes | | | `at` | string (date-time) | yes | | ### HoldView {#schema-holdview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `scopeType` | `"org"` or `"workspace"` or `"brand"` or `"platform_app"` or `"credential"` or `"channel"` | yes | | | `scopeId` | string (uuid) | yes | | | `reason` | `"org_pause"` or `"brand_pause"` or `"budget"` or `"incident"` or `"app_disabled"` or `"transfer"` or `"module_missing"` or `"restore_quarantine"` or `"late_result"` or `"anomaly"` or `"workspace_pause"` | yes | | | `note` | string or null | yes | | | `createdBy` | [Actor](#schema-actor) | yes | | | `createdAt` | string (date-time) | yes | | | `releasedAt` | string (date-time) or null | yes | | | `releasedBy` | [Actor](#schema-actor) or null | yes | | ### NeedsYouCard {#schema-needsyoucard} | Field | Type | Required | Description | |---|---|---|---| | `kind` | `"reconnect"` or `"retry_failed"` or `"resolve_unknown"` or `"confirm_by_hand"` or `"add_alt_text"` or `"missed_slots"` or `"budget_hold"` or `"module_missing"` or `"preflight_blocked"` | yes | | | `count` | integer | yes | | | `brandId` | string (uuid) or null | yes | | | `subject` | object | yes | | | `actionOperationId` | string | yes | | | `openedAt` | string (date-time) | yes | | | `network` | [Network](#schema-network) or null | no | | | `channelId` | string (uuid) or null | no | | | `historical` | boolean | no | | | `postId` | string (uuid) or null | no | | | `postExcerpt` | string or null | no | | | `postLive` | [PostLive](#schema-postlive) or null | no | | | `rollup` | [PostRollup](#schema-postrollup) or null | no | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PostCard {#schema-postcard} | Field | Type | Required | Description | |---|---|---|---| | `postId` | string (uuid) | yes | | | `revision` | integer | yes | | | `brandId` | string (uuid) | yes | | | `brandName` | string | yes | | | `state` | [PostState](#schema-poststate) | yes | | | `excerpt` | string | yes | | | `thumbnail` | [SignedUrl](#schema-signedurl) or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `networks` | [Network](#schema-network)[] | yes | | | `rollup` | [PostRollup](#schema-postrollup) | yes | | | `authoredBy` | [AuthoredBy](#schema-authoredby) | no | | | `destinations` | object[] | yes | | ### PostLive {#schema-postlive} | Field | Type | Required | Description | |---|---|---|---| | `live` | integer | yes | | | `total` | integer | yes | | ### PostRollup {#schema-postrollup} | Field | Type | Required | Description | |---|---|---|---| | `total` | integer | yes | | | `verified` | integer | yes | | | `confirmedByPerson` | integer | yes | | | `acceptedOnly` | integer | yes | | | `failed` | integer | yes | | | `unknown` | integer | yes | | | `waiting` | integer | yes | | | `cancelled` | integer | yes | | | `allPublished` | boolean | yes | | ### PostState {#schema-poststate} Type: `"draft"` or `"in_review"` or `"approved"` or `"scheduled"` or `"cancelled"` ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### RequestLogPage {#schema-requestlogpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [RequestLogView](#schema-requestlogview)[] | yes | | | `nextCursor` | string or null | yes | | ### RequestLogView {#schema-requestlogview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `principal` | string | yes | | | `route` | string | yes | | | `method` | string | yes | | | `status` | integer | yes | | | `durationMs` | integer | yes | | | `createdAt` | string (date-time) | yes | | ### RequestReceipt {#schema-requestreceipt} | Field | Type | Required | Description | |---|---|---|---| | `status` | integer | yes | | | `body` | any | yes | | ### SearchHit {#schema-searchhit} | Field | Type | Required | Description | |---|---|---|---| | `kind` | `"brand"` or `"post"` or `"channel"` or `"media"` | yes | | | `id` | string (uuid) | yes | | | `brandId` | string (uuid) or null | yes | | | `label` | string | yes | | | `excerpt` | string or null | yes | | ### SearchPage {#schema-searchpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [SearchHit](#schema-searchhit)[] | yes | | | `nextCursor` | string or null | yes | | ### SignedUrl {#schema-signedurl} A signed media URL. Bearer access until it expires. In an answer that carries an ETag the URL is minted per fixed window: the expiry is rounded up to the next full hour plus one hour, and the signature is the same within that window, so the ETag changes only when the content does and polling with If-None-Match still gets 304. | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | | | `expiresAt` | string (date-time) | yes | | ### TodayView {#schema-todayview} | Field | Type | Required | Description | |---|---|---|---| | `generatedAt` | string (date-time) | yes | | | `brandId` | string (uuid) or null | yes | | | `summary` | object | yes | | | `needsYou` | [NeedsYouCard](#schema-needsyoucard)[] | yes | | | `attentionGroups` | object[] | no | | | `goingOutNext` | [PostCard](#schema-postcard)[] | yes | | | `wentLive` | [PostCard](#schema-postcard)[] | yes | | | `channels` | object | yes | | | `activeHolds` | [HoldView](#schema-holdview)[] | yes | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Exceptions What needs a person: the exceptions queue and its actions, and pausing or rehearsing posting per scope. 7 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/exceptions`](#op-listexceptions) | The exceptions queue: what needs a person, across the brands the caller can see | `content.read` | | [`GET /v1/exceptions/summary`](#op-getexceptionsummary) | Counts of what needs a person, by type and by brand | `content.read` | | [`GET /v1/exceptions/{exceptionId}`](#op-getexception) | One exception | `content.read` | | [`POST /v1/exceptions/{exceptionId}/actions`](#op-actonexception) | Fix an exception in place, or assign, snooze, resolve or reopen it | `content.read` | | [`POST /v1/exceptions/bulk`](#op-bulkactonexceptions) | Retry, snooze, resolve, assign or reopen the listed exceptions only | `content.read` | | [`GET /v1/safety`](#op-getsafety) | Whether posting is paused, for the organization and each brand | `content.read` | | [`PATCH /v1/safety/{scopeType}/{scopeId}`](#op-updatesafetyscope) | Pause or resume posting for the organization or one brand | `brand.settings` | ## Operations ### The exceptions queue: what needs a person, across the brands the caller can see {#op-listexceptions} `GET /v1/exceptions` Operation `listExceptions`. Needs a key with the scope `content.read`. Default `state` is `active` (open, assigned). `resolved` items stay searchable with `q`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `state` | query | no | `"active"` or `"open"` or `"assigned"` or `"snoozed"` or `"resolved"` | | | `type` | query | no | `"failed"` or `"unknown"` or `"blocked"` or `"late"` or `"paused"` or `"connection_expiring"` or `"connection_broken"` or `"missing_permission"` or `"late_approval"` or `"budget_exhausted"` or `"endpoint_failing"` or `"version_sunset"` or `"posting_anomaly"` | | | `brandId` | query | no | string (uuid) | | | `network` | query | no | `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` | | | `severity` | query | no | `"info"` or `"warning"` or `"critical"` | | | `q` | query | no | string | | Response `200`: [ExceptionPage](#schema-exceptionpage). A page of exceptions Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/exceptions" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/exceptions", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "type": "failed", "code": "string", "severity": "info", "state": "open", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "brandTimezone": "Europe/Riga", "network": "facebook", "subject": { "type": "post", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "label": "string" }, "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z", "minutesLate": 0, "deadlineAt": "2026-10-21T09:00:00Z", "cause": { "message": "string", "fix": "string" }, "retryRequiresPerson": false, "stalledQueue": false, "ownerId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "ownerName": "string", "snoozedUntil": "2026-10-21T09:00:00Z", "working": "retrying", "openedAt": "2026-10-21T09:00:00Z", "resolvedAt": "2026-10-21T09:00:00Z", "fixes": [ "retry" ], "count": 0 } ], "nextCursor": "string" } ``` ### Counts of what needs a person, by type and by brand {#op-getexceptionsummary} `GET /v1/exceptions/summary` Operation `getExceptionSummary`. Needs a key with the scope `content.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | query | no | string (uuid) | | Response `200`: [ExceptionSummary](#schema-exceptionsummary). The counts Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/exceptions/summary" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/exceptions/summary", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "open": 0, "attentionCount": 0, "snoozed": 0, "lateSweep": { "everyMinutes": 0, "lastRunAt": "2026-10-21T09:00:00Z" }, "byType": [ { "type": "failed", "count": 0 } ], "byBrand": [ { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "count": 0 } ] } ``` ### One exception {#op-getexception} `GET /v1/exceptions/{exceptionId}` Operation `getException`. Needs a key with the scope `content.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `exceptionId` | path | yes | string (uuid) | | Response `200`: [ExceptionView](#schema-exceptionview). The exception Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/exceptions/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/exceptions/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "type": "failed", "code": "string", "severity": "info", "state": "open", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "brandTimezone": "Europe/Riga", "network": "facebook", "subject": { "type": "post", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "label": "string" }, "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "postLive": { "live": 0, "total": 0 }, "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z", "minutesLate": 0, "deadlineAt": "2026-10-21T09:00:00Z", "cause": { "message": "string", "fix": "string" }, "retryRequiresPerson": false, "stalledQueue": false, "ownerId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "ownerName": "string", "snoozedUntil": "2026-10-21T09:00:00Z", "working": "retrying", "openedAt": "2026-10-21T09:00:00Z", "resolvedAt": "2026-10-21T09:00:00Z", "fixes": [ "retry" ], "count": 0 } ``` ### Fix an exception in place, or assign, snooze, resolve or reopen it {#op-actonexception} `POST /v1/exceptions/{exceptionId}/actions` Operation `actOnException`. Needs a key with the scope `content.read`. A fix runs the matching command (retry, status check, mark live, confirm missing, reschedule, cancel) and resolves the item when it worked. The caller needs the capability of that command. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `exceptionId` | path | yes | string (uuid) | | Request body: [ExceptionActionInput](#schema-exceptionactioninput) Response `200`: [ExceptionActionResult](#schema-exceptionactionresult). The exception Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`409 duplicate_risk_unacknowledged`](../errors.md#status-409), [`409 dispatch_started`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 budget_exhausted`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/exceptions//actions" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "action": "retry", "acceptDuplicateRisk": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/exceptions//actions", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "action": "retry", "acceptDuplicateRisk": false }), }); const data = await res.json(); ``` ```json title="Response 200" { "exception": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "type": "failed", "code": "string", "severity": "info", "state": "open", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "brandTimezone": "Europe/Riga", "network": "facebook", "subject": { "type": "post", "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "label": "string" }, "postId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "channelId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "scheduledAt": "2026-10-21T09:00:00Z", "minutesLate": 0, "deadlineAt": "2026-10-21T09:00:00Z", "cause": { "message": "string", "fix": "string" }, "retryRequiresPerson": false, "stalledQueue": false, "ownerId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "ownerName": "string", "snoozedUntil": "2026-10-21T09:00:00Z", "working": "retrying", "openedAt": "2026-10-21T09:00:00Z", "resolvedAt": "2026-10-21T09:00:00Z", "fixes": [ "retry" ], "count": 0 }, "outcome": "done" } ``` ### Retry, snooze, resolve, assign or reopen the listed exceptions only {#op-bulkactonexceptions} `POST /v1/exceptions/bulk` Operation `bulkActOnExceptions`. Needs a key with the scope `content.read`. Each id is checked on its own: the caller's capability, its state and its brand. Items that cannot act come back in `skipped` with the reason. Nothing outside `ids` is touched. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [ExceptionBulkInput](#schema-exceptionbulkinput) | Field | Type | Required | Description | |---|---|---|---| | `ids` | string (uuid)[] | yes | | | `action` | object | yes | | Response `200`: [ExceptionBulkResult](#schema-exceptionbulkresult). What acted Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/exceptions/bulk" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "action": { "action": "retry" } }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/exceptions/bulk", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "ids": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "action": { "action": "retry" } }), }); const data = await res.json(); ``` ```json title="Response 200" { "done": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "skipped": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "reason": "needs_person" } ] } ``` ### Whether posting is paused, for the organization and each brand {#op-getsafety} `GET /v1/safety` Operation `getSafety`. Needs a key with the scope `content.read`. Response `200`: [SafetyView](#schema-safetyview). The scopes the caller can see Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/safety" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/safety", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "scopes": [ { "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "paused": false, "pausedAt": "2026-10-21T09:00:00Z", "pausedByName": "string", "reason": "string", "dueNext24h": 0, "canChange": false, "revision": 0 } ] } ``` ### Pause or resume posting for the organization or one brand {#op-updatesafetyscope} `PATCH /v1/safety/{scopeType}/{scopeId}` Operation `updateSafetyScope`. Needs a key with the scope `brand.settings`. The organization needs `org.manage`; a brand needs `brand.settings`. A pause makes due deliveries exceptions and sends nothing to a network; resuming releases them, and a brand manager cannot resume a pause placed with organization rights (the rule of `releaseHold`). A pause applies to posts that have not started; a thread already started finishes, and a send already in progress completes. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `scopeType` | path | yes | `"org"` or `"brand"` | | | `scopeId` | path | yes | string (uuid) | | Request body: [UpdateSafetyScopeInput](#schema-updatesafetyscopeinput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `paused` | boolean | yes | | | `reason` | string | no | | Response `200`: [SafetyScope](#schema-safetyscope). The scope Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/safety//" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "paused": false, "reason": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/safety//", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "paused": false, "reason": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "paused": false, "pausedAt": "2026-10-21T09:00:00Z", "pausedByName": "string", "reason": "string", "dueNext24h": 0, "canChange": false, "revision": 0 } ``` ## Schemas ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### ExceptionActionInput {#schema-exceptionactioninput} Type: object ### ExceptionActionResult {#schema-exceptionactionresult} | Field | Type | Required | Description | |---|---|---|---| | `exception` | [ExceptionView](#schema-exceptionview) | yes | | | `outcome` | `"done"` or `"started"` | yes | | ### ExceptionBulkInput {#schema-exceptionbulkinput} | Field | Type | Required | Description | |---|---|---|---| | `ids` | string (uuid)[] | yes | | | `action` | object | yes | | ### ExceptionBulkResult {#schema-exceptionbulkresult} | Field | Type | Required | Description | |---|---|---|---| | `done` | string (uuid)[] | yes | | | `skipped` | object[] | yes | | ### ExceptionFixAction {#schema-exceptionfixaction} Type: `"retry"` or `"recheck"` or `"check_now"` or `"mark_live"` or `"confirm_missing"` or `"reschedule"` or `"cancel"` or `"reconnect"` or `"edit_and_resubmit"` ### ExceptionPage {#schema-exceptionpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [ExceptionView](#schema-exceptionview)[] | yes | | | `nextCursor` | string or null | yes | | ### ExceptionState {#schema-exceptionstate} Type: `"open"` or `"assigned"` or `"snoozed"` or `"resolved"` ### ExceptionSummary {#schema-exceptionsummary} | Field | Type | Required | Description | |---|---|---|---| | `open` | integer | yes | | | `attentionCount` | integer | no | | | `snoozed` | integer | yes | | | `lateSweep` | object | yes | | | `byType` | object[] | yes | | | `byBrand` | object[] | yes | | ### ExceptionType {#schema-exceptiontype} Type: `"failed"` or `"unknown"` or `"blocked"` or `"late"` or `"paused"` or `"connection_expiring"` or `"connection_broken"` or `"missing_permission"` or `"late_approval"` or `"budget_exhausted"` or `"endpoint_failing"` or `"version_sunset"` or `"posting_anomaly"` ### ExceptionView {#schema-exceptionview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `type` | [ExceptionType](#schema-exceptiontype) | yes | | | `code` | string | yes | | | `severity` | `"info"` or `"warning"` or `"critical"` | yes | | | `state` | [ExceptionState](#schema-exceptionstate) | yes | | | `brandId` | string (uuid) or null | yes | | | `brandName` | string or null | yes | | | `brandTimezone` | string or null | yes | | | `network` | [Network](#schema-network) or null | yes | | | `subject` | object | yes | | | `postId` | string (uuid) or null | yes | | | `postLive` | [PostLive](#schema-postlive) or null | no | | | `channelId` | string (uuid) or null | yes | | | `deliveryId` | string (uuid) or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `minutesLate` | integer or null | yes | | | `deadlineAt` | string (date-time) or null | yes | | | `cause` | object or null | yes | | | `retryRequiresPerson` | boolean | yes | | | `stalledQueue` | boolean | yes | | | `ownerId` | string (uuid) or null | yes | | | `ownerName` | string or null | yes | | | `snoozedUntil` | string (date-time) or null | yes | | | `working` | `"retrying"` or `"checking"` or null | yes | | | `openedAt` | string (date-time) | yes | | | `resolvedAt` | string (date-time) or null | yes | | | `fixes` | [ExceptionFixAction](#schema-exceptionfixaction)[] | yes | | | `count` | integer | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PostLive {#schema-postlive} | Field | Type | Required | Description | |---|---|---|---| | `live` | integer | yes | | | `total` | integer | yes | | ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### SafetyScope {#schema-safetyscope} | Field | Type | Required | Description | |---|---|---|---| | `scopeType` | [SafetyScopeType](#schema-safetyscopetype) | yes | | | `scopeId` | string (uuid) | yes | | | `name` | string | yes | | | `paused` | boolean | yes | | | `pausedAt` | string (date-time) or null | yes | | | `pausedByName` | string or null | yes | | | `reason` | string or null | yes | | | `dueNext24h` | integer | yes | | | `canChange` | boolean | yes | | | `revision` | integer | yes | | ### SafetyScopeType {#schema-safetyscopetype} Type: `"org"` or `"brand"` ### SafetyView {#schema-safetyview} | Field | Type | Required | Description | |---|---|---|---| | `scopes` | [SafetyScope](#schema-safetyscope)[] | yes | | ### UpdateSafetyScopeInput {#schema-updatesafetyscopeinput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `paused` | boolean | yes | | | `reason` | string | no | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Assist Model settings and the requests that adapt text, draft from an article or learn a brand's voice. 6 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/model-configurations`](#op-listmodelconfigurations) | List the saved model configurations | any key | | [`PUT /v1/model-configurations`](#op-savemodelconfiguration) | Save the provider, model and key for an organization or a brand | any key | | [`GET /v1/model-configurations/{configurationId}`](#op-getmodelconfiguration) | Read one model configuration | any key | | [`POST /v1/brands/{brandId}/assist`](#op-createassistrequest) | Ask the model to adapt text, draft from an article or learn a voice | `post.draft` | | [`POST /v1/brands/{brandId}/assist/test`](#op-testmodelconfiguration) | Send a small test request with the saved key | `brand.settings` | | [`GET /v1/brands/{brandId}/assist/{id}`](#op-getassistrequest) | Read an assist request and its result | `content.read` | ## Operations ### List the saved model configurations {#op-listmodelconfigurations} `GET /v1/model-configurations` Operation `listModelConfigurations`. Any API key of the organization may call it. With `brandId` the brand's configuration (needs `brand.settings`); without it the organization's (needs `org.manage`). No key is returned. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | query | no | string (uuid) | | Response `200`: [ModelConfigurationList](#schema-modelconfigurationlist). Safe model configuration metadata Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/model-configurations" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/model-configurations", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "provider": "string", "model": "string", "baseUrl": "string", "revision": -9007199254740991, "hasKey": false } ] ``` ### Save the provider, model and key for an organization or a brand {#op-savemodelconfiguration} `PUT /v1/model-configurations` Operation `saveModelConfiguration`. Any API key of the organization may call it. The key is sealed on arrival and never returned. A brand configuration needs `brand.settings`; the organization's needs `org.manage`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [SaveModelConfigurationInput](#schema-savemodelconfigurationinput) | Field | Type | Required | Description | |---|---|---|---| | `provider` | `"openai"` or `"anthropic"` or `"google"` or `"openrouter"` or `"openai-compatible"` | yes | | | `model` | string | yes | | | `baseUrl` | string (uri) | no | | | `brandId` | string (uuid) or null | yes | | | `apiKey` | string | yes | | Response `200`: [ModelConfigurationView](#schema-modelconfigurationview). Safe model configuration metadata Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PUT "https://app.postbroad.com/v1/model-configurations" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "provider": "openai", "model": "string", "baseUrl": "https://example.com", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "apiKey": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/model-configurations", { method: "PUT", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "provider": "openai", "model": "string", "baseUrl": "https://example.com", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "apiKey": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "provider": "string", "model": "string", "baseUrl": "string", "revision": -9007199254740991, "hasKey": false } ``` ### Read one model configuration {#op-getmodelconfiguration} `GET /v1/model-configurations/{configurationId}` Operation `getModelConfiguration`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `configurationId` | path | yes | string (uuid) | | Response `200`: [ModelConfigurationView](#schema-modelconfigurationview). Safe model configuration metadata Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/model-configurations/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/model-configurations/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "provider": "string", "model": "string", "baseUrl": "string", "revision": -9007199254740991, "hasKey": false } ``` ### Ask the model to adapt text, draft from an article or learn a voice {#op-createassistrequest} `POST /v1/brands/{brandId}/assist` Operation `createAssistRequest`. Needs a key with the scope `post.draft`. Needs `post.draft` in the brand and an `Idempotency-Key`. The request is durable and answers 202 at once; read it with `getAssistRequest`. Automated principals (agents) are refused: an assist request needs a person or a personal token. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Request body: [AssistInput](#schema-assistinput) | Field | Type | Required | Description | |---|---|---|---| | `kind` | `"adapt"` or `"article"` or `"voice"` or `"test"` or `"hashtags"` | yes | | | `sourceText` | string | no | | | `sourceUrl` | string (uri) | no | | | `channelIds` | string (uuid)[] | no | | Response `202`: [AssistRequestView](#schema-assistrequestview). The durable assist request Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/brands//assist" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "kind": "adapt", "sourceText": "", "sourceUrl": "https://example.com", "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//assist", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "kind": "adapt", "sourceText": "", "sourceUrl": "https://example.com", "channelIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "pending", "result": "string", "errorCode": "string" } ``` ### Send a small test request with the saved key {#op-testmodelconfiguration} `POST /v1/brands/{brandId}/assist/test` Operation `testModelConfiguration`. Needs a key with the scope `brand.settings`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | Request body: [TestModelConfigurationInput](#schema-testmodelconfigurationinput) Response `202`: [AssistRequestView](#schema-assistrequestview). The durable assist request Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/brands//assist/test" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{}' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//assist/test", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({}), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "pending", "result": "string", "errorCode": "string" } ``` ### Read an assist request and its result {#op-getassistrequest} `GET /v1/brands/{brandId}/assist/{id}` Operation `getAssistRequest`. Needs a key with the scope `content.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `brandId` | path | yes | string (uuid) | | | `id` | path | yes | string (uuid) | | Response `200`: [AssistRequestView](#schema-assistrequestview). The assist request Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/brands//assist/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/brands//assist/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "pending", "result": "string", "errorCode": "string" } ``` ## Schemas ### AssistInput {#schema-assistinput} | Field | Type | Required | Description | |---|---|---|---| | `kind` | `"adapt"` or `"article"` or `"voice"` or `"test"` or `"hashtags"` | yes | | | `sourceText` | string | no | | | `sourceUrl` | string (uri) | no | | | `channelIds` | string (uuid)[] | no | | ### AssistRequestView {#schema-assistrequestview} A durable assist request. Poll it until it leaves `pending` and `running`; the result is never returned with a key or a provider response body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `state` | `"pending"` or `"running"` or `"succeeded"` or `"failed"` or `"unknown"` | yes | | | `result` | any | yes | | | `errorCode` | string or null | yes | | ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### ModelConfigurationList {#schema-modelconfigurationlist} Type: [ModelConfigurationView](#schema-modelconfigurationview)[] ### ModelConfigurationView {#schema-modelconfigurationview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `brandId` | string (uuid) or null | yes | | | `provider` | string | yes | | | `model` | string | yes | | | `baseUrl` | string | yes | | | `revision` | integer | yes | | | `hasKey` | boolean | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### SaveModelConfigurationInput {#schema-savemodelconfigurationinput} | Field | Type | Required | Description | |---|---|---|---| | `provider` | `"openai"` or `"anthropic"` or `"google"` or `"openrouter"` or `"openai-compatible"` | yes | | | `model` | string | yes | | | `baseUrl` | string (uri) | no | | | `brandId` | string (uuid) or null | yes | | | `apiKey` | string | yes | | ### TestModelConfigurationInput {#schema-testmodelconfigurationinput} Type: object ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Notifications A member's notifications, activity feed, preferences and browser push. 11 operations, every one needs an API key. Read the [concepts](../../guides/concepts.md) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/notifications/preferences`](#op-listnotificationpreferences) | Your notification preferences by brand and severity | any key | | [`PUT /v1/notifications/preferences`](#op-setnotificationpreference) | Set your notification preference | any key | | [`GET /v1/notifications/feed`](#op-listnotificationfeed) | The signed-in member's activity feed | `content.read` | | [`GET /v1/notifications/feed/unread`](#op-getunreadnotificationfeedcount) | Unread visible activity | `content.read` | | [`POST /v1/notifications/feed/read`](#op-marknotificationfeedread) | Mark verified activity read | `content.read` | | [`GET /v1/notifications`](#op-listnotifications) | The signed-in member's notifications, newest first | any key | | [`GET /v1/notifications/unread`](#op-getunreadnotificationcount) | How many notifications are unread, for the bell | any key | | [`POST /v1/notifications/read`](#op-marknotificationsread) | Mark some notifications, or all of them, as read | any key | | [`GET /v1/push/config`](#op-getpushconfig) | Browser push availability | any key | | [`POST /v1/push/subscriptions`](#op-registerpushsubscription) | Enable push for this browser session | any key | | [`DELETE /v1/push/subscriptions/{id}`](#op-deletepushsubscription) | Disable push for this browser | any key | ## Operations ### Your notification preferences by brand and severity {#op-listnotificationpreferences} `GET /v1/notifications/preferences` Operation `listNotificationPreferences`. Any API key of the organization may call it. Response `200`: [NotificationOverrides](#schema-notificationoverrides). Visible brand overrides Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/notifications/preferences" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/notifications/preferences", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "defaults": { "inApp": false, "email": false }, "data": [ { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "severity": "info", "inApp": false, "email": false } ] } ``` ### Set your notification preference {#op-setnotificationpreference} `PUT /v1/notifications/preferences` Operation `setNotificationPreference`. Any API key of the organization may call it. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [SetNotificationOverride](#schema-setnotificationoverride) | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) | yes | | | `severity` | `"info"` or `"warning"` or `"critical"` | yes | | | `inApp` | boolean | yes | | | `email` | boolean | yes | | Response `200`: [NotificationOverride](#schema-notificationoverride). Preference saved Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PUT "https://app.postbroad.com/v1/notifications/preferences" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "severity": "info", "inApp": false, "email": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/notifications/preferences", { method: "PUT", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "severity": "info", "inApp": false, "email": false }), }); const data = await res.json(); ``` ```json title="Response 200" { "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "severity": "info", "inApp": false, "email": false } ``` ### The signed-in member's activity feed {#op-listnotificationfeed} `GET /v1/notifications/feed` Operation `listNotificationFeed`. Needs a key with the scope `content.read`. Verified activity is shown from visible history when in-app notifications are enabled. A member's read state is independent of other members. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `filter` | query | no | `"all"` or `"needs_you"` or `"went_live"` | | Response `200`: [NotificationFeedPage](#schema-notificationfeedpage). A page of visible activity Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/notifications/feed" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/notifications/feed", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "exception", "exceptionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "type": "string", "severity": "info", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "network": "string", "label": "string", "eventCount": 0, "readAt": "2026-10-21T09:00:00Z", "createdAt": "2026-10-21T09:00:00Z", "updatedAt": "2026-10-21T09:00:00Z" } ], "nextCursor": "string" } ``` ### Unread visible activity {#op-getunreadnotificationfeedcount} `GET /v1/notifications/feed/unread` Operation `getUnreadNotificationFeedCount`. Needs a key with the scope `content.read`. Response `200`: [UnreadCount](#schema-unreadcount). The count Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/notifications/feed/unread" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/notifications/feed/unread", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "unread": 0 } ``` ### Mark verified activity read {#op-marknotificationfeedread} `POST /v1/notifications/feed/read` Operation `markNotificationFeedRead`. Needs a key with the scope `content.read`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [MarkNotificationFeedReadInput](#schema-marknotificationfeedreadinput) Response `200`: [MarkNotificationsReadResult](#schema-marknotificationsreadresult). Read state recorded Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/notifications/feed/read" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "deliveries": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "verifiedAt": "2026-10-21T09:00:00Z" } ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/notifications/feed/read", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "deliveries": [ { "deliveryId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "verifiedAt": "2026-10-21T09:00:00Z" } ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "unread": 0, "more": false } ``` ### The signed-in member's notifications, newest first {#op-listnotifications} `GET /v1/notifications` Operation `listNotifications`. Any API key of the organization may call it. Only the person's own in-app notifications, and only for brands they can still see. Needs a signed-in member: a token, an agent or an MCP client is refused. The cursor is tied to the `status` filter. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | | `status` | query | no | `"all"` or `"unread"` | | Response `200`: [NotificationPage](#schema-notificationpage). A page of notifications Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/notifications" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/notifications", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "exception", "exceptionId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "type": "string", "severity": "info", "brandId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "brandName": "string", "network": "string", "label": "string", "eventCount": 0, "readAt": "2026-10-21T09:00:00Z", "createdAt": "2026-10-21T09:00:00Z", "updatedAt": "2026-10-21T09:00:00Z" } ], "nextCursor": "string" } ``` ### How many notifications are unread, for the bell {#op-getunreadnotificationcount} `GET /v1/notifications/unread` Operation `getUnreadNotificationCount`. Any API key of the organization may call it. Response `200`: [UnreadCount](#schema-unreadcount). The count Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/notifications/unread" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/notifications/unread", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "unread": 0 } ``` ### Mark some notifications, or all of them, as read {#op-marknotificationsread} `POST /v1/notifications/read` Operation `markNotificationsRead`. Any API key of the organization may call it. `ids` marks up to 100 of the caller's own notifications (others are ignored). `all` marks up to 1000 at a time and says `more: true` while unread remain, so call it again. Marking a read notification again changes nothing. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [MarkNotificationsReadInput](#schema-marknotificationsreadinput) Response `200`: [MarkNotificationsReadResult](#schema-marknotificationsreadresult). What remains unread Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/notifications/read" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/notifications/read", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "ids": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] }), }); const data = await res.json(); ``` ```json title="Response 200" { "unread": 0, "more": false } ``` ### Browser push availability {#op-getpushconfig} `GET /v1/push/config` Operation `getPushConfig`. Any API key of the organization may call it. Response `200`: [PushConfig](#schema-pushconfig). Public push configuration Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/push/config" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/push/config", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "available": false, "publicKey": "string", "subscriptionIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ``` ### Enable push for this browser session {#op-registerpushsubscription} `POST /v1/push/subscriptions` Operation `registerPushSubscription`. Any API key of the organization may call it. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [PushSubscriptionInput](#schema-pushsubscriptioninput) | Field | Type | Required | Description | |---|---|---|---| | `endpoint` | string | yes | | | `keys` | object | yes | | Response `200`: [PushSubscriptionView](#schema-pushsubscriptionview). Registered device Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/push/subscriptions" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "endpoint": "string", "keys": { "p256dh": "string", "auth": "string" } }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/push/subscriptions", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "endpoint": "string", "keys": { "p256dh": "string", "auth": "string" } }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ``` ### Disable push for this browser {#op-deletepushsubscription} `DELETE /v1/push/subscriptions/{id}` Operation `deletePushSubscription`. Any API key of the organization may call it. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `id` | path | yes | string (uuid) | | Response `204`. Removed Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X DELETE "https://app.postbroad.com/v1/push/subscriptions/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/push/subscriptions/", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ## Schemas ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### MarkNotificationFeedReadInput {#schema-marknotificationfeedreadinput} Type: object ### MarkNotificationsReadInput {#schema-marknotificationsreadinput} Type: object ### MarkNotificationsReadResult {#schema-marknotificationsreadresult} | Field | Type | Required | Description | |---|---|---|---| | `unread` | integer | yes | | | `more` | boolean | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### NotificationFeedItem {#schema-notificationfeeditem} Type: object ### NotificationFeedPage {#schema-notificationfeedpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [NotificationFeedItem](#schema-notificationfeeditem)[] | yes | | | `nextCursor` | string or null | yes | | ### NotificationOverride {#schema-notificationoverride} | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) | yes | | | `severity` | `"info"` or `"warning"` or `"critical"` | yes | | | `inApp` | boolean | yes | | | `email` | boolean | yes | | ### NotificationOverrides {#schema-notificationoverrides} | Field | Type | Required | Description | |---|---|---|---| | `defaults` | object | yes | | | `data` | [NotificationOverride](#schema-notificationoverride)[] | yes | | ### NotificationPage {#schema-notificationpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [NotificationView](#schema-notificationview)[] | yes | | | `nextCursor` | string or null | yes | | ### NotificationView {#schema-notificationview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `kind` | `"exception"` | yes | | | `exceptionId` | string (uuid) | yes | | | `type` | string or null | yes | | | `severity` | `"info"` or `"warning"` or `"critical"` | yes | | | `brandId` | string (uuid) or null | yes | | | `brandName` | string or null | yes | | | `network` | string or null | yes | | | `label` | string | yes | | | `eventCount` | integer | yes | | | `readAt` | string (date-time) or null | yes | | | `createdAt` | string (date-time) | yes | | | `updatedAt` | string (date-time) | yes | | ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### PushConfig {#schema-pushconfig} | Field | Type | Required | Description | |---|---|---|---| | `available` | boolean | yes | | | `publicKey` | string or null | yes | | | `subscriptionIds` | string (uuid)[] | yes | | ### PushSubscriptionInput {#schema-pushsubscriptioninput} | Field | Type | Required | Description | |---|---|---|---| | `endpoint` | string | yes | | | `keys` | object | yes | | ### PushSubscriptionView {#schema-pushsubscriptionview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | ### SetNotificationOverride {#schema-setnotificationoverride} | Field | Type | Required | Description | |---|---|---|---| | `brandId` | string (uuid) | yes | | | `severity` | `"info"` or `"warning"` or `"critical"` | yes | | | `inApp` | boolean | yes | | | `email` | boolean | yes | | ### UnreadCount {#schema-unreadcount} | Field | Type | Required | Description | |---|---|---|---| | `unread` | integer | yes | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Organization and keys The signed-in member, organizations, API keys and who can act, the activity log, exports, deletion, MCP grants and command line sign-in. 30 operations, 28 need an API key. Read the [concepts](../../guides/concepts.md) first. Keys are made and revoked only by a person signed in to the app; see [Authentication](../authentication.md). Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /v1/me`](#op-getme) | The signed-in member, organizations, role bindings and preferences | any key | | [`PATCH /v1/me`](#op-updateme) | Change the signed-in member's name in this organization | any key | | [`PATCH /v1/me/preferences`](#op-updatemypreferences) | Change theme, time display or prompt dismissals | any key | | [`POST /v1/auth/reauthenticate`](#op-reauthenticate) | Confirm the signed-in member's password to unlock sensitive changes | any key | | [`POST /v1/orgs`](#op-createorganization) | Create another organization for the signed-in account | any key | | [`POST /v1/me/deletion`](#op-deletemylogin) | Delete the signed-in person's own login in every organization | any key | | [`GET /v1/orgs/{org}`](#op-getorg) | An organization: kind, limits and registered modules | any key | | [`PATCH /v1/orgs/{org}`](#op-updateorg) | Rename the organization or change its kind (labels and sidebar only) | `org.manage` | | [`POST /v1/orgs/{org}/ownership`](#op-transferorgownership) | The Owner hands the organization to another member and becomes an Admin | `org.delete` | | [`GET /v1/audit-integrity`](#op-getauditintegrity) | Check a bounded snapshot of the organization audit chain | `audit.read` | | [`GET /v1/audit-events`](#op-listauditevents) | The activity log, newest first | `audit.read` | | [`POST /v1/audit-exports`](#op-createauditexport) | Queue a CSV export of the filtered activity log | `audit.read` | | [`GET /v1/audit-exports/{id}`](#op-getauditexport) | Read the caller's audit export and its short-lived download link | `audit.read` | | [`GET /v1/audit-exports/{id}/content`](#op-downloadauditexport) | Download the CSV after rechecking the requester, scope and its signature | `audit.read` | | [`GET /v1/principals`](#op-listprincipals) | People, agents, API tokens and connected apps that can act in the organization | any key | | [`POST /v1/principals/{id}/revoke`](#op-revokeprincipal) | End the access of an agent, an API token or a connected app | any key | | [`GET /v1/tokens`](#op-listapitokens) | API keys, newest first, without secrets | any key | | [`POST /v1/tokens`](#op-createapitoken) | Create an API key; the secret is in this answer only | `token.manage` | | [`POST /v1/tokens/{tokenId}/revoke`](#op-revokeapitoken) | Revoke an API key; the next call with it fails | any key | | [`POST /v1/device/code`](#op-deviceauthorize) | Start a command line sign-in; returns a device code and a user code | no key | | [`POST /v1/device/token`](#op-devicetoken) | Exchange an approved device code for an API key, once | no key | | [`GET /v1/device/requests/{userCode}`](#op-getdevicerequest) | What a command line tool asks for, by its user code | any key | | [`POST /v1/device/requests/{userCode}/decision`](#op-decidedevicerequest) | Approve or refuse a command line sign-in | any key | | [`GET /v1/mcp/grants`](#op-listmymcpgrants) | List the signed-in member's MCP grants | `content.read` | | [`DELETE /v1/mcp/grants/{grantId}`](#op-revokemymcpgrant) | Revoke the signed-in member's own MCP grant | `content.read` | | [`POST /v1/exports`](#op-createaccountexport) | Queue an export of the interactive member's current visible account data | `content.read` | | [`GET /v1/exports/{requestId}`](#op-getaccountexport) | Read the caller's export and its short-lived download link | any key | | [`GET /v1/exports/{requestId}/content`](#op-downloadaccountexport) | Download an export after rechecking membership, scope and its principal-bound signature | any key | | [`POST /v1/orgs/{org}/deletion`](#op-requestorgdeletion) | Queue organization deletion and receive a durable receipt reference | `org.delete` | | [`GET /v1/deletions/{requestId}`](#op-getorgdeletion) | Read the signed-in requester's deletion receipt even after organization erasure | any key | ## Operations ### The signed-in member, organizations, role bindings and preferences {#op-getme} `GET /v1/me` Operation `getMe`. Any API key of the organization may call it. Response `200`: [Me](#schema-me). The member Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/me" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/me", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "member": { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "avatarUrl": "string" }, "orgs": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "slug": "northwind", "name": "string", "kind": "creator" } ], "bindings": [ { "orgId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "role": "owner", "scopeType": "org", "scopeId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" } ], "preferences": { "theme": "dark", "timeDisplay": "brand", "timezone": "Europe/Riga", "dismissedPrompts": {} } } ``` ### Change the signed-in member's name in this organization {#op-updateme} `PATCH /v1/me` Operation `updateMe`. Any API key of the organization may call it. Only an interactive member session; a key, an agent or a connected app gets 403. The name is the one people see on Team, on reviews and in the activity log of this organization. The email address does not change here. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [UpdateMeInput](#schema-updatemeinput) | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | Response `200`: [MyProfile](#schema-myprofile). The stored name Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/me" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/me", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "name": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string" } ``` ### Change theme, time display or prompt dismissals {#op-updatemypreferences} `PATCH /v1/me/preferences` Operation `updateMyPreferences`. Any API key of the organization may call it. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [UpdatePreferencesInput](#schema-updatepreferencesinput) | Field | Type | Required | Description | |---|---|---|---| | `theme` | `"dark"` or `"light"` or `"system"` | no | | | `timeDisplay` | `"brand"` or `"viewer"` | no | | | `timezone` | string or null | no | | | `dismissedPrompts` | map of string (date-time) or null | no | | Response `200`: [Preferences](#schema-preferences). The stored preferences Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/me/preferences" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "theme": "dark", "timeDisplay": "brand", "timezone": "Europe/Riga", "dismissedPrompts": {} }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/me/preferences", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "theme": "dark", "timeDisplay": "brand", "timezone": "Europe/Riga", "dismissedPrompts": {} }), }); const data = await res.json(); ``` ```json title="Response 200" { "theme": "dark", "timeDisplay": "brand", "timezone": "Europe/Riga", "dismissedPrompts": {} } ``` ### Confirm the signed-in member's password to unlock sensitive changes {#op-reauthenticate} `POST /v1/auth/reauthenticate` Operation `reauthenticate`. Any API key of the organization may call it. Only an interactive member session can call this; tokens, agents and connected apps get 403. A right password marks the session as freshly signed in for ten minutes, so routes that answer `reauth_required` work again. A wrong password is 400 `invalid_credentials`. After five wrong attempts in fifteen minutes the member is locked out of this route and gets 429 `rate_limited` until the oldest attempt ages out. Wrong and right attempts are recorded in the audit log without the password. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [ReauthenticateInput](#schema-reauthenticateinput) | Field | Type | Required | Description | |---|---|---|---| | `password` | string | yes | | Response `200`: [Reauthenticated](#schema-reauthenticated). The session is fresh Errors: [`400 bad_request`](../errors.md#status-400), [`400 invalid_credentials`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/auth/reauthenticate" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "password": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/auth/reauthenticate", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "password": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "reauthenticatedAt": "2026-10-21T09:00:00Z", "expiresAt": "2026-10-21T09:00:00Z" } ``` ### Create another organization for the signed-in account {#op-createorganization} `POST /v1/orgs` Operation `createOrganization`. Any API key of the organization may call it. The caller must be a person signed in with a fresh sign-in and a verified email; a key, an agent or a connected app is refused. The caller becomes the Owner of the new organization, which has its own default workspace, its own limits (`limits(org)`) and its own audit log. An account can belong to at most 50 organizations. Safe to repeat with the same Idempotency-Key. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreateOrgInput](#schema-createorginput) | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | Response `201`: [CreatedOrg](#schema-createdorg). The new organization Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/orgs" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/orgs", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "name": "string" }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "slug": "northwind", "name": "string", "kind": "creator" } ``` ### Delete the signed-in person's own login in every organization {#op-deletemylogin} `POST /v1/me/deletion` Operation `deleteMyLogin`. Any API key of the organization may call it. Only an interactive member session that signed in within ten minutes; tokens, agents and connected apps get 403. The person types the login's email to confirm. Refused with 409 `conflict` (and `organizations`) while they are the last Owner of any organization: nothing is changed. Otherwise every membership is erased (bindings, tokens, grants and agents stop working, name and email are removed, one audit event per organization) and then the login with its sessions, linked accounts, second factor and passkeys. The login stops working first, so an interrupted deletion never leaves a login that signs in to nothing. The email address becomes free to sign up with again as a new, unlinked login; service keys, connected accounts and everything else the organization owns stay with it. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [DeleteLoginInput](#schema-deletelogininput) | Field | Type | Required | Description | |---|---|---|---| | `confirmEmail` | string | yes | | Response `200`: [LoginDeleted](#schema-logindeleted). The login is gone Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 conflict`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/me/deletion" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "confirmEmail": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/me/deletion", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "confirmEmail": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "organizations": 0 } ``` ### An organization: kind, limits and registered modules {#op-getorg} `GET /v1/orgs/{org}` Operation `getOrg`. Any API key of the organization may call it. `org` is the id or the slug. An org the caller is not a member of is 404. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `org` | path | yes | string | | Response `200`: [OrgView](#schema-orgview). The organization Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/orgs/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/orgs/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "slug": "northwind", "name": "string", "kind": "creator", "kindChosen": false, "limits": { "brands": 0, "accounts": 0, "accountsPerNetwork": 0, "members": 0, "analyticsDays": 0, "tokenKinds": 0, "requestLogDays": 0, "postsPerMonth": 0 }, "posts": { "used": 0, "limit": 0, "monthStart": "2026-10-21T09:00:00Z", "resetsAt": "2026-10-21T09:00:00Z" }, "modules": [ "agent" ], "capabilities": [ "string" ], "readsContent": false, "readsAnalytics": false, "postingGuard": "off", "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### Rename the organization or change its kind (labels and sidebar only) {#op-updateorg} `PATCH /v1/orgs/{org}` Operation `updateOrg`. Needs a key with the scope `org.manage`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `org` | path | yes | string | | Request body: [UpdateOrgInput](#schema-updateorginput) | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `name` | string | no | | | `kind` | [OrgKind](#schema-orgkind) | no | | | `postingGuard` | `"off"` or `"alert"` or `"pause"` | no | | Response `200`: [OrgView](#schema-orgview). The organization Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`409 revision_mismatch`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X PATCH "https://app.postbroad.com/v1/orgs/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "expectedRevision": 0, "name": "string", "kind": "creator", "postingGuard": "off" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/orgs/", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "expectedRevision": 0, "name": "string", "kind": "creator", "postingGuard": "off" }), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "slug": "northwind", "name": "string", "kind": "creator", "kindChosen": false, "limits": { "brands": 0, "accounts": 0, "accountsPerNetwork": 0, "members": 0, "analyticsDays": 0, "tokenKinds": 0, "requestLogDays": 0, "postsPerMonth": 0 }, "posts": { "used": 0, "limit": 0, "monthStart": "2026-10-21T09:00:00Z", "resetsAt": "2026-10-21T09:00:00Z" }, "modules": [ "agent" ], "capabilities": [ "string" ], "readsContent": false, "readsAnalytics": false, "postingGuard": "off", "createdAt": "2026-10-21T09:00:00Z", "revision": 0 } ``` ### The Owner hands the organization to another member and becomes an Admin {#op-transferorgownership} `POST /v1/orgs/{org}/ownership` Operation `transferOrgOwnership`. Needs a key with the scope `org.delete`. Only an Owner's interactive session that signed in within ten minutes; tokens, agents and connected apps get 403. The member must be active, someone else, and able to sign in. Audited as `org.transfer_ownership`. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `org` | path | yes | string | | Request body: [TransferOwnershipInput](#schema-transferownershipinput) | Field | Type | Required | Description | |---|---|---|---| | `memberId` | string (uuid) | yes | | | `stepDown` | boolean | no | | Response `200`: [OwnershipTransferred](#schema-ownershiptransferred). The member is the Owner Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`403 limit_reached`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/orgs//ownership" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "memberId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "stepDown": false }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/orgs//ownership", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "memberId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "stepDown": false }), }); const data = await res.json(); ``` ```json title="Response 200" { "memberId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "steppedDown": false } ``` ### Check a bounded snapshot of the organization audit chain {#op-getauditintegrity} `GET /v1/audit-integrity` Operation `getAuditIntegrity`. Needs a key with the scope `audit.read`. Requires organization-wide audit access. Checks database history through the captured head; this does not establish external checkpoint completeness. Response `200`: [AuditIntegrity](#schema-auditintegrity). Verification status Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/audit-integrity" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/audit-integrity", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "status": "ok", "upTo": "string", "events": 0, "checkpointsChecked": 0, "signaturesVerified": 0, "checkpoint": { "day": "2026-10-21", "lastId": "string", "headHash": "string", "keyId": "string" }, "problems": [ { "kind": "string" } ] } ``` ### The activity log, newest first {#op-listauditevents} `GET /v1/audit-events` Operation `listAuditEvents`. Needs a key with the scope `audit.read`. Needs `audit.read` across the organization. A caller limited to some brands gets 403 or 404, never a partial log. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `actorKind` | query | no | `"member"` or `"agent"` or `"token"` or `"mcp"` or `"guest"` or `"app"` or `"system"` | | | `q` | query | no | string | | | `from` | query | no | string (date) | | | `to` | query | no | string (date) | | | `cursor` | query | no | string | | | `limit` | query | no | integer | | Response `200`: [AuditPage](#schema-auditpage). A page of events Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/audit-events" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/audit-events", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "string", "at": "2026-10-21T09:00:00Z", "actor": { "id": "string", "kind": "member", "name": "string" }, "action": "string", "subject": { "type": "string", "id": "string", "label": "string" }, "beforeHash": "string", "afterHash": "string" } ], "nextCursor": "string" } ``` ### Queue a CSV export of the filtered activity log {#op-createauditexport} `POST /v1/audit-exports` Operation `createAuditExport`. Needs a key with the scope `audit.read`. Needs `audit.read` and a fresh sign-in. The file holds the events that matched at the moment of the request, newest first, with the same columns as the list and nothing else. More than 10000 matching events is 422: narrow the filters. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [AuditExportInput](#schema-auditexportinput) | Field | Type | Required | Description | |---|---|---|---| | `actorKind` | `"member"` or `"agent"` or `"token"` or `"mcp"` or `"guest"` or `"app"` or `"system"` | no | | | `q` | string | no | | | `from` | string (date) | no | | | `to` | string (date) | no | | Response `202`: [AuditExportView](#schema-auditexportview). The durable export request Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/audit-exports" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "actorKind": "member", "q": "string", "from": "2026-10-21", "to": "2026-10-21" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/audit-exports", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "actorKind": "member", "q": "string", "from": "2026-10-21", "to": "2026-10-21" }), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "rows": 0, "downloadUrl": "https://example.com" } ``` ### Read the caller's audit export and its short-lived download link {#op-getauditexport} `GET /v1/audit-exports/{id}` Operation `getAuditExport`. Needs a key with the scope `audit.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `id` | path | yes | string (uuid) | | Response `200`: [AuditExportView](#schema-auditexportview). The export Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500), [`503 unavailable`](../errors.md#status-503). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/audit-exports/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/audit-exports/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "rows": 0, "downloadUrl": "https://example.com" } ``` ### Download the CSV after rechecking the requester, scope and its signature {#op-downloadauditexport} `GET /v1/audit-exports/{id}/content` Operation `downloadAuditExport`. Needs a key with the scope `audit.read`. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `id` | path | yes | string (uuid) | | | `org` | query | yes | string (uuid) | | | `expires` | query | yes | string | | | `signature` | query | yes | string | | Response `200`. A private CSV file Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/audit-exports//content?org=&expires=&signature=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/audit-exports//content?org=&expires=&signature=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ### People, agents, API tokens and connected apps that can act in the organization {#op-listprincipals} `GET /v1/principals` Operation `listPrincipals`. Any API key of the organization may call it. A caller who holds `members.manage` or `audit.read` across the organization sees everyone. Any other caller sees only themselves and the agents, keys and connected apps that act for them, so the list never exposes other people's emails. Response `200`: [PrincipalList](#schema-principallist). The principals Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/principals" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/principals", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "kind": "member", "name": "string", "detail": "string", "role": "string", "actsFor": "string", "status": "active", "lastActiveAt": "2026-10-21T09:00:00Z", "mode": "approve", "postsPerDay": 0, "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ] } ] } ``` ### End the access of an agent, an API token or a connected app {#op-revokeprincipal} `POST /v1/principals/{id}/revoke` Operation `revokePrincipal`. Any API key of the organization may call it. Agents are disabled, API tokens and MCP grants are revoked; every later call with them is refused. Needs a fresh sign-in. The caller must own the agent, key or grant, or hold `agent.manage`, `token.manage` or `members.manage` respectively where it works. A person's id is 422: people are managed on the team page. Revoking something already revoked succeeds. The action is recorded in the audit log. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `id` | path | yes | string (uuid) | | Response `200`: [PrincipalRevoked](#schema-principalrevoked). The principal is revoked Errors: [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/principals//revoke" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/principals//revoke", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "status": "revoked" } ``` ### API keys, newest first, without secrets {#op-listapitokens} `GET /v1/tokens` Operation `listApiTokens`. Any API key of the organization may call it. Needs a signed-in person; a key, an agent or a connected app is refused. A caller who holds `token.manage` sees every key of the organization, anyone else sees only the keys they own. Response `200`: [ApiTokenList](#schema-apitokenlist). The API keys Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/tokens" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/tokens", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "kind": "personal", "prefix": "string", "scopes": [ "string" ], "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "readOnly": false, "ipAllowlist": [ "string" ], "ownerType": "member", "ownerId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "expiresAt": "2026-10-21T09:00:00Z", "lastUsedAt": "2026-10-21T09:00:00Z", "revokedAt": "2026-10-21T09:00:00Z", "createdAt": "2026-10-21T09:00:00Z" } ] } ``` ### Create an API key; the secret is in this answer only {#op-createapitoken} `POST /v1/tokens` Operation `createApiToken`. Needs a key with the scope `token.manage`. Needs a fresh sign-in and `token.manage` where the key will work. A key never carries a capability its creator lacks there, and a service key needs explicit scopes. The secret is returned once and stored only as a hash. The action is recorded in the audit log. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [CreateApiTokenInput](#schema-createapitokeninput) | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | | `kind` | [ApiTokenKind](#schema-apitokenkind) | yes | | | `scopes` | string[] | no | | | `brandIds` | string (uuid)[] | no | | | `readOnly` | boolean | no | | | `ipAllowlist` | string[] | no | | | `expiresAt` | string (date-time) or null | no | | Response `201`: [CreatedApiToken](#schema-createdapitoken). The key and its secret Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/tokens" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "kind": "personal", "scopes": [ "string" ], "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "readOnly": false, "ipAllowlist": [ "string" ], "expiresAt": "2026-10-21T09:00:00Z" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/tokens", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "name": "string", "kind": "personal", "scopes": [ "string" ], "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "readOnly": false, "ipAllowlist": [ "string" ], "expiresAt": "2026-10-21T09:00:00Z" }), }); const data = await res.json(); ``` ```json title="Response 201" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "kind": "personal", "prefix": "string", "scopes": [ "string" ], "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "readOnly": false, "ipAllowlist": [ "string" ], "ownerType": "member", "ownerId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "expiresAt": "2026-10-21T09:00:00Z", "lastUsedAt": "2026-10-21T09:00:00Z", "revokedAt": "2026-10-21T09:00:00Z", "createdAt": "2026-10-21T09:00:00Z", "browser": { "name": "string", "version": "string", "paused": false, "firstSeenAt": "2026-10-21T09:00:00Z", "lastSeenAt": "2026-10-21T09:00:00Z", "boundAccounts": 0, "selfTest": { "checkedAt": "2026-10-21T09:00:00Z", "results": [ { "network": null, "ok": false } ] } }, "secret": "string" } ``` ### Revoke an API key; the next call with it fails {#op-revokeapitoken} `POST /v1/tokens/{tokenId}/revoke` Operation `revokeApiToken`. Any API key of the organization may call it. The owner of a key can always revoke it; anyone else needs `token.manage` where it works. Needs a signed-in person. Revoking a key that is already revoked succeeds. The action is recorded in the audit log. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `tokenId` | path | yes | string (uuid) | | Request body: [RevokeApiTokenInput](#schema-revokeapitokeninput) Response `200`: [ApiToken](#schema-apitoken). The key, now revoked Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/tokens//revoke" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{}' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/tokens//revoke", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({}), }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "name": "string", "kind": "personal", "prefix": "string", "scopes": [ "string" ], "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "readOnly": false, "ipAllowlist": [ "string" ], "ownerType": "member", "ownerId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "expiresAt": "2026-10-21T09:00:00Z", "lastUsedAt": "2026-10-21T09:00:00Z", "revokedAt": "2026-10-21T09:00:00Z", "createdAt": "2026-10-21T09:00:00Z", "browser": { "name": "string", "version": "string", "paused": false, "firstSeenAt": "2026-10-21T09:00:00Z", "lastSeenAt": "2026-10-21T09:00:00Z", "boundAccounts": 0, "selfTest": { "checkedAt": "2026-10-21T09:00:00Z", "results": [ { "network": null, "ok": false } ] } } } ``` ### Start a command line sign-in; returns a device code and a user code {#op-deviceauthorize} `POST /v1/device/code` Operation `deviceAuthorize`. No key needed. Public. Follows RFC 8628: the body is form or JSON with `client_id`, an optional `scope` and `name`. Answers 200 with the codes, 400 `{"error": "invalid_client"}` or `invalid_scope`, and 429 with `Retry-After` when an address asks too often (10 per 10 minutes) or the installation is flooded. A code lives for ten minutes and works once. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [DeviceAuthorizationRequest](#schema-deviceauthorizationrequest) | Field | Type | Required | Description | |---|---|---|---| | `client_id` | string | yes | | | `scope` | string | no | | | `name` | string | no | | Response `200`: [DeviceAuthorization](#schema-deviceauthorization). The device code and the user code Errors: [`400 bad_request`](../errors.md#status-400), [`429 rate_limited`](../errors.md#status-429). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/device/code" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "client_id": "string", "scope": "string", "name": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/device/code", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "client_id": "string", "scope": "string", "name": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "device_code": "string", "user_code": "string", "verification_uri": "string", "verification_uri_complete": "string", "expires_in": 0, "interval": 0 } ``` ### Exchange an approved device code for an API key, once {#op-devicetoken} `POST /v1/device/token` Operation `deviceToken`. No key needed. Public. Follows RFC 8628 3.4: the body is form or JSON with `grant_type`, `device_code` and `client_id`. Answers 200 with the key once the request is approved. Until then 400 `authorization_pending`; polled sooner than `interval` seconds, 400 `slow_down` with a longer `interval`; refused, 400 `access_denied`; late, 400 `expired_token`; unknown or already collected, 400 `invalid_grant`. The key is made at this call, so it never sits in the database. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Request body: [DeviceTokenRequest](#schema-devicetokenrequest) | Field | Type | Required | Description | |---|---|---|---| | `grant_type` | `"urn:ietf:params:oauth:grant-type:device_code"` | yes | | | `device_code` | string | yes | | | `client_id` | string | yes | | Response `200`: [DeviceToken](#schema-devicetoken). The API key Errors: [`400 bad_request`](../errors.md#status-400), [`429 rate_limited`](../errors.md#status-429). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/device/token" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "grant_type": "urn:ietf:params:oauth:grant-type:device_code", "device_code": "string", "client_id": "string" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/device/token", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "grant_type": "urn:ietf:params:oauth:grant-type:device_code", "device_code": "string", "client_id": "string" }), }); const data = await res.json(); ``` ```json title="Response 200" { "access_token": "string", "token_type": "Bearer", "expires_in": 0, "scope": "string" } ``` ### What a command line tool asks for, by its user code {#op-getdevicerequest} `GET /v1/device/requests/{userCode}` Operation `getDeviceRequest`. Any API key of the organization may call it. Needs a signed-in person; a key, an agent or a connected app is refused. 404 for a code that is unknown, decided, collected or late; five wrong codes in 15 minutes answer 429. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `userCode` | path | yes | string | | Response `200`: [DeviceRequest](#schema-devicerequest). The waiting request Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/device/requests/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/device/requests/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "userCode": "string", "clientId": "string", "clientName": "string", "scopes": [ "string" ], "deviceName": "string", "userAgent": "string", "requestedAt": "2026-10-21T09:00:00Z", "expiresAt": "2026-10-21T09:00:00Z" } ``` ### Approve or refuse a command line sign-in {#op-decidedevicerequest} `POST /v1/device/requests/{userCode}/decision` Operation `decideDeviceRequest`. Any API key of the organization may call it. Needs a fresh sign-in by a person. Approving also needs `token.manage` where the key will work, and the key can carry only some of what the tool asked for and only what the approver holds there. Refusing needs only the sign-in. Both are recorded in the audit log; the key itself is made when the tool collects it, in the name of the approver. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `userCode` | path | yes | string | | Request body: [DeviceDecisionInput](#schema-devicedecisioninput) | Field | Type | Required | Description | |---|---|---|---| | `decision` | `"approve"` or `"deny"` | yes | | | `scopes` | string[] | no | | | `brandIds` | string (uuid)[] | no | | | `readOnly` | boolean | no | | | `expiresInDays` | integer | no | | Response `200`: [DeviceDecision](#schema-devicedecision). The decision was recorded Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/device/requests//decision" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "decision": "approve", "scopes": [ "string" ], "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "readOnly": false, "expiresInDays": 1 }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/device/requests//decision", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "decision": "approve", "scopes": [ "string" ], "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "readOnly": false, "expiresInDays": 1 }), }); const data = await res.json(); ``` ```json title="Response 200" { "status": "approved" } ``` ### List the signed-in member's MCP grants {#op-listmymcpgrants} `GET /v1/mcp/grants` Operation `listMyMcpGrants`. Needs a key with the scope `content.read`. Requires a genuine interactive member session. Does not return token material. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `cursor` | query | no | string | | | `limit` | query | no | integer | | Response `200`: [McpGrantPage](#schema-mcpgrantpage). Own grants Errors: [`400 bad_request`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/mcp/grants" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/mcp/grants", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "data": [ { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "clientId": "string", "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "scopes": [ "string" ], "mode": "approve", "budget": {}, "createdAt": "2026-10-21T09:00:00Z", "revokedAt": "2026-10-21T09:00:00Z" } ], "nextCursor": "string" } ``` ### Revoke the signed-in member's own MCP grant {#op-revokemymcpgrant} `DELETE /v1/mcp/grants/{grantId}` Operation `revokeMyMcpGrant`. Needs a key with the scope `content.read`. Requires a genuine interactive member session. Cannot manage another person's grant, even as an organization administrator. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `grantId` | path | yes | string (uuid) | | Response `200`: [McpGrantView](#schema-mcpgrantview). Revoked own grant Errors: [`400 bad_request`](../errors.md#status-400), [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X DELETE "https://app.postbroad.com/v1/mcp/grants/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/mcp/grants/", { method: "DELETE", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "clientId": "string", "brandIds": [ "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" ], "scopes": [ "string" ], "mode": "approve", "budget": {}, "createdAt": "2026-10-21T09:00:00Z", "revokedAt": "2026-10-21T09:00:00Z" } ``` ### Queue an export of the interactive member's current visible account data {#op-createaccountexport} `POST /v1/exports` Operation `createAccountExport`. Needs a key with the scope `content.read`. Needs a signed-in member session with a fresh sign-in. No API key, agent or MCP client can ask for, read or download an account export. Requires an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Response `202`: [ExportRequestView](#schema-exportrequestview). The durable export request Errors: [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/exports" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/exports", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), }, }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "createdAt": "2026-10-21T09:00:00Z", "finishedAt": "2026-10-21T09:00:00Z", "expiresAt": "2026-10-21T09:00:00Z", "errorCode": "string", "downloadUrl": "https://example.com" } ``` ### Read the caller's export and its short-lived download link {#op-getaccountexport} `GET /v1/exports/{requestId}` Operation `getAccountExport`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `requestId` | path | yes | string (uuid) | | Response `200`: [ExportRequestView](#schema-exportrequestview). The caller's export request Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/exports/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/exports/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "createdAt": "2026-10-21T09:00:00Z", "finishedAt": "2026-10-21T09:00:00Z", "expiresAt": "2026-10-21T09:00:00Z", "errorCode": "string", "downloadUrl": "https://example.com" } ``` ### Download an export after rechecking membership, scope and its principal-bound signature {#op-downloadaccountexport} `GET /v1/exports/{requestId}/content` Operation `downloadAccountExport`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `requestId` | path | yes | string (uuid) | | | `org` | query | yes | string (uuid) | | | `expires` | query | yes | string | | | `signature` | query | yes | string | | Response `200`. An NDJSON account export Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`422 validation_failed`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/exports//content?org=&expires=&signature=" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/exports//content?org=&expires=&signature=", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ### Queue organization deletion and receive a durable receipt reference {#op-requestorgdeletion} `POST /v1/orgs/{org}/deletion` Operation `requestOrgDeletion`. Needs a key with the scope `org.delete`. Accepts an `Idempotency-Key` header. Add `?dry_run=true` where the operation supports it to get a preview and write nothing. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `org` | path | yes | string | | Request body: [DeletionRequestInput](#schema-deletionrequestinput) | Field | Type | Required | Description | |---|---|---|---| | `requestId` | string (uuid) | no | | Response `202`: [DeletionRequestView](#schema-deletionrequestview). The durable deletion request Errors: [`400 idempotency_key_required`](../errors.md#status-400), [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`403 reauth_required`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`409 request_in_progress`](../errors.md#status-409), [`422 validation_failed`](../errors.md#status-422), [`422 idempotency_key_reused`](../errors.md#status-422), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X POST "https://app.postbroad.com/v1/orgs//deletion" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "requestId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" }' ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/orgs//deletion", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "requestId": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01" }), }); const data = await res.json(); ``` ```json title="Response 202" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "createdAt": "2026-10-21T09:00:00Z", "finishedAt": "2026-10-21T09:00:00Z", "errorCode": "string", "receipt": {} } ``` ### Read the signed-in requester's deletion receipt even after organization erasure {#op-getorgdeletion} `GET /v1/deletions/{requestId}` Operation `getOrgDeletion`. Any API key of the organization may call it. Parameters | Name | In | Required | Type | Description | |---|---|---|---|---| | `requestId` | path | yes | string (uuid) | | Response `200`: [DeletionRequestView](#schema-deletionrequestview). The caller's deletion status and receipt Errors: [`401 unauthenticated`](../errors.md#status-401), [`403 forbidden`](../errors.md#status-403), [`404 not_found`](../errors.md#status-404), [`429 rate_limited`](../errors.md#status-429), [`500 internal`](../errors.md#status-500). ```bash title="curl" curl -X GET "https://app.postbroad.com/v1/deletions/" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/v1/deletions/", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01", "state": "queued", "createdAt": "2026-10-21T09:00:00Z", "finishedAt": "2026-10-21T09:00:00Z", "errorCode": "string", "receipt": {} } ``` ## Schemas ### AccountExportDocument {#schema-accountexportdocument} Type: string ### ApiToken {#schema-apitoken} An API key as listed. The secret is never part of it. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `name` | string | yes | | | `kind` | [ApiTokenKind](#schema-apitokenkind) | yes | | | `prefix` | string | yes | | | `scopes` | string[] | yes | | | `brandIds` | string (uuid)[] | yes | | | `readOnly` | boolean | yes | | | `ipAllowlist` | string[] | yes | | | `ownerType` | `"member"` or `"agent"` | yes | | | `ownerId` | string (uuid) | yes | | | `expiresAt` | string (date-time) or null | yes | | | `lastUsedAt` | string (date-time) or null | yes | | | `revokedAt` | string (date-time) or null | yes | | | `createdAt` | string (date-time) | yes | | | `browser` | [PairedBrowser](#schema-pairedbrowser) or null | no | | ### ApiTokenKind {#schema-apitokenkind} Type: `"personal"` or `"service"` ### ApiTokenList {#schema-apitokenlist} API keys, newest first. A caller who holds `token.manage` sees every key of the organization, anyone else sees only their own. At most 500. | Field | Type | Required | Description | |---|---|---|---| | `data` | [ApiToken](#schema-apitoken)[] | yes | | ### AuditEvent {#schema-auditevent} | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | | | `at` | string (date-time) | yes | | | `actor` | object | yes | | | `action` | string | yes | | | `subject` | object | yes | | | `beforeHash` | string or null | yes | | | `afterHash` | string or null | yes | | ### AuditExportDocument {#schema-auditexportdocument} Type: string ### AuditExportInput {#schema-auditexportinput} | Field | Type | Required | Description | |---|---|---|---| | `actorKind` | `"member"` or `"agent"` or `"token"` or `"mcp"` or `"guest"` or `"app"` or `"system"` | no | | | `q` | string | no | | | `from` | string (date) | no | | | `to` | string (date) | no | | ### AuditExportView {#schema-auditexportview} A CSV export of the filtered activity log: queued, built by the export worker, then downloadable for an hour. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"queued"` or `"running"` or `"done"` or `"failed"` | yes | | | `rows` | integer or null | yes | | | `downloadUrl` | string (uri) or null | yes | | ### AuditIntegrity {#schema-auditintegrity} | Field | Type | Required | Description | |---|---|---|---| | `status` | `"ok"` or `"failed"` or `"unverified"` or `"incomplete"` | yes | | | `upTo` | string | yes | | | `events` | integer | yes | | | `checkpointsChecked` | integer | yes | | | `signaturesVerified` | integer | yes | | | `checkpoint` | object or null | yes | | | `problems` | object[] | yes | | ### AuditPage {#schema-auditpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [AuditEvent](#schema-auditevent)[] | yes | | | `nextCursor` | string or null | yes | | ### BrowserNetwork {#schema-browsernetwork} A network the extension posts to (BROWSER_CAPABLE_NETWORKS). Type: `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` or `"linkedin"` or `"threads"` or `"pinterest"` or `"instagram"` or `"facebook"` ### BrowserSelfTest {#schema-browserselftest} | Field | Type | Required | Description | |---|---|---|---| | `checkedAt` | string (date-time) | yes | | | `results` | object[] | yes | | ### CostEstimate {#schema-costestimate} | Field | Type | Required | Description | |---|---|---|---| | `unit` | string | yes | | | `amountMicros` | integer | yes | | | `currency` | `"USD"` | yes | | | `billedBy` | `"postbroad"` or `"third_party"` | yes | | ### CreateApiTokenInput {#schema-createapitokeninput} | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | | `kind` | [ApiTokenKind](#schema-apitokenkind) | yes | | | `scopes` | string[] | no | | | `brandIds` | string (uuid)[] | no | | | `readOnly` | boolean | no | | | `ipAllowlist` | string[] | no | | | `expiresAt` | string (date-time) or null | no | | ### CreateOrgInput {#schema-createorginput} | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | ### CreatedApiToken {#schema-createdapitoken} A new API key with its secret. This answer is the only time the secret exists. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `name` | string | yes | | | `kind` | [ApiTokenKind](#schema-apitokenkind) | yes | | | `prefix` | string | yes | | | `scopes` | string[] | yes | | | `brandIds` | string (uuid)[] | yes | | | `readOnly` | boolean | yes | | | `ipAllowlist` | string[] | yes | | | `ownerType` | `"member"` or `"agent"` | yes | | | `ownerId` | string (uuid) | yes | | | `expiresAt` | string (date-time) or null | yes | | | `lastUsedAt` | string (date-time) or null | yes | | | `revokedAt` | string (date-time) or null | yes | | | `createdAt` | string (date-time) | yes | | | `browser` | [PairedBrowser](#schema-pairedbrowser) or null | no | | | `secret` | string | yes | | ### CreatedOrg {#schema-createdorg} The new organization. Its creator is its Owner; select it with the Postbroad-Org header. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `slug` | string | yes | | | `name` | string | yes | | | `kind` | [OrgKind](#schema-orgkind) | yes | | ### DeleteLoginInput {#schema-deletelogininput} | Field | Type | Required | Description | |---|---|---|---| | `confirmEmail` | string | yes | | ### DeletionPreview {#schema-deletionpreview} | Field | Type | Required | Description | |---|---|---|---| | `organizationId` | string (uuid) | yes | | | `inventory` | object | yes | | | `deliveries` | object[] | yes | | | `irreversible` | `true` | yes | | | `completionRequiresDrain` | `true` | yes | | | `publishedRemotePostsAreNotDeleted` | `true` | yes | | | `financialEvidenceRetained` | `true` | yes | | | `effect` | `"freeze_drain_archive_erase"` | yes | | ### DeletionRequestInput {#schema-deletionrequestinput} | Field | Type | Required | Description | |---|---|---|---| | `requestId` | string (uuid) | no | | ### DeletionRequestView {#schema-deletionrequestview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"queued"` or `"running"` or `"done"` or `"failed"` | yes | | | `createdAt` | string (date-time) | yes | | | `finishedAt` | string (date-time) or null | yes | | | `errorCode` | string or null | yes | | | `receipt` | map of any or null | yes | | ### DestinationKind {#schema-destinationkind} Type: `"feed"` or `"board"` or `"subreddit"` or `"chat"` or `"channel"` or `"community"` or `"group"` or `"forum"` or `"list"` or `"publication"` or `"organization"` or `"playlist"` ### DeviceAuthorization {#schema-deviceauthorization} A pending sign-in. The device code is shown here once. | Field | Type | Required | Description | |---|---|---|---| | `device_code` | string | yes | | | `user_code` | string | yes | | | `verification_uri` | string | yes | | | `verification_uri_complete` | string | yes | | | `expires_in` | integer | yes | | | `interval` | integer | yes | | ### DeviceAuthorizationRequest {#schema-deviceauthorizationrequest} | Field | Type | Required | Description | |---|---|---|---| | `client_id` | string | yes | | | `scope` | string | no | | | `name` | string | no | | ### DeviceDecision {#schema-devicedecision} | Field | Type | Required | Description | |---|---|---|---| | `status` | `"approved"` or `"denied"` | yes | | ### DeviceDecisionInput {#schema-devicedecisioninput} | Field | Type | Required | Description | |---|---|---|---| | `decision` | `"approve"` or `"deny"` | yes | | | `scopes` | string[] | no | | | `brandIds` | string (uuid)[] | no | | | `readOnly` | boolean | no | | | `expiresInDays` | integer | no | | ### DeviceRequest {#schema-devicerequest} A sign-in waiting for a decision. | Field | Type | Required | Description | |---|---|---|---| | `userCode` | string | yes | | | `clientId` | string | yes | | | `clientName` | string | yes | | | `scopes` | string[] | yes | | | `deviceName` | string or null | yes | | | `userAgent` | string or null | yes | | | `requestedAt` | string (date-time) | yes | | | `expiresAt` | string (date-time) | yes | | ### DeviceToken {#schema-devicetoken} The API key a person approved. This answer is the only time the secret exists. | Field | Type | Required | Description | |---|---|---|---| | `access_token` | string | yes | | | `token_type` | `"Bearer"` | yes | | | `expires_in` | integer | yes | | | `scope` | string | yes | | ### DeviceTokenRequest {#schema-devicetokenrequest} | Field | Type | Required | Description | |---|---|---|---| | `grant_type` | `"urn:ietf:params:oauth:grant-type:device_code"` | yes | | | `device_code` | string | yes | | | `client_id` | string | yes | | ### DispatchingRef {#schema-dispatchingref} A delivery that had already started (or gone live) when the change committed; it may still publish. | Field | Type | Required | Description | |---|---|---|---| | `deliveryId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `state` | `"sending"` or `"accepted"` or `"processing"` or `"published"` or `"unknown"` | yes | | | `claimedAt` | string (date-time) or null | yes | | | `versionNo` | integer | yes | | ### ErrorCode {#schema-errorcode} Type: `"bad_request"` or `"org_required"` or `"unauthenticated"` or `"reauth_required"` or `"invalid_credentials"` or `"forbidden"` or `"not_found"` or `"method_not_allowed"` or `"idempotency_key_required"` or `"idempotency_key_reused"` or `"request_in_progress"` or `"revision_mismatch"` or `"preview_required"` or `"preview_stale"` or `"dispatch_started"` or `"duplicate_risk_unacknowledged"` or `"conflict"` or `"validation_failed"` or `"rule_violation"` or `"budget_exhausted"` or `"limit_reached"` or `"organization_frozen"` or `"approval_required"` or `"unsupported_media_type"` or `"payload_too_large"` or `"rate_limited"` or `"internal"` or `"unavailable"` or `"busy"` or `"timeout"` ### ExportRequestView {#schema-exportrequestview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `state` | `"queued"` or `"running"` or `"done"` or `"failed"` | yes | | | `createdAt` | string (date-time) | yes | | | `finishedAt` | string (date-time) or null | yes | | | `expiresAt` | string (date-time) or null | yes | | | `errorCode` | string or null | yes | | | `downloadUrl` | string (uri) or null | yes | | ### Limits {#schema-limits} | Field | Type | Required | Description | |---|---|---|---| | `brands` | integer or null | yes | | | `accounts` | integer or null | yes | | | `accountsPerNetwork` | integer or null | yes | | | `members` | integer or null | yes | | | `analyticsDays` | integer or null | yes | | | `tokenKinds` | integer or null | yes | | | `requestLogDays` | integer or null | yes | | | `postsPerMonth` | integer or null | yes | | ### LoginDeleted {#schema-logindeleted} | Field | Type | Required | Description | |---|---|---|---| | `organizations` | integer | yes | | ### McpGrantPage {#schema-mcpgrantpage} | Field | Type | Required | Description | |---|---|---|---| | `data` | [McpGrantView](#schema-mcpgrantview)[] | yes | | | `nextCursor` | string or null | yes | | ### McpGrantView {#schema-mcpgrantview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `clientId` | string | yes | | | `brandIds` | string (uuid)[] | yes | | | `scopes` | string[] | yes | | | `mode` | `"approve"` or `"autopilot"` | yes | | | `budget` | object or null | yes | | | `createdAt` | string (date-time) | yes | | | `revokedAt` | string (date-time) or null | yes | | ### Me {#schema-me} The signed-in member, the organizations they belong to, their role bindings and preferences. | Field | Type | Required | Description | |---|---|---|---| | `member` | object | yes | | | `orgs` | object[] | yes | | | `bindings` | [RoleBindingView](#schema-rolebindingview)[] | yes | | | `preferences` | [Preferences](#schema-preferences) | yes | | ### MyProfile {#schema-myprofile} The signed-in member's name as stored in this organization. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `name` | string | yes | | ### Network {#schema-network} Type: `"facebook"` or `"instagram"` or `"threads"` or `"linkedin"` or `"bluesky"` or `"x"` or `"tiktok"` or `"youtube"` or `"google_business_profile"` or `"reddit"` or `"telegram"` or `"discord"` or `"slack"` or `"pinterest"` or `"dribbble"` or `"mastodon"` or `"whop"` or `"twitch"` or `"kick"` or `"farcaster"` or `"vk"` or `"lemmy"` or `"mewe"` or `"nostr"` or `"listmonk"` or `"wordpress"` or `"medium"` or `"hashnode"` or `"devto"` or `"ghost"` or `"snapchat"` or `"odnoklassniki"` or `"tumblr"` or `"flickr"` or `"vimeo"` or `"dailymotion"` or `"soundcloud"` or `"beehiiv"` or `"discourse"` or `"circle"` or `"mighty_networks"` or `"viber"` or `"line"` or `"hatena_blog"` or `"wechat"` or `"kuaishou"` or `"zalo"` or `"band"` or `"pixelfed"` or `"misskey"` or `"peertube"` or `"hive"` or `"lens"` or `"moltbook"` or `"facebook_groups"` or `"facebook_profile"` or `"substack_notes"` or `"skool"` ### OrgKind {#schema-orgkind} Type: `"creator"` or `"agency"` or `"developer"` ### OrgView {#schema-orgview} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `slug` | string | yes | | | `name` | string | yes | | | `kind` | [OrgKind](#schema-orgkind) | yes | | | `kindChosen` | boolean | yes | | | `limits` | [Limits](#schema-limits) | yes | | | `posts` | [PostAllowance](#schema-postallowance) | yes | | | `modules` | `"agent"` or `"generation"`[] | yes | | | `capabilities` | string[] | yes | | | `readsContent` | boolean | no | | | `readsAnalytics` | boolean | no | | | `postingGuard` | `"off"` or `"alert"` or `"pause"` | yes | | | `createdAt` | string (date-time) | yes | | | `revision` | integer | yes | | ### OwnershipTransferred {#schema-ownershiptransferred} | Field | Type | Required | Description | |---|---|---|---| | `memberId` | string (uuid) | yes | | | `steppedDown` | boolean | yes | | ### PairedBrowser {#schema-pairedbrowser} | Field | Type | Required | Description | |---|---|---|---| | `name` | string or null | yes | | | `version` | string or null | yes | | | `paused` | boolean | yes | | | `firstSeenAt` | string (date-time) | yes | | | `lastSeenAt` | string (date-time) | yes | | | `boundAccounts` | integer | yes | | | `selfTest` | [BrowserSelfTest](#schema-browserselftest) or null | yes | | ### PostAllowance {#schema-postallowance} | Field | Type | Required | Description | |---|---|---|---| | `used` | integer | yes | | | `limit` | integer or null | yes | | | `monthStart` | string (date-time) | yes | | | `resetsAt` | string (date-time) | yes | | ### Preferences {#schema-preferences} | Field | Type | Required | Description | |---|---|---|---| | `theme` | `"dark"` or `"light"` or `"system"` | yes | | | `timeDisplay` | `"brand"` or `"viewer"` | yes | | | `timezone` | string or null | yes | | | `dismissedPrompts` | map of string (date-time) | yes | | ### PreflightResult {#schema-preflightresult} Type: object ### PreviewDestination {#schema-previewdestination} | Field | Type | Required | Description | |---|---|---|---| | `channelId` | string (uuid) | yes | | | `network` | [Network](#schema-network) | yes | | | `handle` | string or null | yes | | | `scheduledAt` | string (date-time) or null | yes | | | `payloadHash` | string | yes | | | `payload` | [PreviewPayload](#schema-previewpayload) | yes | What will be sent to one destination, from the frozen payload model. | | `manualHandoff` | object | no | | | `preflight` | [PreflightResult](#schema-preflightresult) | yes | | | `pendingChecks` | string[] | yes | | | `cost` | [CostEstimate](#schema-costestimate)[] | yes | | | `verificationLevel` | [VerificationLevel](#schema-verificationlevel) | yes | | ### PreviewPayload {#schema-previewpayload} What will be sent to one destination, from the frozen payload model. | Field | Type | Required | Description | |---|---|---|---| | `v` | `1` | yes | | | `orgId` | string (uuid) | yes | | | `brandId` | string (uuid) | yes | | | `postVersionId` | string (uuid) | yes | | | `contentHash` | string | yes | | | `variantId` | string (uuid) | yes | | | `channelId` | string (uuid) | yes | | | `network` | string | yes | | | `connectorVersion` | string | yes | | | `destination` | object | yes | | | `intendedVisibility` | `"public"` or `"followers"` or `"private"` or `"draft"` or `"inbox"` or `"scheduled_native"` | yes | | | `aiLabel` | boolean | yes | | | `utm` | map of string | yes | | | `parts` | object[] | yes | | ### PreviewResult {#schema-previewresult} | Field | Type | Required | Description | |---|---|---|---| | `receipt` | string | yes | | | `expiresAt` | string (date-time) | yes | | | `postId` | string (uuid) | yes | | | `versionNo` | integer | yes | | | `contentHash` | string | yes | | | `mode` | `"schedule"` or `"publish_now"` | yes | | | `blocked` | boolean | yes | | | `requiresReview` | boolean | yes | | | `destinations` | [PreviewDestination](#schema-previewdestination)[] | yes | | | `totalCost` | [CostEstimate](#schema-costestimate)[] | yes | | ### Principal {#schema-principal} One person, agent, API token or connected app that can act in the organization. | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `kind` | `"member"` or `"guest"` or `"client"` or `"agent"` or `"token"` or `"mcp"` | yes | | | `name` | string | yes | | | `detail` | string or null | yes | | | `role` | string or null | yes | | | `actsFor` | string or null | yes | | | `status` | `"active"` or `"invited"` or `"revoked"` | yes | | | `lastActiveAt` | string (date-time) or null | yes | | | `mode` | `"approve"` or `"autopilot"` or null | yes | | | `postsPerDay` | integer or null | yes | | | `brandIds` | string (uuid)[] or null | yes | | ### PrincipalList {#schema-principallist} Principals, people first and then agents, keys and connected apps. At most 1000 per kind. | Field | Type | Required | Description | |---|---|---|---| | `data` | [Principal](#schema-principal)[] | yes | | ### PrincipalRevoked {#schema-principalrevoked} | Field | Type | Required | Description | |---|---|---|---| | `id` | string (uuid) | yes | | | `status` | `"revoked"` | yes | | ### Problem {#schema-problem} The one error body of every route (RFC 9457 problem details with a stable code). Another organization's resource, a Postbroad-Org the member does not belong to and a resource outside a token's brand allowlist all answer 404 not_found, never 403. | Field | Type | Required | Description | |---|---|---|---| | `type` | string | yes | | | `title` | string | yes | | | `status` | integer | yes | | | `code` | [ErrorCode](#schema-errorcode) | yes | | | `detail` | string | yes | | | `requestId` | string | yes | | | `retryable` | boolean | yes | | | `errors` | [ProblemItem](#schema-problemitem)[] | no | | | `preview` | [PreviewResult](#schema-previewresult) | no | | | `currentRevision` | integer | no | | | `alreadyDispatching` | [DispatchingRef](#schema-dispatchingref)[] | no | | | `limit` | object | no | | | `retryAfterSeconds` | integer | no | | ### ProblemItem {#schema-problemitem} | Field | Type | Required | Description | |---|---|---|---| | `path` | string | yes | | | `rule` | string | yes | | | `message` | string | yes | | | `channelId` | string (uuid) or null | no | | ### ReauthenticateInput {#schema-reauthenticateinput} Proof of identity for sensitive changes: the signed-in member's password. | Field | Type | Required | Description | |---|---|---|---| | `password` | string | yes | | ### Reauthenticated {#schema-reauthenticated} The session now counts as freshly signed in until `expiresAt`. | Field | Type | Required | Description | |---|---|---|---| | `reauthenticatedAt` | string (date-time) | yes | | | `expiresAt` | string (date-time) | yes | | ### RevokeApiTokenInput {#schema-revokeapitokeninput} Type: object ### RoleBindingView {#schema-rolebindingview} | Field | Type | Required | Description | |---|---|---|---| | `orgId` | string (uuid) | yes | | | `role` | `"owner"` or `"admin"` or `"editor"` or `"approver"` or `"viewer"` | yes | | | `scopeType` | `"org"` or `"workspace"` or `"brand"` | yes | | | `scopeId` | string (uuid) | yes | | ### TransferOwnershipInput {#schema-transferownershipinput} | Field | Type | Required | Description | |---|---|---|---| | `memberId` | string (uuid) | yes | | | `stepDown` | boolean | no | | ### UpdateMeInput {#schema-updatemeinput} | Field | Type | Required | Description | |---|---|---|---| | `name` | string | yes | | ### UpdateOrgInput {#schema-updateorginput} | Field | Type | Required | Description | |---|---|---|---| | `expectedRevision` | integer | yes | | | `name` | string | no | | | `kind` | [OrgKind](#schema-orgkind) | no | | | `postingGuard` | `"off"` or `"alert"` or `"pause"` | no | | ### UpdatePreferencesInput {#schema-updatepreferencesinput} | Field | Type | Required | Description | |---|---|---|---| | `theme` | `"dark"` or `"light"` or `"system"` | no | | | `timeDisplay` | `"brand"` or `"viewer"` | no | | | `timezone` | string or null | no | | | `dismissedPrompts` | map of string (date-time) or null | no | | ### VerificationLevel {#schema-verificationlevel} Type: `"full"` or `"url_only"` or `"accepted_no_readback"` or `"manual"` # Health Whether the API is up, for monitors. 1 operation, no key needed. Read the [concepts](../../guides/concepts.md) first. Every call goes to `https://app.postbroad.com`; see [Authentication](../authentication.md) and the [error catalogue](../errors.md). | Endpoint | What it does | Scope | |---|---|---| | [`GET /health`](#op-gethealth) | Whether the API is up | no key | ## Operations ### Whether the API is up {#op-gethealth} `GET /health` Operation `getHealth`. No key needed. Response `200`: [Health](#schema-health). Service is up ```bash title="curl" curl -X GET "https://app.postbroad.com/health" \ -H "Authorization: Bearer $POSTBROAD_TOKEN" ``` ```ts title="TypeScript" const res = await fetch("https://app.postbroad.com/health", { headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`, }, }); const data = await res.json(); ``` ```json title="Response 200" { "status": "ok", "service": "string", "version": "string" } ``` ## Schemas ### Health {#schema-health} | Field | Type | Required | Description | |---|---|---|---| | `status` | `"ok"` | yes | | | `service` | string | yes | | | `version` | string | yes | | # MCP server Any client that speaks MCP over streamable HTTP can plan, draft, preview, schedule and check posts. Sign in in the browser; there is nothing to install and no key to paste. ``` https://app.postbroad.com/mcp ``` Transport: streamable HTTP · Sign-in: OAuth in the browser · Access: the brands you pick · End a connection: in the app, on the Agents page. The first time a client connects, Postbroad opens a sign-in page in your browser. Sign in, pick the brands this connection may touch and choose its mode. The agent then works inside those brands only, and it can never approve a post for you. ## Connect your client {#connect} **Claude Code.** One command: ```bash claude mcp add --transport http postbroad https://app.postbroad.com/mcp ``` Run `/mcp`, check that `postbroad` is connected and sign in when asked. **Claude desktop and claude.ai.** In Settings, open Connectors and choose Add custom connector. Paste the address, then sign in to Postbroad. **ChatGPT.** In Settings, open Connectors and create a connector. Turn on developer mode first if your plan needs it. Paste the address, then sign in to Postbroad. **Cursor.** Add the entry to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json` for every project. It holds only the address, so it is safe to commit: ```json { "mcpServers": { "postbroad": { "url": "https://app.postbroad.com/mcp" } } } ``` **Codex.** Add the two lines to the `config.toml` that Codex reads, then run `codex mcp login postbroad` and sign in to Postbroad in your browser: ```toml [mcp_servers.postbroad] url = "https://app.postbroad.com/mcp" ``` **Gemini CLI.** One command, then `/mcp auth postbroad` in Gemini CLI to sign in: ```bash gemini mcp add --transport http postbroad https://app.postbroad.com/mcp ``` **OpenClaw, n8n and other clients.** Add Postbroad as a remote MCP server (streamable HTTP) with the address `https://app.postbroad.com/mcp`, then sign in when the client asks. **Paste this to your agent.** An agent that can change its own settings can set itself up from these words: ```text title="Prompt" Connect the Postbroad MCP server: a remote server over streamable HTTP at https://app.postbroad.com/mcp. It signs in through my browser; never ask me for a key. When it is connected, list my Postbroad brands. Before any write, show me the preview and wait for my yes. If you run in a terminal and cannot add MCP servers, install the command line tool instead (npm install -g @postbroad/cli), sign in with postbroad login and check it with postbroad doctor. ``` Step by step guides for each client are on [postbroad.com/agents](https://postbroad.com/agents). ## Approve or Autopilot {#modes} When you connect an agent you choose its mode. Approve is picked to start with; you confirm it, or pick Autopilot, before the agent gets access. | Approve | Autopilot | |---|---| | Every post the agent makes waits for a person, in Inbox under To review. | Posts go out on their own, after the same checks as any post. They count toward your plan and stop at the daily limit. | Whatever the mode, the agent previews before it writes, needs the preview's receipt to schedule, and can never approve a post. The [concepts](../guides/concepts.md#modes) say what the API answers in each case. ## Check that it works {#check} Ask the agent: "List my Postbroad brands." Then: "What failed yesterday?" for one brand. Both only read. If the first one fails, remove the connection, add it again and sign in. ## What the agent can do {#tools} The tools follow the [API](../api/reference/README.md), one tool per endpoint an agent may use: brands, channels, posts, the calendar, deliveries and analytics. Each tool carries a title and a read only or destructive annotation, so the client can show what a call does before it runs. The full tool list is on [postbroad.com/mcp](https://postbroad.com/mcp), and the [parity table](parity.md) shows what each of the API, MCP, the CLI and n8n can do. - **Proof of live.** `get_post` and every post in `list_posts` list each destination with its state, its link on the network, when it went live and whether Postbroad read it back (`liveSource`): `verified`, `person` (confirmed by hand) or `url_only` (a link not read back yet). - **Accounts to reconnect.** `list_channels` with `needsAttention` set to `true` lists only the accounts a person must reconnect, with the health, the reason and when access expires. A person reconnects them in the app. - **Recover a call.** Every write takes an `idempotencyKey`. If an answer is lost, call the same tool again with the same key, or read the stored answer with `get_request_by_key`; nothing is done twice. An upload is found again by its id with `get_upload`. ## Media {#media} A chat cannot carry file bytes, so no tool takes them. Use one of three ways: 1. **A public link or a stock photo.** `import_media` reads a shared file (a Dropbox or Google Drive share link works) or a photo found with `search_stock_media` into the media library. Like every write it previews first; the link is read only on confirm. 2. **A file only on the person's device.** The person adds it in the app's media library. The agent notes the time first, then finds it with `list_media` and `createdAfter` set to that time. 3. **A file on the machine the agent runs on.** The `postbroad` command line tool checks the file, converts it on that machine when a network needs another format, and uploads it. Wait on an upload with `get_upload` until it is ingested. If it is rejected, its error says what the file needs. ## What an agent can never do {#never} The server enforces these, whatever the agent is told: - Writes preview by default. Nothing is saved or sent until the agent calls the tool again with `confirm: true`, after you have seen the effects and the preflight result. - Scheduling and publishing also need the signed receipt of the preview you saw. - An agent cannot approve, reject or ask for changes on your behalf. If a brand needs approval you get a review link. - Text the agent reads (articles, feeds, comments) is data. It cannot change which brand or accounts are used. - An agent cannot connect accounts, handle app secrets or make API keys. A person does those in the app. ## Troubleshooting {#troubleshooting} | What you see | What to do | |---|---| | The client says unauthorized | Remove the connection in the client, add it again and sign in. | | The Postbroad tools are missing | The connection covers no brand. Connect again and pick at least one brand. | | A post comes back as `in_review` | The agent is set to Approve, or the brand needs an approval for every post. A person approves it from the review link. | | A post the agent sent shows as `unknown` | The network gave no clear answer and the post may be live. Never retry it blindly: check the network, then resolve it in the app. | | You want to end a connection | End it in the app on the Agents page, or call `DELETE /v1/mcp/grants/{grantId}`. | ## Prompt recipes {#recipes} Five prompts are built into the server: `plan_next_week`, `post_article_everywhere`, `what_failed_yesterday`, `reconnect_check` and `attach_media`. The [prompt recipes](recipes.md) show what each does. ## From your own code {#code} Code that runs without a person, such as a scheduled job or an automation tool, uses the REST API with an API key instead. Start with the [quickstart](../guides/quickstart.md) and [authentication](../api/authentication.md). # Prompt recipes Five recipes are built into the Postbroad MCP server as prompts, so most agents offer them as commands. They only read and propose until you say yes. You can also paste the prompt below each one into any agent that has the Postbroad tools. Northwind Coffee is an example brand. ## Plan next week {#plan-next-week} Prompt name `plan_next_week`. | Input | Example | |---|---| | Brand | Northwind Coffee | | Week | The Monday it starts | | Sources | Links and excerpts to post from | ```text title="Prompt" Plan next week for the brand Northwind Coffee. The week starts Monday. Sources: these three articles (links and excerpts below). Look at what is already on the calendar and propose a draft for each useful source, with the source quoted. Do not schedule anything. ``` - **Will:** read the brand's voice and rules, its accounts and the week's calendar, and propose drafts that cite their source. It saves drafts only after you pick. - **Will not:** schedule anything while planning. ## Post this article everywhere {#post-article-everywhere} Prompt name `post_article_everywhere`. | Input | Example | |---|---| | Brand | Northwind Coffee | | Article | Its link and its text | ```text title="Prompt" Post this article to the brand Northwind Coffee on Bluesky and LinkedIn. Show me the text for each network before saving anything. ``` - **Will:** show the draft, save it after your yes, show the preview with its preflight problems, and publish or schedule only after a second yes with the receipt of that preview. - **Will not:** post to accounts you did not name. "Everywhere" means the accounts you name. If the brand needs approval, it gives you the review link and stops. ## What failed yesterday {#what-failed-yesterday} Prompt name `what_failed_yesterday`. | Input | Example | |---|---| | Brand | Northwind Coffee | | Date | Yesterday's date | ```text title="Prompt" What failed yesterday for Northwind Coffee? For each destination tell me what happened and what I can do. ``` - **Will:** read the deliveries of that day and separate `failed`, `unknown`, `accepted` and verified live, then tell you the next step. - **Will not:** change anything, or retry an unknown outcome, because that post may be live. It asks before any write. ## Accounts to reconnect {#reconnect-check} Prompt name `reconnect_check`. | Input | Example | |---|---| | Brand | Northwind Coffee, or leave it out for every brand | ```text title="Prompt" Which of my accounts need reconnecting, and which posts are waiting on them? Most urgent first. ``` - **Will:** list the accounts whose connection is broken, missing a permission, disconnected or about to expire, with the reason and the expiry, and name the posts waiting on each. - **Will not:** reconnect anything. A person reconnects an account in the app. ## Add media to a post {#attach-media} Prompt name `attach_media`. | Input | Example | |---|---| | Brand | Northwind Coffee | | Link | A Dropbox or Google Drive share link, if there is one | ```text title="Prompt" Add this photo to the launch draft for Northwind Coffee and write its alt text: https://www.dropbox.com/s/abc/launch.png ``` - **Will:** add the file from the link (or ask you to add it in the app's media library and find it there), wait until it is ready, write alt text and attach it to the draft after your yes. - **Will not:** send file bytes through the chat, or upload the same file twice: a lost answer is recovered with the same idempotency key. ## In Autopilot {#autopilot} The recipes ask for your yes in the conversation in both modes. The mode decides what happens to a post after the agent schedules it: in Approve it waits for a person, in Autopilot it goes out on its own. ## More things to ask {#more} - "Which posts are scheduled for tomorrow, and are any blocked by preflight?" - "Show me the posts that missed their slot and what my options are." - "Retry the failed destinations of the launch post." (Only `failed` ones, after you confirm.) - "Draft three posts about this changelog entry in the brand voice. Save the one I choose." # What the API, MCP, CLI and n8n can do Checked on 18 November 2026. Every client calls the same `/v1` API the app uses, with the same checks, plan limits and [rate limits](../api/rate-limits.md): the MCP server, the `postbroad` command line tool, the SDKs and the n8n node add no limits of their own and skip none. A blank cell means that client does not offer it yet; the API still does. ## Posting {#posting} | What | REST API | MCP server | CLI | n8n | |---|---|---|---|---| | Sign in | API key | Browser sign-in, you pick the brands and the mode | Browser sign-in (device code) or an API key | API key | | Draft a post | `POST /v1/posts` | `create_post` | `post` | Post › Create Draft | | Many drafts at once | `POST /v1/posts/batch` | `create_posts_batch` | `import csv` | One item per post | | Preview before sending | `?dry_run=true` on every write | Every write previews until `confirm: true` | `post --dry-run`, `--dry-run` on writes | Schedule and Publish Now preview first | | Schedule or publish now | With the preview's receipt | `schedule_post`, `publish_post_now` | `post --at`, `post --now` | Post › Schedule, Publish Now | | Ask for approval | Review routes | `submit_for_approval`, `get_review_link` | `approvals` | Post › Request Approval | | List posts | `GET /v1/posts` | `list_posts` | `posts` | Post › List | | Unschedule, cancel, delete in Postbroad | Post routes | `unschedule_post`, `cancel_post`, `delete_post` | `unschedule`, `cancel`, `delete` | Post › Unschedule, Cancel, Delete | | Next open posting times | `GET /v1/brands/{brandId}/gaps` | `get_brand_gaps` | `gaps` | Brand › Find Open Slots | | Quote a post | `quotePost` option on X, Bluesky and Threads | The same option in `create_post` | | | | Reply to a post | | | | | | Remove a live post from the network | `DELETE /v1/posts/{postId}/deliveries/{deliveryId}/remote` | `remove_delivery_from_network` | | | | Tag an account, role or page | `GET /v1/channels/{channelId}/mentions?q=` | `search_mentions` | | | | Start from a saved template | `/v1/brands/{brandId}/post-templates` | `list_post_templates`, `get_post_template`, `create_post_template`, `update_post_template`, `delete_post_template` | | | Deleting or cancelling a post in Postbroad stops what has not been sent. It does not remove a post that is already live on a network: that is its own request, per destination, on a network whose connector can delete, and it cannot be undone. ## After sending {#after} | What | REST API | MCP server | CLI | n8n | |---|---|---|---|---| | Proof of live per destination (link, time, how it was checked) | On every post and in every post list | `get_post`, `list_posts` | `status`, `verify` | Post › Get Status (`proof`) | | Wait until every destination is done | Poll the post | Poll `get_post` | `status --wait` | | | Retry what failed | Retry routes | `retry_failed_deliveries`, `retry_delivery` | `retry` | Post › Retry Failed | | Analytics | Analytics routes | `get_analytics`, `get_top_posts`, `get_best_times`, `get_delivery_reliability` | | | | Events when something happens | Signed webhooks with retries and replays | | | Postbroad Trigger | ## Accounts {#accounts} | What | REST API | MCP server | CLI | n8n | |---|---|---|---|---| | Accounts and their health | `GET /v1/channels`, with `health` and `accessExpiresAt` | `list_channels`, `get_connections_matrix` | `channels` | Channel › List, Get | | Only the accounts to reconnect | `needsAttention=true` | `list_channels` with `needsAttention`, the `reconnect_check` prompt | `channels --needs-reconnect` | Channel › List, Only Needing Reconnect | | Reconnect an account | A person, in the app | A person, in the app | A person, in the app | A person, in the app | | Account expiring or broken, as an event | `credential.*` webhooks | | | Postbroad Trigger | ## Media {#media} | What | REST API | MCP server | CLI | n8n | |---|---|---|---|---| | Upload a file | Upload routes | `create_upload`, then the bytes from a shell | `upload`, `post --media` | Media › Upload | | Add a file from a public link | `POST /v1/media/imports` | `import_media` | `upload --url` | Media › Import From URL | | Find files a person just added | `GET /v1/media?createdAfter=` | `list_media` with `createdAfter` | | | | Alt text | On the file and per post | `update_media_asset`, `altText` on a post's media | `upload --alt` | Media › Set Alt Text, Create Draft alt text | | Convert a video before upload | | | On your computer, with ffmpeg | | The MCP server takes no file bytes: a chat cannot carry them. See [Media](README.md#media) for the three ways an agent adds a file. ## What no client can do {#never} Connecting accounts, making API keys, handling app secrets and approving a post are done by a person in the app. An agent or a key can draft, preview, schedule and check, and a brand that needs approval stops at the review link. # Networks What each network needs to connect, what it allows in a post, and how Postbroad confirms a post is live there. Generated from the manifest every post is checked against. 53 listed, 52 connectable today, Flickr on the way. ## Social {#social} | Network | What you need | App review | Text limit | Live check | Documented limits | |---|---|---|---|---|---| | [Facebook](facebook.md) | Your own app | yes | 63,206, to be confirmed | Live, read back | 2 | | [Instagram](instagram.md) | Your own app | yes | 2,200 | Live, read back | 2 | | [Threads](threads.md) | Your own app | yes | 500 | Accepted, with a link | 1 | | [LinkedIn](linkedin.md) | Your own app | yes | 3,000 | Accepted, with a link | 2 | | [Bluesky](bluesky.md) | A key you make | no | 300 | Live, read back | 1 | | [X](x.md) | Your own app | no | 280 | Accepted, with a link | 2 | | [Google Business Profile](google-business-profile.md) | Your own app | yes | 1,500, to be confirmed | Accepted, with a link | 1 | | [Pinterest](pinterest.md) | Your own app | yes | 800 | Accepted, with a link | 0 | | [Mastodon](mastodon.md) | Your login on your server | no | none stated | Accepted, with a link | 1 | | [Warpcast / Farcaster](farcaster.md) | A key you make | no | 1,024 | Live, read back | 0 | | [VK](vk.md) | Your own app | yes | 2,048, to be confirmed | Accepted, with a link | 1 | | [MeWe](mewe.md) | Your own app | no | 63,206, to be confirmed | A person confirms it | 0 | | [Nostr](nostr.md) | A key you make | no | none stated | Accepted, with a link | 0 | | [OK (Odnoklassniki)](odnoklassniki.md) | Your own app | yes | none stated | Accepted, with a link | 0 | | [Tumblr](tumblr.md) | Your own app | no | none stated | Live, read back | 3 | | [Flickr](flickr.md) | Can't be connected today | no | none stated | Accepted, with a link | 0 | | [SoundCloud](soundcloud.md) | Your own app | no | none stated | Live, read back | 1 | | [Pixelfed](pixelfed.md) | Your login on your server | no | none stated | Live, read back | 0 | | [Misskey](misskey.md) | A key you make | no | 3,000 | Live, read back | 1 | | [Lens](lens.md) | A key you make | no | none stated | Live, read back | 0 | ## Video {#video} | Network | What you need | App review | Text limit | Live check | Documented limits | |---|---|---|---|---|---| | [TikTok](tiktok.md) | Your own app | yes | 2,200 | Accepted, with a link | 1 | | [YouTube](youtube.md) | Your own app | yes | 5,000 | Live, read back | 1 | | [Twitch](twitch.md) | Your own app | no | 500 | Accepted, with a link | 1 | | [Kick](kick.md) | Your own app | no | 500 | Accepted, with a link | 0 | | [Snapchat](snapchat.md) | Your own app | yes | 160 | Accepted | 0 | | [Vimeo](vimeo.md) | Your own app | no | none stated | Accepted, with a link | 0 | | [Dailymotion](dailymotion.md) | A key you make | no | 3,000 | Live, read back | 1 | | [Kuaishou](kuaishou.md) | Your own app | yes | none stated | Live, read back | 1 | | [PeerTube](peertube.md) | A key you make | no | 10,000, to be confirmed | Live, read back | 1 | ## Communities {#community} | Network | What you need | App review | Text limit | Live check | Documented limits | |---|---|---|---|---|---| | [Reddit](reddit.md) | Your own app | yes | 40,000, to be confirmed | Accepted, with a link | 0 | | [Dribbble](dribbble.md) | Your own app | yes | 40,000, to be confirmed | Accepted, with a link | 0 | | [Whop](whop.md) | Your own app | no | 50,000, to be confirmed | Accepted, with a link | 1 | | [Lemmy](lemmy.md) | A key you make | no | 50,000 | Live, read back | 0 | | [Discourse](discourse.md) | A key you make | no | none stated | Live, read back | 1 | | [Circle](circle.md) | A key you make | no | none stated | Live, read back | 1 | | [Mighty Networks](mighty-networks.md) | A key you make | no | none stated | Live, read back | 0 | | [BAND](band.md) | A key you make | no | none stated | Live, read back | 0 | ## Chat apps {#messaging} | Network | What you need | App review | Text limit | Live check | Documented limits | |---|---|---|---|---|---| | [Telegram](telegram.md) | A key you make | no | 4,096 | Accepted, with a link | 2 | | [Discord](discord.md) | A key you make | no | 2,000 | Accepted, with a link | 2 | | [Slack](slack.md) | Your own app | no | 40,000 | Accepted, with a link | 2 | | [Viber Channels](viber.md) | A key you make | no | 7,000 | Accepted | 0 | | [LINE Official Account](line.md) | A key you make | no | 5,000 | Accepted | 1 | ## Blogs and publishing {#publishing} | Network | What you need | App review | Text limit | Live check | Documented limits | |---|---|---|---|---|---| | [WordPress](wordpress.md) | A key you make | no | none stated | Live, read back | 0 | | [Medium](medium.md) | A key you make | no | 100,000, to be confirmed | Accepted | 0 | | [Hashnode](hashnode.md) | A key you make | no | none stated | Live, read back | 0 | | [Dev.to](devto.md) | A key you make | no | 819,200, to be confirmed | Live, read back | 3 | | [Ghost](ghost.md) | A key you make | no | none stated | Live, read back | 0 | | [Hatena Blog](hatena-blog.md) | A key you make | no | none stated | Live, read back | 0 | | [WeChat Official Accounts](wechat.md) | A key you make | no | 20,000 | Live, read back | 0 | | [Zalo Official Account](zalo.md) | Your own app | no | none stated | Live, read back | 1 | | [Hive](hive.md) | A key you make | no | none stated | Live, read back | 0 | ## Newsletters {#newsletter} | Network | What you need | App review | Text limit | Live check | Documented limits | |---|---|---|---|---|---| | [Listmonk](listmonk.md) | A key you make | no | none stated | Accepted, with a link | 0 | | [Beehiiv](beehiiv.md) | A key you make | no | none stated | Live, read back | 1 | ## How to read the live check {#live} - **Live, read back**: Postbroad reads the post back and matches it to what was sent. - **Accepted, with a link**: the network accepts the post and gives back its address. - **Accepted**: the network accepts the post and offers no way to read it back. - **A person confirms it**: nothing can be checked, so a person confirms the post and adds its link. The [concepts](../guides/concepts.md#live) explain each level and how many networks have it. Missing a network? [Tell us](https://postbroad.com/contact?topic=network). # BAND How to connect BAND to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own BAND account; Postbroad never provides an app or an account. ## What you need {#needs} - Your BAND account, and a service you register for yourself at BAND Developers (My Apps) - The access key BAND shows when you choose Connect BAND account on that service - A band where you are allowed to post - You are: a member of the band who may write posts - App review: none. BAND does not review an app before it posts. Checked on 6 Nov 2026 against BAND's own documentation. ## Set up, step by step {#setup} ### On BAND Developers 1. Register a service for yourself at BAND Developers, under My Apps. 2. Open the service and choose Connect BAND account. BAND shows an access token. 3. Copy the token. You also need a band where you may post. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect BAND. 2. Choose Continue and fill in Your BAND details, then choose Connect: - **Access token**: In BAND Developers, My Apps, open the service you registered and choose Connect BAND account Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On BAND | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Text: no fixed number of characters. No number is published; `result_code` 3001 means the content is too long. ## Limits {#limits} BAND documents no rate limit. Postbroad slows down when BAND says so and waits as long as it asks. A post that BAND is still processing after 30 minutes stays accepted: BAND took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from BAND and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - `result_code` 1001, 1002 and 1003 are quota and cooldown answers (`rate_limited`); 10401 is an unauthorized token; 60400 is no permission to write. - The API gives no post address: `band_key` and `post_key` are not the numbers in a band.us link. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect BAND | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | BAND no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected BAND account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/band`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to BAND. ## Sources {#sources} - [`developers.band.us/develop/guide/api/get_authorization_code_from_user`](https://developers.band.us/develop/guide/api/get_authorization_code_from_user), read 6 Nov 2026 - [`developers.band.us/develop/guide/api/write_post`](https://developers.band.us/develop/guide/api/write_post), read 6 Nov 2026 - [`developers.band.us/develop/guide/api/handle_errors`](https://developers.band.us/develop/guide/api/handle_errors), read 6 Nov 2026 - [`developers.band.us/develop/guide/api/get_bands`](https://developers.band.us/develop/guide/api/get_bands), read 6 Nov 2026 - [`developers.band.us/develop/guide/api/get_user_information`](https://developers.band.us/develop/guide/api/get_user_information), read 6 Nov 2026 - [`developers.band.us/develop/guide/api/get_post`](https://developers.band.us/develop/guide/api/get_post), read 6 Nov 2026 # Beehiiv How to connect Beehiiv to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Beehiiv account; Postbroad never provides an app or an account. ## What you need {#needs} - A Beehiiv publication on the Pro or Enterprise plan: Beehiiv lets only those plans create posts through its API - An API key you create in your Beehiiv settings, under API - App review: none. Beehiiv does not review an app before it posts. Checked on 6 Nov 2026 against Beehiiv's own documentation. ## Set up, step by step {#setup} ### In Beehiiv 1. Open your Beehiiv settings, then API, and create a new API key. 2. Make sure the publication is on the Pro or Enterprise plan. Beehiiv lets only those plans create posts through its API. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Beehiiv. 2. Choose Continue and fill in Your Beehiiv details, then choose Connect: - **API key**: In your Beehiiv settings, open API and create a new API key. Posting needs the Pro or Enterprise plan. Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Beehiiv | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: title, subtitle and content tags. Text: no fixed number of characters. No title or body limit is documented; not enforced. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per key or sign-in | Posts and other writes | read from Beehiiv's answers | verified | Per key per minute by plan (Free 30, Lite 180, Pro 500, Enterprise 800); RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset on every response. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Beehiiv is still processing after 30 minutes stays accepted: Beehiiv took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Beehiiv and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Proof that nothing was posted: GET of the post answers 404 with code POST_CREATION_FAILED: the background creation failed and the post will never exist. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Creating posts through the API needs a publication on the Pro or Enterprise plan (posts/create; read 2026-11-06). - Deleting a published (confirmed) post archives it; a draft is deleted. - No read names the key's owner; the account subject is the lowest publication id the key reaches. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Beehiiv | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Beehiiv no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Beehiiv account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/beehiiv`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Beehiiv. ## Sources {#sources} - [`developers.beehiiv.com/api-reference/posts/create`](https://developers.beehiiv.com/api-reference/posts/create), read 6 Nov 2026 - [`developers.beehiiv.com/api-reference/posts/show`](https://developers.beehiiv.com/api-reference/posts/show), read 6 Nov 2026 - [`developers.beehiiv.com/api-reference/publications/index`](https://developers.beehiiv.com/api-reference/publications/index), read 6 Nov 2026 - [`developers.beehiiv.com/welcome/rate-limiting`](https://developers.beehiiv.com/welcome/rate-limiting), read 6 Nov 2026 # Bluesky How to connect Bluesky to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Bluesky account; Postbroad never provides an app or an account. ## What you need {#needs} - Your Bluesky handle, for example name.bsky.social, or your own domain - An app password from Bluesky settings (not your main password) - App review: none. Bluesky does not review an app before it posts. ## Set up, step by step {#setup} ### On Bluesky 1. Open Bluesky's settings and create an app password for Postbroad. Never use your main password. 2. Note your handle, for example name.bsky.social, or your own domain. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Bluesky. 2. Choose Continue and fill in Your Bluesky details, then choose Connect: - **Handle or email** - **App password**: Create an app password in Bluesky settings Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Bluesky | |---|---| | Text | yes | | Pictures | up to 4 pictures | | Video | 1 video | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: mentions, links in the text and quote post. Text: up to 300 characters as a reader sees them. Verified on the network's own documentation. 300 graphemes and 3000 UTF-8 bytes; links and mentions need facets with UTF-8 byte offsets. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | not stated | 2 MB | not stated | not stated | | Video | MP4 | 300 MB | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 1,666 an hour | verified | 5,000 write points per hour per account and a create costs 3 points; 35,000 points a day also applies; RateLimit-* headers fill the rest. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Bluesky is still processing after 30 minutes stays accepted: Bluesky took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Bluesky and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`create_record`): The network deduplicates on an identifier Postbroad chooses. A retry sends the same identifier and cannot create a second post. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Bluesky | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Bluesky no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Bluesky account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/bluesky`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Bluesky. ## Sources {#sources} - [`github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/server/createAppPassword.json`](https://github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/server/createAppPassword.json) - [`bsky.network/docs/oauth-client`](https://bsky.network/docs/oauth-client) - [`atproto.com/specs/oauth`](https://atproto.com/specs/oauth) - [`github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/server/refreshSession.json`](https://github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/server/refreshSession.json) - [`github.com/bluesky-social/bsky/blob/main/lexicons/app/bsky/feed/post.json`](https://github.com/bluesky-social/bsky/blob/main/lexicons/app/bsky/feed/post.json), read 21 Oct 2026 - [`github.com/bluesky-social/bsky/blob/main/lexicons/app/bsky/embed/images.json`](https://github.com/bluesky-social/bsky/blob/main/lexicons/app/bsky/embed/images.json) - [`github.com/bluesky-social/bsky/blob/main/lexicons/app/bsky/embed/video.json`](https://github.com/bluesky-social/bsky/blob/main/lexicons/app/bsky/embed/video.json) - [`github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/repo/getRecord.json`](https://github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/repo/getRecord.json) - [`github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/repo/createRecord.json`](https://github.com/bluesky-social/atproto/blob/main/lexicons/com/atproto/repo/createRecord.json) - [`bsky.network/docs/rate-limits`](https://bsky.network/docs/rate-limits) # Circle How to connect Circle to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Circle account; Postbroad never provides an app or an account. ## What you need {#needs} - A Circle community on the Business plan or above, which includes the Admin API - An Admin API key from Circle (Settings, Developers, Tokens), of type Admin V1 or V2 - You are: admin of the Circle community - App review: none. Circle does not review an app before it posts. Checked on 6 Nov 2026 against Circle's own documentation. ## Set up, step by step {#setup} ### In Circle 1. Open Settings, Developers, Tokens and create a token of type Admin V1 or V2. 2. The Admin API comes with Circle's Business plan and above. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Circle. 2. Choose Continue and fill in Your Circle details, then choose Connect: - **Admin API token**: In Circle, Settings, Developers, Tokens, create a token of type Admin V1 or V2 Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Circle | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: title. Text: no fixed number of characters. No length limit is documented. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | 2,000 per 5 minutes | to be confirmed | | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Circle is still processing after 30 minutes stays accepted: Circle took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Circle and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - The Admin API needs the Business plan or above; monthly request quotas per plan (Business 5,000). - A 403 answers a community that is not eligible for admin API v2 access. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Circle | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Circle no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Circle account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/circle`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Circle. ## Sources {#sources} - [`api.circle.so/apis/admin-api/quick-start`](https://api.circle.so/apis/admin-api/quick-start), read 6 Nov 2026 - [`api-headless.circle.so/api/admin/v2/swagger.yaml`](https://api-headless.circle.so/api/admin/v2/swagger.yaml), read 6 Nov 2026 - [`api.circle.so/apis/admin-api/usage-and-limits`](https://api.circle.so/apis/admin-api/usage-and-limits), read 6 Nov 2026 # Dailymotion How to connect Dailymotion to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Dailymotion account; Postbroad never provides an app or an account. ## What you need {#needs} - A private API key and its secret, made in Dailymotion Studio under Settings, Account, API keys - The key allowed to manage videos on the channels you want to post to - You are: owner or admin of the Dailymotion account - App review: none. Dailymotion does not review an app before it posts. Checked on 6 Nov 2026 against Dailymotion's own documentation. ## Set up, step by step {#setup} ### In Dailymotion Studio 1. Open Settings, Account, API keys and create a private API key that can manage videos. 2. Copy the API key and its secret. The secret is shown once, next to the key. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Dailymotion. 2. Choose Continue and fill in Your Dailymotion details, then choose Connect: - **API key**: In Dailymotion Studio, Settings, Account, API keys, create a private API key that can manage videos - **API secret**: Shown once, next to the key, when you create it Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Dailymotion | |---|---| | Text | yes | | Pictures | no | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: title, description, tags, who can see it and made for kids flag. Text: up to 3,000 characters, title up to 255. Verified on the network's own documentation. Description at most 3000 characters, title 1 to 255 characters. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 15 a day | to be confirmed | | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Dailymotion is still processing after 30 minutes stays accepted: Dailymotion took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Dailymotion and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`video_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - The upload guide lists category as mandatory but the create reference schema has no category field; the connector follows the reference. - The upload file reference answers {filename, status}; the guide shows url, which the create request needs; an answer without url fails before the write. - The Legacy API (developers.dailymotion.com/v0) is not used. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Dailymotion | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Dailymotion no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Dailymotion account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/dailymotion`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Dailymotion. ## Sources {#sources} - [`developers.dailymotion.com/docs/authenticate`](https://developers.dailymotion.com/docs/authenticate), read 6 Nov 2026 - [`developers.dailymotion.com/reference/create-profile-video`](https://developers.dailymotion.com/reference/create-profile-video), read 6 Nov 2026 - [`developers.dailymotion.com/docs/upload-videos`](https://developers.dailymotion.com/docs/upload-videos), read 6 Nov 2026 - [`developers.dailymotion.com/reference/rate-limiting`](https://developers.dailymotion.com/reference/rate-limiting), read 6 Nov 2026 - [`developers.dailymotion.com/reference/get-me`](https://developers.dailymotion.com/reference/get-me), read 6 Nov 2026 - [`developers.dailymotion.com/reference/get-video`](https://developers.dailymotion.com/reference/get-video), read 6 Nov 2026 # Dev.to How to connect Dev.to to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Dev.to account; Postbroad never provides an app or an account. ## What you need {#needs} - An access key from your Dev.to account settings - App review: none. Dev.to does not review an app before it posts. Checked on 21 Oct 2026 against Dev.to's own documentation. ## Set up, step by step {#setup} ### On DEV 1. Open Settings, Extensions and generate an API key. 2. Copy the key. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Dev.to. 2. Choose Continue and fill in Your Dev.to details, then choose Connect: - **API key**: In DEV, Settings, Extensions, generate an API key Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Dev.to | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: cover image, tags, canonical address, series and post as an organization. Text: up to 819,200 characters, title up to 128. To be confirmed: the network's documentation does not state it. `body_markdown` 800 KB and title 128 characters in the Forem source; the docs are silent. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Cover image | JPEG, PNG, GIF, WebP, BMP | 25 MB | not stated | width up to 4,096 px | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per key or sign-in | Posts and other writes | 1 a second | to be confirmed | 1 write request per second per key in the Forem source; the docs are silent. | | Per key or sign-in | Reads | 30 a minute | to be confirmed | 30 GET per minute and 3 per second per key in the Forem source; the docs are silent. | | Per key or sign-in | Media uploads | 10 an hour | to be confirmed | Default 10 uploads per hour per user, admin configurable; 429 with Retry-After. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Dev.to is still processing after 30 minutes stays accepted: Dev.to took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Dev.to and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Publishing (`publish_by_id`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Articles cannot be deleted through the API; taking one down needs an admin or moderator of the site. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Dev.to | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Dev.to no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Dev.to account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/devto`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Dev.to. ## Sources {#sources} - [`developers.forem.com/api`](https://developers.forem.com/api), read 21 Oct 2026 - [`dev.to/api/v1/openapi.json`](https://dev.to/api/v1/openapi.json), read 21 Oct 2026 - [`github.com/forem/forem@2fc4bcf`](https://github.com/forem/forem@2fc4bcf), read 21 Oct 2026 - [`developers.forem.com/api/v1`](https://developers.forem.com/api/v1), read 21 Oct 2026 # Discord How to connect Discord to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Discord account; Postbroad never provides an app or an account. ## What you need {#needs} - A bot key, or a posting link for one channel (Server settings, Integrations) - Permission to manage the server - You are: manage Server - App review: none. Discord does not review an app before it posts. Checked on 8 Nov 2026 against Discord's own documentation. ## Set up, step by step {#setup} ### In the Discord Developer Portal 1. Create an app in the Discord Developer Portal: enter a name and choose Create. 2. On the Bot page, under Token, choose Reset Token and copy the token. Discord does not show it again unless you reset it. 3. On the Installation page, under Default Install Settings for Guild Install, add the bot scope and give it the Send Messages permission. 4. Open the Install Link in your browser and choose Add to server for your server. You need permission to manage that server. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Discord. 2. Choose Continue and fill in Your Discord details, then choose Connect: - **Bot token**: In the Discord developer portal open your application, then Bot, then Reset Token Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Discord | |---|---| | Text | yes | | Pictures | up to 10 pictures | | Video | up to 10 videos | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: mentions. Text: up to 2,000 characters. Verified on the network's own documentation. Content up to 2000 characters. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | not stated | 20 MB | not stated | not stated | | Video | not stated | 20 MB | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per destination | Posts and other writes | read from Discord's answers | verified | Per-route buckets from X-RateLimit-* headers. | | Per app or bot, shared by every account on it | Posts and other writes | 50 a second | verified | Global limit of 50 requests a second per bot, all routes. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Discord is still processing after 30 minutes stays accepted: Discord took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Discord accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`create_message`): The network deduplicates on an idempotency key. A retry sends the same key and cannot create a second post. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - 10,000 invalid requests (401, 403, 429) per 10 minutes block the bot's IP for a while. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Discord | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Discord no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Discord account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/discord`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Discord. ## Sources {#sources} - [`docs.discord.com/developers/quick-start/getting-started`](https://docs.discord.com/developers/quick-start/getting-started), read 8 Nov 2026 - [`discord.com/developers/docs/reference`](https://discord.com/developers/docs/reference) - [`discord.com/developers/docs/resources/webhook`](https://discord.com/developers/docs/resources/webhook) - [`discord.com/developers/docs/resources/message`](https://discord.com/developers/docs/resources/message), read 21 Oct 2026 - [`discord.com/developers/docs/topics/opcodes-and-status-codes`](https://discord.com/developers/docs/topics/opcodes-and-status-codes) - [`discord.com/developers/docs/change-log`](https://discord.com/developers/docs/change-log) - [`discord.com/developers/docs/topics/rate-limits`](https://discord.com/developers/docs/topics/rate-limits) # Discourse How to connect Discourse to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Discourse account; Postbroad never provides an app or an account. ## What you need {#needs} - Your forum address, for example forum.example.com - An API key made by a forum admin: Admin, API, New API key - The forum username the topics are posted as - You are: admin of the forum, or a user an admin made a key for - App review: none. Discourse does not review an app before it posts. Checked on 6 Nov 2026 against Discourse's own documentation. ## Set up, step by step {#setup} ### In Discourse 1. As an admin of the forum, open Admin, API and choose New API key. 2. Copy the key, and note the username the topics should be posted as. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Discourse. 2. Choose Continue and fill in Your Discourse details, then choose Connect: - **Forum address**: For example https://forum.example.com - **API key**: In Discourse, Admin, API, New API key. An admin of the forum makes it. - **Username**: The forum user the posts are made as, for example system or your own username Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Discourse | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: title and category. Text: no fixed number of characters. Set per forum: `max_post_length` defaults to 32000, `min_first_post_length` to 20, `min_topic_title_length` to 15; the forum's own answer is the check. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 60 a minute | verified | Admin API requests: 60 a minute by default, shared by every key of the forum; each forum can change it. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Discourse is still processing after 30 minutes stays accepted: Discourse took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Discourse and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`topic_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Discourse | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Discourse no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Discourse account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/discourse`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Discourse. ## Sources {#sources} - [`docs.discourse.org`](https://docs.discourse.org), read 6 Nov 2026 - [`github.com/discourse/discourse/blob/main/config/site_settings.yml`](https://github.com/discourse/discourse/blob/main/config/site_settings.yml), read 6 Nov 2026 - [`meta.discourse.org/t/available-settings-for-global-rate-limits-and-throttling/78612`](https://meta.discourse.org/t/available-settings-for-global-rate-limits-and-throttling/78612), read 6 Nov 2026 # Dribbble How to connect Dribbble to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Dribbble account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A developer app of your own on Dribbble - Your own Dribbble login - Dribbble must approve your app before it can post for other people - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/dribbble`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against Dribbble's own documentation. ## Set up, step by step {#setup} ### On Dribbble 1. Register an application at dribbble.com/account/applications/new. 2. Set its callback URL to the redirect URL from Postbroad. 3. Copy the client ID and the client secret Dribbble gives the application. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Dribbble. 2. Under Add your Dribbble app, paste the Client ID and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Dribbble for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Dribbble opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## The review {#review} - Posting shots needs the upload scope. Dribbble may have to approve the application before it can use it. ## Posting rules {#posting} | In one post | On Dribbble | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: team. Text: up to 40,000 characters. To be confirmed: the network's documentation does not state it. ## Limits {#limits} Dribbble documents no rate limit. Postbroad slows down when Dribbble says so and waits as long as it asks. A post that Dribbble is still processing after 30 minutes stays accepted: Dribbble took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Dribbble accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`shot_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Dribbble (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Dribbble | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | Dribbble no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Dribbble account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/dribbble`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Dribbble. ## Sources {#sources} - [`developer.dribbble.com/v2/`](https://developer.dribbble.com/v2/), read 8 Nov 2026 - [`developer.dribbble.com/v2/oauth/`](https://developer.dribbble.com/v2/oauth/), read 8 Nov 2026 # Facebook How to connect Facebook to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Facebook account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Meta developer app with the use case for managing Pages - A role on each Page that can create posts (admin or editor) - You are: admin or editor of the Page - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/facebook`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against Facebook's own documentation. ## Set up, step by step {#setup} ### On Meta for Developers 1. Sign in at developers.facebook.com with your own Facebook account and register as a developer if you have not yet. 2. Create an app at developers.facebook.com/apps/creation: give it a name and a contact email, and pick the use case Manage everything on your Page. 3. Connect a business portfolio, or choose to connect one later, then finish on Go to dashboard. 4. In the dashboard, open the use case and choose Customize. Add pages_manage_posts, pages_read_engagement, pages_manage_engagement and pages_read_user_content next to the permissions that are there already. 5. Open Facebook Login for Business, then Settings, and add the redirect URL from Postbroad. Use Check URI to test it and save. 6. Copy the App ID and the App secret from App settings, Basic. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Facebook. 2. Under Add your Facebook app, paste the App ID and the App secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Facebook for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Facebook opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Facebook asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `pages_show_list` | List your Pages so you can pick which ones to add. | | `pages_read_engagement` | Read your Pages and their posts, to check that a post went out. | | `pages_manage_posts` | Post on your Pages. | | `pages_manage_engagement` | Add the first comment under a post, and answer or hide comments. | | `pages_read_user_content` | Read the comments and reviews people leave on your Pages, so you can answer them. | | `business_management` | Find the Pages your business owns, not only the ones you run yourself. | ## The review {#review} - Until Meta approves the permissions in App Review, the app works only for people who have a role on it. That is enough to post to Pages you run yourself. - To connect Pages of people without a role on the app, submit each permission in Review, App Review, then publish the app. Meta may ask you to verify your business first. ## Posting rules {#posting} | In one post | On Facebook | |---|---| | Text | yes | | Pictures | yes | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | yes, text | | Long article | no | | Needs a picture or video | no | Extra options: link preview, video as a reel and story. Text: up to 63,206 characters. To be confirmed: the network's documentation does not state it. Developers.facebook.com/docs/graph-api/reference/page/feed names no message limit (read 2026-11-06); kept unverified and not enforced. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | JPEG, PNG, GIF, BMP, TIFF | 10 MB | not stated | not stated | | Video | MP4, MOV | not stated | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | read from Facebook's answers | verified | X-App-Usage percentages; codes 4, 17, 32, 613. | | Per account | Posts and other writes | read from Facebook's answers | verified | Pages business use case limit, 4800 calls times engaged users per 24 h, from X-Business-Use-Case-Usage; code 80001. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Facebook is still processing after 30 minutes stays accepted: Facebook took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Facebook and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`feed_post`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. - Publishing (`reel_publish`): Before any retry, Postbroad looks the post up on the network by its stored identity. It retries only when the lookup shows nothing was created. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Postbroad posts to Facebook Pages. Personal profiles and groups cannot be posted to through Meta's API. - You need a role on each Page that lets you create posts, such as admin or editor. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Facebook (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Facebook | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Facebook and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Facebook no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Facebook account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/facebook`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Facebook. ## Sources {#sources} - [`developers.facebook.com/docs/development/create-an-app/`](https://developers.facebook.com/docs/development/create-an-app/), read 8 Nov 2026 - [`developers.facebook.com/documentation/pages-api/create-an-app`](https://developers.facebook.com/documentation/pages-api/create-an-app), read 8 Nov 2026 - [`developers.facebook.com/docs/facebook-login/guides/advanced/manual-flow`](https://developers.facebook.com/docs/facebook-login/guides/advanced/manual-flow), read 8 Nov 2026 - [`developers.facebook.com/docs/facebook-login/guides/access-tokens/get-long-lived`](https://developers.facebook.com/docs/facebook-login/guides/access-tokens/get-long-lived), read 24 Oct 2026 - [`developers.facebook.com/docs/pages-api/posts`](https://developers.facebook.com/docs/pages-api/posts), read 6 Nov 2026 - [`developers.facebook.com/docs/graph-api/reference/page/photos`](https://developers.facebook.com/docs/graph-api/reference/page/photos), read 24 Oct 2026 - [`developers.facebook.com/docs/video-api/guides/publishing`](https://developers.facebook.com/docs/video-api/guides/publishing), read 6 Nov 2026 - [`www.postman.com/meta/facebook/documentation/r56bjfd/facebook-api`](https://www.postman.com/meta/facebook/documentation/r56bjfd/facebook-api), read 24 Oct 2026 - [`developers.facebook.com/docs/graph-api/reference/page/feed`](https://developers.facebook.com/docs/graph-api/reference/page/feed), read 24 Oct 2026 - [`developers.facebook.com/docs/pages-api/getting-started`](https://developers.facebook.com/docs/pages-api/getting-started), read 24 Oct 2026 - [`developers.facebook.com/docs/graph-api/reference/post`](https://developers.facebook.com/docs/graph-api/reference/post), read 24 Oct 2026 - [`developers.facebook.com/docs/graph-api/overview/rate-limiting`](https://developers.facebook.com/docs/graph-api/overview/rate-limiting), read 24 Oct 2026 # Flickr Flickr can't be connected in Postbroad today. This page describes the connector as it is built: what a post there may hold and how a post would be checked. To hear when it can be connected, [tell us](https://postbroad.com/contact?topic=network). ## What you need {#needs} - A Flickr app of your own (Flickr, App Garden, Get your API key), its key and secret - This callback address set on the app, so Flickr can send you back - Your own Flickr login - You are: the owner of the Flickr account - App review: none. Flickr does not review an app before it posts. Checked on 6 Nov 2026 against Flickr's own documentation. ## Set up, step by step {#setup} There is nothing to set up yet: Flickr can't be connected in Postbroad today. [Tell us](https://postbroad.com/contact?topic=network) if you want to hear when it can. ## Permissions and why {#permissions} What Flickr asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `delete` | Upload photos, read them back to check they went out, and remove one sent by mistake. | ## Posting rules {#posting} | In one post | On Flickr | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: title, description, tags and who can see it. Text: no fixed number of characters. The upload API documents no title or description limit. ## Limits {#limits} Flickr documents no rate limit. Postbroad slows down when Flickr says so and waits as long as it asks. A post that Flickr is still processing after 30 minutes stays accepted: Flickr took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Flickr accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`photo_upload`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Commercial use of the API needs a commercial key, which Flickr staff review; a non commercial key is issued at once (misc.api_keys.html, 2026-11-06). - REST and OAuth endpoints are on www.flickr.com, uploads on up.flickr.com (a fixed credential route); errors come back as stat fail with a numeric code, often with HTTP 200. ## Use it from code and agents {#code} In the API, each connected Flickr account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/flickr`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Flickr. ## Sources {#sources} - [`www.flickr.com/services/api/auth.oauth.html`](https://www.flickr.com/services/api/auth.oauth.html), read 6 Nov 2026 - [`www.flickr.com/services/api/upload.api.html`](https://www.flickr.com/services/api/upload.api.html), read 6 Nov 2026 - [`www.flickr.com/services/api/flickr.people.getUploadStatus.html`](https://www.flickr.com/services/api/flickr.people.getUploadStatus.html), read 6 Nov 2026 - [`www.flickr.com/services/api/flickr.photos.getInfo.html`](https://www.flickr.com/services/api/flickr.photos.getInfo.html), read 6 Nov 2026 # Ghost How to connect Ghost to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Ghost account; Postbroad never provides an app or an account. ## What you need {#needs} - Your site address - An Admin API key: Settings, Integrations, Add custom integration - App review: none. Ghost does not review an app before it posts. Checked on 24 Oct 2026 against Ghost's own documentation. ## Set up, step by step {#setup} ### In Ghost 1. Open Settings, Integrations and choose Add custom integration. Name it Postbroad. 2. Copy the Admin API key and your site's address. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Ghost. 2. Choose Continue and fill in Your Ghost details, then choose Connect: - **Site address**: For example https://example.ghost.io - **Admin API key**: In Ghost, Settings, Integrations, add a custom integration and copy its Admin API key Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Ghost | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: feature image, tags and page. Text: no fixed number of characters. The docs document no content limit. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Feature image | WebP, JPEG, GIF, PNG, SVG+XML | not stated | not stated | not stated | ## Limits {#limits} Ghost documents no rate limit. Postbroad slows down when Ghost says so and waits as long as it asks. A post that Ghost is still processing after 30 minutes stays accepted: Ghost took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Ghost and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Publishing (`publish_by_id`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Ghost | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Ghost no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Ghost account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/ghost`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Ghost. ## Sources {#sources} - [`docs.ghost.org/admin-api`](https://docs.ghost.org/admin-api), read 24 Oct 2026 - [`github.com/TryGhost/Ghost/blob/v6.72.0/ghost/core/server/auth/api-key/admin.js`](https://github.com/TryGhost/Ghost/blob/v6.72.0/ghost/core/server/auth/api-key/admin.js), read 24 Oct 2026 - [`docs.ghost.org/admin-api/posts/creating-a-post`](https://docs.ghost.org/admin-api/posts/creating-a-post), read 24 Oct 2026 - [`docs.ghost.org/admin-api/pages/overview`](https://docs.ghost.org/admin-api/pages/overview), read 24 Oct 2026 - [`docs.ghost.org/admin-api/images/uploading-an-image`](https://docs.ghost.org/admin-api/images/uploading-an-image), read 24 Oct 2026 - [`docs.ghost.org/admin-api/posts/overview`](https://docs.ghost.org/admin-api/posts/overview), read 24 Oct 2026 - [`github.com/TryGhost/Ghost/blob/v6.72.0/ghost/core/server/api/endpoints/posts.js`](https://github.com/TryGhost/Ghost/blob/v6.72.0/ghost/core/server/api/endpoints/posts.js), read 24 Oct 2026 - [`docs.ghost.org/admin-api/posts/publishing-a-post`](https://docs.ghost.org/admin-api/posts/publishing-a-post), read 24 Oct 2026 - [`docs.ghost.org/admin-api/posts/updating-a-post`](https://docs.ghost.org/admin-api/posts/updating-a-post), read 24 Oct 2026 # Google Business Profile How to connect Google Business Profile to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Google Business Profile account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A developer app of your own on Google Business Profile - Your own Google Business Profile login - Google Business Profile must approve your app before it can post for other people - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/google_business_profile`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against Google Business Profile's own documentation. ## Set up, step by step {#setup} ### At Google 1. Make sure the Business Profile is verified and has been active for at least 60 days, and that it lists the business's website. 2. Create a project in the Google Cloud console and note its project number. 3. Request API access with Google's Business Profile API contact form, choosing Application for Basic API Access, from an email address that is an owner or manager of the profile. 4. Once access is approved, enable the Business Profile APIs in the project's API Library, including the Google My Business API, My Business Account Management API and My Business Business Information API. 5. Set up the OAuth consent screen, then create an OAuth client ID for a web application with the redirect URL from Postbroad. 6. Copy the client ID and the client secret. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Google Business Profile. 2. Under Add your Google Business Profile app, paste the Client ID and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Google Business Profile for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Google Business Profile opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## The review {#review} - Google reviews every request for API access. Until it is approved the project's quota is 0 requests a minute, so nothing can be posted. An approved project has 300 a minute. ## Posting rules {#posting} | In one post | On Google Business Profile | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: event post, offer post and call to action button. Text: up to 1,500 characters. To be confirmed: the network's documentation does not state it. Developers.google.com/my-business/reference/rest/v4/accounts.locations.localPosts and the Business Profile help on posts (support.google.com/business/answer/7342169) name no length for a post (read 2026-11-08); 1500 is kept unverified. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | 300 a minute | verified | | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Google Business Profile is still processing after 30 minutes stays accepted: Google Business Profile took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Google Business Profile accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`local_post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - 0 QPM before project approval. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Google Business Profile (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Google Business Profile | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | Google Business Profile no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Google Business Profile account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/google_business_profile`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Google Business Profile. ## Sources {#sources} - [`developers.google.com/my-business/content/prereqs`](https://developers.google.com/my-business/content/prereqs), read 8 Nov 2026 - [`developers.google.com/my-business/content/basic-setup`](https://developers.google.com/my-business/content/basic-setup), read 8 Nov 2026 - [`developers.google.com/youtube/v3/guides/auth/server-side-web-apps`](https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps), read 8 Nov 2026 # Hashnode How to connect Hashnode to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Hashnode account; Postbroad never provides an app or an account. ## What you need {#needs} - An access key from your Hashnode account settings - App review: none. Hashnode does not review an app before it posts. Checked on 21 Oct 2026 against Hashnode's own documentation. ## Set up, step by step {#setup} ### On Hashnode 1. Open Account settings, Developer, and generate a new personal access token. 2. Make sure the publication you post to is on Hashnode's Pro plan. Hashnode refuses API calls for other publications. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Hashnode. 2. Choose Continue and fill in Your Hashnode details, then choose Connect: - **Personal access token**: In Hashnode, Account settings, Developer, generate a new token Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Hashnode | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: cover image, tags, subtitle and canonical address. Text: no fixed number of characters. No text limit documented; the request body is capped at 100 KB, checked in preflight. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Cover image | not stated | 8 MB | not stated | not stated | ## Limits {#limits} Hashnode documents no rate limit. Postbroad slows down when Hashnode says so and waits as long as it asks. A post that Hashnode is still processing after 30 minutes stays accepted: Hashnode took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Hashnode and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Publishing (`publish_by_id`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Every query and mutation needs the publication on the Pro plan, FORBIDDEN otherwise: hashnode.com/announcements/graphql-api (2026-10-21). - Query responses may be cached for up to about 25 s; mutations are never cached. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Hashnode | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Hashnode no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Hashnode account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/hashnode`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Hashnode. ## Sources {#sources} - [`github.com/Hashnode/gql-skill@291402f`](https://github.com/Hashnode/gql-skill@291402f), read 21 Oct 2026 # Hatena Blog How to connect Hatena Blog to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Hatena Blog account; Postbroad never provides an app or an account. ## What you need {#needs} - Your Hatena ID and the domain of your blog, for example example.hatenablog.com - The AtomPub API key from your blog's settings (Settings, Advanced settings) - You are: the owner of the blog, or a member who may publish - App review: none. Hatena Blog does not review an app before it posts. Checked on 6 Nov 2026 against Hatena Blog's own documentation. ## Set up, step by step {#setup} ### In Hatena Blog 1. Open your blog's Settings, Advanced settings, and copy the AtomPub API key. 2. Note your Hatena ID (without id:) and your blog's hatenablog address, even if the blog uses its own domain. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Hatena Blog. 2. Choose Continue and fill in Your Hatena Blog details, then choose Connect: - **Hatena ID**: Your Hatena user name, without the id: prefix - **Blog domain**: For example example.hatenablog.com. With your own domain, use the original hatenablog address - **API key**: In Hatena Blog, Settings, Advanced settings, AtomPub, copy the API key Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Hatena Blog | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: categories and draft. Text: no fixed number of characters. The AtomPub page states no length limit for title or content (only summary, at most 140 characters, which this connector does not send). ## Limits {#limits} Hatena Blog documents no rate limit. Postbroad slows down when Hatena Blog says so and waits as long as it asks. A post that Hatena Blog is still processing after 30 minutes stays accepted: Hatena Blog took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Hatena Blog and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`entry_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - The request content type is sent as text/plain, as the documented example does; the blog's own editing mode decides how the text is shown. - A blog on its own domain is addressed by its original hatenablog domain. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Hatena Blog | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Hatena Blog no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Hatena Blog account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/hatena_blog`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Hatena Blog. ## Sources {#sources} - [`developer.hatena.ne.jp/ja/documents/blog/apis/atom`](https://developer.hatena.ne.jp/ja/documents/blog/apis/atom), read 6 Nov 2026 # Hive How to connect Hive to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Hive account; Postbroad never provides an app or an account. ## What you need {#needs} - Your Hive account name - Your private posting key from your Hive wallet (never the active or owner key) - Enough resource credits on the account to post - App review: none. Hive does not review an app before it posts. Checked on 6 Nov 2026 against Hive's own documentation. ## Set up, step by step {#setup} ### In your Hive wallet 1. Open your wallet's keys page and copy your private posting key. Never use your active or owner key. 2. Make sure the account has enough resource credits to post. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Hive. 2. Choose Continue and fill in Your Hive details, then choose Connect: - **Hive account name**: Without the @, for example alice - **Posting key**: Your private posting key, from your Hive wallet's keys page. Never your active or owner key Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Hive | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: title, tags and community. title up to 256. Verified on the network's own documentation. Title at most 256 bytes of UTF-8, body more than 0 bytes; no body limit is documented. ## Limits {#limits} Hive documents no rate limit. Postbroad slows down when Hive says so and waits as long as it asks. A post that Hive is still processing after 30 minutes stays accepted: Hive took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Hive and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`comment_broadcast`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Posting spends the account's resource credits; a top level post every 5 minutes at most (chain rule, not in the API reference). - JSON-RPC on api.hive.blog; chain id beeab0de00000000000000000000000000000000000000000000000000000000 (`condenser_api`.get_version). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Hive | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Hive no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Hive account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/hive`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Hive. ## Sources {#sources} - [`developers.hive.io/apidefinitions/broadcast-ops.html`](https://developers.hive.io/apidefinitions/broadcast-ops.html), read 6 Nov 2026 - [`developers.hive.io/apidefinitions/condenser-api.html`](https://developers.hive.io/apidefinitions/condenser-api.html), read 6 Nov 2026 - [`developers.hive.io/apidefinitions/bridge-api.html`](https://developers.hive.io/apidefinitions/bridge-api.html), read 6 Nov 2026 # Instagram How to connect Instagram to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Instagram account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - An Instagram professional account (business or creator), not a personal one - A Meta developer app with Instagram added - You are: the owner of the Instagram account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/instagram`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against Instagram's own documentation. ## Set up, step by step {#setup} ### On Meta for Developers 1. Use an Instagram professional account (business or creator). A personal account cannot be connected. 2. Create a Meta app at developers.facebook.com/apps/creation, or open the one you already use, and add the Instagram product. 3. Open Instagram, API setup with Instagram login, then Set up Instagram business login, Business login settings. 4. Under OAuth redirect URIs, add the redirect URL from Postbroad and save. 5. On the same settings page, copy the Instagram App ID and the Instagram app secret. Postbroad needs these two, not the Meta App ID. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Instagram. 2. Under Add your Instagram app, paste the Instagram App ID and the Instagram app secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Instagram for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Instagram opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Instagram asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `instagram_business_basic` | See your profile and username. | | `instagram_business_content_publish` | Post pictures, video and carousels. | | `instagram_business_manage_comments` | Add the first comment under a post. | ## The review {#review} - Standard Access covers the Instagram professional accounts you own or manage and have added to your app. That is enough for your own accounts. - Accounts you do not own or manage need Advanced Access, which Meta grants through App Review. ## Posting rules {#posting} | In one post | On Instagram | |---|---| | Text | yes | | Pictures | up to 20 pictures | | Video | up to 20 videos | | Carousel | up to 20 items | | Thread of replies | no | | First comment | yes, text | | Long article | no | | Needs a picture or video | yes | Extra options: video as a reel, people tags, location and trial reel, shown to people who don't follow you first. Text: up to 2,200 characters. Verified on the network's own documentation. At most 30 hashtags and 20 @mentions per caption. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | JPEG | 8 MB | not stated | width 320 to 1,440 px, aspect 4:5 to 1.91:1 | | Video | MP4, MOV | 300 MB | 15 minutes | width up to 1,920 px, aspect 1:100 to 10:1 | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | read from Instagram's answers | verified | Instagram business use case limit, 4800 calls times impressions per 24 h, from X-Business-Use-Case-Usage; code 80002. | | Per account | Posts and other writes | read from Instagram before each post | verified | `content_publishing_limit` `quota_total` read before each publish, never hard-coded; Meta's pages say 50 and 100 per 24 h moving window, carousels count as one. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Instagram is still processing after 30 minutes stays accepted: Instagram took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Instagram and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Publishing (`media_publish`): Before any retry, Postbroad looks the post up on the network by its stored identity. It retries only when the lookup shows nothing was created. Proof that nothing was posted: Container `status_code` ERROR or EXPIRED and never published. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Only Instagram professional accounts (business or creator) can be connected. - Meta fetches the media from a link Postbroad gives it, so nothing is uploaded from your computer during publishing. - Media cannot be deleted from Instagram through the Business Login API. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Instagram (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Instagram | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Instagram and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Instagram no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Instagram account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/instagram`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Instagram. ## Sources {#sources} - [`developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/business-login`](https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/business-login), read 8 Nov 2026 - [`developers.facebook.com/docs/development/create-an-app/`](https://developers.facebook.com/docs/development/create-an-app/), read 8 Nov 2026 - [`developers.facebook.com/docs/instagram-platform/reference/access_token`](https://developers.facebook.com/docs/instagram-platform/reference/access_token), read 24 Oct 2026 - [`developers.facebook.com/docs/instagram-platform/content-publishing`](https://developers.facebook.com/docs/instagram-platform/content-publishing), read 18 Nov 2026 - [`developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media`](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media), read 18 Nov 2026 - [`developers.facebook.com/docs/instagram-platform/overview`](https://developers.facebook.com/docs/instagram-platform/overview), read 24 Oct 2026 - [`developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-container`](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-container), read 24 Oct 2026 - [`developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-media`](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-media), read 24 Oct 2026 - [`developers.facebook.com/docs/graph-api/overview/rate-limiting`](https://developers.facebook.com/docs/graph-api/overview/rate-limiting), read 24 Oct 2026 - [`developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/content_publishing_limit`](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/content_publishing_limit), read 24 Oct 2026 # Kick How to connect Kick to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Kick account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A developer app of your own on Kick - Your own Kick login - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/kick`. The connect page in Postbroad shows the same address with a copy button. - App review: none. Kick does not review an app before it posts. Checked on 8 Nov 2026 against Kick's own documentation. ## Set up, step by step {#setup} ### On Kick 1. Turn on two factor authentication in your Kick account settings. The developer tools need it. 2. Open Account Settings, Developer (kick.com/settings/developer) and create an app with the redirect URL from Postbroad. 3. Copy the Client ID and the Client Secret the app gets. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Kick. 2. Under Add your Kick app, paste the Client ID and the Client Secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Kick for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Kick opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Kick | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Text: up to 500 characters as a reader sees them. Verified on the network's own documentation. 500 grapheme clusters and at most 2048 UTF-8 bytes. ## Limits {#limits} Kick documents no rate limit. Postbroad slows down when Kick says so and waits as long as it asks. A post that Kick is still processing after 30 minutes stays accepted: Kick took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Kick accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the network's acknowledgement. Before a retry: - Posting (`chat_message`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - No rate limits are documented (docs.kick.com; read 2026-10-24). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Kick (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Kick | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | Kick no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Kick account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/kick`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Kick. ## Sources {#sources} - [`docs.kick.com/getting-started/kick-apps-setup`](https://docs.kick.com/getting-started/kick-apps-setup), read 8 Nov 2026 - [`docs.kick.com/getting-started/generating-tokens-oauth2-flow`](https://docs.kick.com/getting-started/generating-tokens-oauth2-flow), read 24 Oct 2026 - [`docs.kick.com/apis/chat`](https://docs.kick.com/apis/chat), read 24 Oct 2026 # Kuaishou How to connect Kuaishou to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Kuaishou account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Kuaishou account that posts video - A website app of your own on the Kuaishou open platform (open.kuaishou.com), with its App ID and secret, this redirect address, and video publishing approved for it - You are: the owner of the Kuaishou account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/kuaishou`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 6 Nov 2026 against Kuaishou's own documentation. ## Set up, step by step {#setup} ### On the Kuaishou open platform 1. Create a website app of your own on the Kuaishou open platform (open.kuaishou.com). 2. Add the redirect URL from Postbroad to the app. 3. Apply for the permissions user_info, user_video_publish and user_video_info, and wait for video publishing to be approved. 4. Copy the App ID and the app secret. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Kuaishou. 2. Under Add your Kuaishou app, paste the App ID and the App secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Kuaishou for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Kuaishou opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Kuaishou asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `user_info` | See which Kuaishou account you signed in with. | | `user_video_publish` | Upload and publish videos to your account. | | `user_video_info` | Read a published video, to check that it went live. | ## The review {#review} - Kuaishou approves video publishing for each app before it can post. ## Posting rules {#posting} | In one post | On Kuaishou | |---|---| | Text | yes | | Pictures | 1 picture | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: cover image. Text: no fixed number of characters. The docs state no caption limit. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Video | MP4 | not stated | not stated | not stated | | Cover image | JPEG, PNG | 10 MB | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 1,000 a day | to be confirmed | Error 100100402: a user over 1,000 calls a day or an app over 100,000 a day; the page does not say which calls count. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Kuaishou is still processing after 30 minutes stays accepted: Kuaishou took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Kuaishou and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`photo_publish`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Every answer carries result (1 is success) and `error_msg`; photo/info writes its codes without the 100 prefix. - The API returns no public page address for a video. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Kuaishou (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Kuaishou | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Kuaishou and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Kuaishou no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Kuaishou account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/kuaishou`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Kuaishou. ## Sources {#sources} - [`open.kuaishou.com/platform/openApi?menu=12`](https://open.kuaishou.com/platform/openApi?menu=12), read 6 Nov 2026 - [`open.kuaishou.com/platform/openApi?menu=13`](https://open.kuaishou.com/platform/openApi?menu=13), read 6 Nov 2026 - [`open.kuaishou.com/platform/openApi?menu=20`](https://open.kuaishou.com/platform/openApi?menu=20), read 6 Nov 2026 - [`open.kuaishou.com/platform/openApi?menu=17`](https://open.kuaishou.com/platform/openApi?menu=17), read 6 Nov 2026 - [`open.kuaishou.com/platform/openApi?menu=22`](https://open.kuaishou.com/platform/openApi?menu=22), read 6 Nov 2026 # Lemmy How to connect Lemmy to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Lemmy account; Postbroad never provides an app or an account. ## What you need {#needs} - Your own Lemmy account - App review: none. Lemmy does not review an app before it posts. Checked on 21 Oct 2026 against Lemmy's own documentation. ## Set up, step by step {#setup} ### On Lemmy 1. Nothing to make. You need the address of your Lemmy server and your username or email and password there, plus your two factor code if it is on. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Lemmy. 2. Choose Continue and fill in Your Lemmy details, then choose Connect: - **Instance address**: For example https://lemmy.world - **Username or email** - **Password** - **Two-factor code** (optional): Only if your account has two-factor login turned on Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Lemmy | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | yes, text | | Long article | no | | Needs a picture or video | no | Extra options: title, link preview and adult content flag. Text: up to 50,000 characters, title up to 200. Verified on the network's own documentation. ## Limits {#limits} Lemmy documents no rate limit. Postbroad slows down when Lemmy says so and waits as long as it asks. A post that Lemmy is still processing after 30 minutes stays accepted: Lemmy took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Lemmy and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Per-instance behaviour differs. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Lemmy | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Lemmy no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Lemmy account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/lemmy`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Lemmy. ## Sources {#sources} - [`github.com/LemmyNet/lemmy/blob/0.19.20/crates/api/src/local_user/login.rs`](https://github.com/LemmyNet/lemmy/blob/0.19.20/crates/api/src/local_user/login.rs), read 21 Oct 2026 - [`github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_common/src/claims.rs`](https://github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_common/src/claims.rs), read 21 Oct 2026 - [`github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_common/src/post.rs`](https://github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_common/src/post.rs), read 21 Oct 2026 - [`github.com/LemmyNet/lemmy/blob/0.19.20/crates/utils/src/utils/validation.rs`](https://github.com/LemmyNet/lemmy/blob/0.19.20/crates/utils/src/utils/validation.rs), read 21 Oct 2026 - [`github.com/LemmyNet/lemmy/blob/0.19.20/crates/routes/src/images.rs`](https://github.com/LemmyNet/lemmy/blob/0.19.20/crates/routes/src/images.rs), read 21 Oct 2026 - [`github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_crud/src/post/read.rs`](https://github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_crud/src/post/read.rs), read 21 Oct 2026 - [`github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_crud/src/post/create.rs`](https://github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_crud/src/post/create.rs), read 21 Oct 2026 - [`github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_crud/src/comment/create.rs`](https://github.com/LemmyNet/lemmy/blob/0.19.20/crates/api_crud/src/comment/create.rs), read 21 Oct 2026 # Lens How to connect Lens to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Lens account; Postbroad never provides an app or an account. ## What you need {#needs} - Your Lens account address - An app of your own, created in the Lens developer dashboard, and its address - A wallet you added as an account manager of your Lens account, and its private key - Signless turned on for your Lens account - You are: the owner of the Lens account - App review: none. Lens does not review an app before it posts. Checked on 6 Nov 2026 against Lens's own documentation. ## Set up, step by step {#setup} ### In the Lens developer dashboard 1. Create an app in the Lens developer dashboard and note its address. 2. Add a wallet as an account manager of your Lens account and turn on signless. 3. Keep that manager wallet's private key for Postbroad. Never use your owner wallet's key. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Lens. 2. Choose Continue and fill in Your Lens details, then choose Connect: - **Lens account address**: The 0x address of your Lens account - **Your Lens app address**: The 0x address of the app you created in the Lens developer dashboard - **Account manager private key**: The key of a wallet you added as a manager of your Lens account, with signless turned on. Never your owner wallet key Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Lens | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: content warning and tags. Text: no fixed number of characters. Content is Markdown; no length limit is documented. ## Limits {#limits} Lens documents no rate limit. Postbroad slows down when Lens says so and waits as long as it asks. A post that Lens is still processing after 30 minutes stays accepted: Lens took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Lens and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - GraphQL on api.lens.xyz/graphql; metadata on Grove for Lens Chain mainnet (chain id 232). - Without signless the API answers with a transaction for the manager to sign; this connector refuses that answer before anything is sent. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Lens | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Lens no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Lens account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/lens`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Lens. ## Sources {#sources} - [`lens.xyz/docs/protocol/authentication`](https://lens.xyz/docs/protocol/authentication), read 6 Nov 2026 - [`lens.xyz/docs/protocol/accounts/manager`](https://lens.xyz/docs/protocol/accounts/manager), read 6 Nov 2026 - [`github.com/lens-protocol/lens-sdk/blob/main/packages/graphql/schema.graphql`](https://github.com/lens-protocol/lens-sdk/blob/main/packages/graphql/schema.graphql), read 6 Nov 2026 - [`lens.xyz/docs/protocol/feeds/post`](https://lens.xyz/docs/protocol/feeds/post), read 6 Nov 2026 - [`github.com/lens-protocol/metadata`](https://github.com/lens-protocol/metadata), read 6 Nov 2026 - [`lens.xyz/docs/storage/usage/upload`](https://lens.xyz/docs/storage/usage/upload), read 6 Nov 2026 # LINE Official Account How to connect LINE Official Account to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own LINE Official Account account; Postbroad never provides an app or an account. ## What you need {#needs} - A LINE Official Account with the Messaging API turned on - A long-lived channel access key, issued in the LINE Developers console - You are: admin of the LINE Official Account - App review: none. LINE Official Account does not review an app before it posts. Checked on 6 Nov 2026 against LINE Official Account's own documentation. ## Set up, step by step {#setup} ### In the LINE Developers console 1. Turn on the Messaging API for your LINE Official Account. 2. In the LINE Developers console, open the Messaging API channel and issue a long-lived channel access token. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect LINE Official Account. 2. Choose Continue and fill in Your LINE Official Account details, then choose Connect: - **Channel access token**: In the LINE Developers console, your Messaging API channel, issue a long-lived channel access token Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On LINE Official Account | |---|---| | Text | yes | | Pictures | up to 4 pictures | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Text: up to 5,000 characters. Verified on the network's own documentation. A text message is at most 5000 characters. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | JPEG, PNG | 1 MB | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per key or sign-in | Posts and other writes | 60 an hour | verified | Broadcast: 60 requests an hour. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that LINE Official Account is still processing after 30 minutes stays accepted: LINE Official Account took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted: LINE Official Account accepts the post but offers no way to read it back, so Postbroad reports it as accepted, never as live.** Evidence, in order: the network's acknowledgement. Before a retry: - Posting (`broadcast`): The network deduplicates on an idempotency key. A retry sends the same key and cannot create a second post. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Each friend reached counts toward the account's monthly message quota (GET /v2/bot/message/quota). - The delivery's provider reference is the X-Line-Request-Id of the accepted request, not a message id. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect LINE Official Account | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | LINE Official Account no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected LINE Official Account account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/line`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to LINE Official Account. ## Sources {#sources} - [`developers.line.biz/en/reference/messaging-api`](https://developers.line.biz/en/reference/messaging-api), read 6 Nov 2026 - [`developers.line.biz/en/docs/messaging-api/retrying-api-request`](https://developers.line.biz/en/docs/messaging-api/retrying-api-request), read 6 Nov 2026 # LinkedIn How to connect LinkedIn to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own LinkedIn account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A LinkedIn developer app with Share on LinkedIn and Sign In with LinkedIn added - Your own LinkedIn login - You are: the owner of the LinkedIn profile - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/linkedin`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against LinkedIn's own documentation. ## Set up, step by step {#setup} ### On the LinkedIn Developer Portal 1. Create an app at linkedin.com/developers/apps, or open one you already have. 2. On the Products tab, add Share on LinkedIn and Sign In with LinkedIn using OpenID Connect. 3. On the Auth tab, add the redirect URL from Postbroad under the app's redirect URLs. It must be the full https address. 4. Copy the Client ID and the Primary Client Secret from the Auth tab. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect LinkedIn. 2. Under Add your LinkedIn app, paste the Client ID and the Primary Client Secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens LinkedIn for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. LinkedIn opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What LinkedIn asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `openid` | Find out which LinkedIn profile you signed in with. | | `profile` | Show your name next to the connection. | | `w_member_social` | Post on your own profile. | ## The review {#review} - Share on LinkedIn is added from the Products tab and gives the permission to post on your own profile. - LinkedIn decides which products an app may use. The Auth tab shows the permissions your app has today. ## Posting rules {#posting} | In one post | On LinkedIn | |---|---| | Text | yes | | Pictures | yes | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | yes, text | | Long article | no | | Needs a picture or video | no | Extra options: PDF shown as a carousel, uploaded or built from the post's pictures and poll. Text: up to 3,000 characters. Verified on the network's own documentation. The UGC Post API page states the text of a post is at most 3,000 characters; the Posts API, which replaces ugcPosts, names no number and refuses longer commentary with FIELD_LENGTH_TOO_LONG (shares/posts-api; read 2026-11-07). | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Document | PDF | not stated | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | 500, period not stated | to be confirmed | Development tier 500 calls per app; the period is unverified. | | Per app or bot, shared by every account on it | Posts and other writes | read from LinkedIn's answers | to be confirmed | | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that LinkedIn is still processing after 30 minutes stays accepted: LinkedIn took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: LinkedIn accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - API version pinned to a current release; 202511 sunsets 2026-11-16. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on LinkedIn (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect LinkedIn | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect LinkedIn and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | LinkedIn no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected LinkedIn account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/linkedin`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to LinkedIn. ## Sources {#sources} - [`learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow`](https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow), read 8 Nov 2026 - [`learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin`](https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin), read 8 Nov 2026 - [`learn.microsoft.com/linkedin/marketing/community-management/shares/ugc-post-api`](https://learn.microsoft.com/linkedin/marketing/community-management/shares/ugc-post-api), read 7 Nov 2026 - [`learn.microsoft.com`](https://learn.microsoft.com) # Listmonk How to connect Listmonk to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Listmonk account; Postbroad never provides an app or an account. ## What you need {#needs} - An access key from your Listmonk account settings - App review: none. Listmonk does not review an app before it posts. Checked on 21 Oct 2026 against Listmonk's own documentation. ## Set up, step by step {#setup} ### In Listmonk 1. In your Listmonk, open Admin, Users and create an API user. 2. Copy the token Listmonk shows when the API user is made. 3. Keep your Listmonk address at hand, for example https://news.example.com. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Listmonk. 2. Choose Continue and fill in Your Listmonk details, then choose Connect: - **Listmonk address**: For example https://news.example.com - **API user**: In Listmonk, Admin, Users, create an API user - **API token**: The token shown when you create the API user Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Listmonk | |---|---| | Text | yes | | Pictures | yes | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: subject, template and list. title up to 5,000. Verified on the network's own documentation. ## Limits {#limits} Listmonk documents no rate limit. Postbroad slows down when Listmonk says so and waits as long as it asks. A post that Listmonk is still processing after 30 minutes stays accepted: Listmonk took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Listmonk accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the network's status endpoint; the network's acknowledgement. Before a retry: - Publishing (`campaign_start`): The network stages the post and then commits it. A retry resumes the staged post and cannot create a second post. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Bad API credentials are 403 invalid API credentials, never 401. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Listmonk | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Listmonk no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Listmonk account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/listmonk`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Listmonk. ## Sources {#sources} - [`listmonk.app/docs/apis/apis`](https://listmonk.app/docs/apis/apis), read 21 Oct 2026 - [`github.com/knadh/listmonk/blob/v6.2.0/internal/auth/auth.go`](https://github.com/knadh/listmonk/blob/v6.2.0/internal/auth/auth.go), read 21 Oct 2026 - [`listmonk.app/docs/apis/campaigns`](https://listmonk.app/docs/apis/campaigns), read 21 Oct 2026 - [`listmonk.app/docs/apis/media`](https://listmonk.app/docs/apis/media), read 21 Oct 2026 - [`github.com/knadh/listmonk/blob/v6.2.0/cmd/campaigns.go`](https://github.com/knadh/listmonk/blob/v6.2.0/cmd/campaigns.go), read 21 Oct 2026 - [`github.com/knadh/listmonk/blob/v6.2.0/cmd/media.go`](https://github.com/knadh/listmonk/blob/v6.2.0/cmd/media.go), read 21 Oct 2026 - [`github.com/knadh/listmonk/blob/v6.2.0/internal/core/campaigns.go`](https://github.com/knadh/listmonk/blob/v6.2.0/internal/core/campaigns.go), read 21 Oct 2026 # Mastodon How to connect Mastodon to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Mastodon account; Postbroad never provides an app or an account. ## What you need {#needs} - The address of your Mastodon server, for example mastodon.social - Your login on that server - App review: none. Mastodon does not review an app before it posts. ## Set up, step by step {#setup} ### On Mastodon 1. Nothing to make. Postbroad registers itself as an app on your Mastodon server when you connect, so you only need your server's address and your login there. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Mastodon. 2. Under Your Mastodon server, enter your server's address, then choose Continue to Mastodon. Postbroad registers itself on your server, so there is no app to make. 3. Your server opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Mastodon | |---|---| | Text | yes | | Pictures | up to 4 pictures | | Video | yes | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: content warning, who can see it and poll. Text: no fixed number of characters. Per instance, read from /api/v2/instance. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 300 per 5 minutes | to be confirmed | 300 requests per 5 min per account, instance configurable. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Mastodon is still processing after 30 minutes stays accepted: Mastodon took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Mastodon accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`status_create`): The network deduplicates on an idempotency key. A retry sends the same key and cannot create a second post. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Per instance limits. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Mastodon | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | Mastodon no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Mastodon account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/mastodon`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Mastodon. ## Sources {#sources} - Postbroad's own connector for this network. # Medium How to connect Medium to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Medium account; Postbroad never provides an app or an account. ## What you need {#needs} - An access key from your Medium account settings - App review: none. Medium does not review an app before it posts. Checked on 21 Oct 2026 against Medium's own documentation. ## Set up, step by step {#setup} ### On Medium 1. Medium no longer issues new integration tokens. If you already have one, find it in Medium under Settings, Security and apps, Integration tokens. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Medium. 2. Choose Continue and fill in Your Medium details, then choose Connect: - **Integration token**: In Medium, Settings, Security and apps, Integration tokens Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Medium | |---|---| | Text | yes | | Pictures | yes | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: title, tags, publication, canonical address, license and notify followers. Text: up to 100,000 characters, title up to 100. To be confirmed: the network's documentation does not state it. Body limit not documented (README read 2026-10-21); titles over 100 characters are ignored, not refused. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture in the text | JPEG, PNG, GIF, TIFF | 25 MB | not stated | not stated | ## Limits {#limits} Medium documents no rate limit. Postbroad slows down when Medium says so and waits as long as it asks. A post that Medium is still processing after 30 minutes stays accepted: Medium took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted: Medium accepts the post but offers no way to read it back, so Postbroad reports it as accepted, never as live.** Evidence, in order: the network's acknowledgement. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Medium no longer supports its API and can turn it off at any time. Only an integration token made earlier works. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Medium | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Medium no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Medium account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/medium`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Medium. ## Sources {#sources} - [`github.com/Medium/medium-api-docs`](https://github.com/Medium/medium-api-docs), read 21 Oct 2026 - [`help.medium.com/hc/en-us/articles/213480228`](https://help.medium.com/hc/en-us/articles/213480228), read 21 Oct 2026 - [`help.medium.com/hc/en-us/articles/215679797`](https://help.medium.com/hc/en-us/articles/215679797), read 21 Oct 2026 # MeWe How to connect MeWe to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own MeWe account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Standalone app of your own from the MeWe Developer Program (dev.mewe.com), with its App ID and API key - The redirect URL shown on the MeWe connect page, added to that app - Your own MeWe account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/mewe`. The connect page in Postbroad shows the same address with a copy button. - App review: none. MeWe does not review an app before it posts. Checked on 8 Nov 2026 against MeWe's own documentation. ## Set up, step by step {#setup} ### In the MeWe Developer Program 1. Apply to the MeWe Developer Program at dev.mewe.com for a Standalone app. MeWe reviews each request, and places are limited. 2. When MeWe approves the app, copy its App ID and API key. 3. Add the redirect URL from Postbroad to the app. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect MeWe. 2. Under Add your MeWe app, paste the App ID and the API key, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens MeWe for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. MeWe opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## The review {#review} - MeWe reviews every request to its developer program, which is a beta with limited places. Nothing can be connected before the app is approved. ## Posting rules {#posting} | In one post | On MeWe | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Text: up to 63,206 characters. To be confirmed: the network's documentation does not state it. The MeWe OpenAPI names no length limit (read 2026-10-24); kept unverified and not enforced. ## Limits {#limits} MeWe documents no rate limit. Postbroad slows down when MeWe says so and waits as long as it asks. A post that MeWe is still processing after 30 minutes stays accepted: MeWe took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **A person confirms it: MeWe gives Postbroad no way to see the post, so a person confirms it is live and adds its link.** Evidence, in order: the post read back and matched to what was sent; a person's confirmation. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Group posts are found again in the group's feed, so they show as live. For posts on your own profile, a person confirms they are live. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on MeWe (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect MeWe | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | MeWe no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected MeWe account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/mewe`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to MeWe. ## Sources {#sources} - [`dev.mewe.com/authentication`](https://dev.mewe.com/authentication), read 8 Nov 2026 - [`dev.mewe.com/api/docs/openapi/docs.yaml`](https://dev.mewe.com/api/docs/openapi/docs.yaml), read 24 Oct 2026 # Mighty Networks How to connect Mighty Networks to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Mighty Networks account; Postbroad never provides an app or an account. ## What you need {#needs} - A Mighty Network on the Scale, Growth or Mighty Pro plan, which includes the API - An API key: Admin, Settings, API Keys, Generate New API Key - Your network's ID or subdomain - You are: host of the network - App review: none. Mighty Networks does not review an app before it posts. Checked on 6 Nov 2026 against Mighty Networks's own documentation. ## Set up, step by step {#setup} ### In Mighty Networks 1. As a host, open Admin, Settings, API Keys and choose Generate New API Key. 2. Note your network's ID or subdomain, for example mycommunity. 3. The API comes with the Scale, Growth and Mighty Pro plans. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Mighty Networks. 2. Choose Continue and fill in Your Mighty Networks details, then choose Connect: - **Network ID or subdomain**: The number or subdomain of your network, for example mycommunity - **API key**: In Mighty Networks, Admin, Settings, API Keys, Generate New API Key Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Mighty Networks | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: title. Text: no fixed number of characters. No length limit is documented. ## Limits {#limits} Mighty Networks documents no rate limit. Postbroad slows down when Mighty Networks says so and waits as long as it asks. A post that Mighty Networks is still processing after 30 minutes stays accepted: Mighty Networks took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Mighty Networks and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - A 402 means the network is out of credits and nothing ran. - A 429 means posting too frequently, with Retry-After; no number is documented. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Mighty Networks | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Mighty Networks no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Mighty Networks account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/mighty_networks`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Mighty Networks. ## Sources {#sources} - [`docs.mightynetworks.com/authentication.md`](https://docs.mightynetworks.com/authentication.md), read 6 Nov 2026 - [`docs.mightynetworks.com/quickstart.md`](https://docs.mightynetworks.com/quickstart.md), read 6 Nov 2026 - [`docs.mightynetworks.com/api-reference/posts/create-a-new-post-and-optionally-notify-the-network.md`](https://docs.mightynetworks.com/api-reference/posts/create-a-new-post-and-optionally-notify-the-network.md), read 6 Nov 2026 - [`docs.mightynetworks.com/posts.md`](https://docs.mightynetworks.com/posts.md), read 6 Nov 2026 - [`api.mn.co/admin/v1/spec/rest.json`](https://api.mn.co/admin/v1/spec/rest.json), read 6 Nov 2026 # Misskey How to connect Misskey to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Misskey account; Postbroad never provides an app or an account. ## What you need {#needs} - The address of your Misskey server, for example misskey.io (Sharkey and other Misskey based servers work too) - An access key you create in Settings, API on that server, allowed to view your account, compose notes and edit Drive files - App review: none. Misskey does not review an app before it posts. Checked on 6 Nov 2026 against Misskey's own documentation. ## Set up, step by step {#setup} ### On your Misskey server 1. Open Settings, API and generate an access token. 2. Allow it to view your account information, compose or delete notes, and edit or delete your Drive files. 3. Note your server's address, for example misskey.io. Sharkey and other Misskey based servers work too. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Misskey. 2. Choose Continue and fill in Your Misskey details, then choose Connect: - **Server address**: For example https://misskey.io - **Access token**: In Misskey, Settings, API, generate an access token with View your account information, Compose or delete notes, and Edit or delete your Drive files Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Misskey | |---|---| | Text | yes | | Pictures | up to 16 pictures | | Video | up to 16 videos | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: content warning, who can see it and local only. Text: up to 3,000 characters. Verified on the network's own documentation. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 300 an hour | to be confirmed | | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Misskey is still processing after 30 minutes stays accepted: Misskey took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Misskey and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`note_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Errors are {error: {code, message, id}}; 401 AUTHENTICATION_FAILED, 403 PERMISSION_DENIED, 429 RATE_LIMIT_EXCEEDED with Retry-After. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Misskey | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Misskey no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Misskey account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/misskey`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Misskey. ## Sources {#sources} - [`misskey-hub.net/en/docs/for-developers/api`](https://misskey-hub.net/en/docs/for-developers/api), read 6 Nov 2026 - [`github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/ApiCallService.ts`](https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/ApiCallService.ts), read 6 Nov 2026 - [`misskey-hub.net/en/docs/for-developers/api/token`](https://misskey-hub.net/en/docs/for-developers/api/token), read 6 Nov 2026 - [`github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/notes/create.ts`](https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/notes/create.ts), read 6 Nov 2026 - [`github.com/misskey-dev/misskey/blob/develop/packages/backend/src/const.ts`](https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/const.ts), read 6 Nov 2026 - [`github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/drive/files/create.ts`](https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/drive/files/create.ts), read 6 Nov 2026 - [`github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/i.ts`](https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/i.ts), read 6 Nov 2026 - [`github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/notes/show.ts`](https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/notes/show.ts), read 6 Nov 2026 # Nostr How to connect Nostr to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Nostr account; Postbroad never provides an app or an account. ## What you need {#needs} - Your own Nostr account - App review: none. Nostr does not review an app before it posts. Checked on 24 Oct 2026 against Nostr's own documentation. ## Set up, step by step {#setup} ### In your Nostr signer 1. Best: open your signer app and copy its bunker:// address for Postbroad. Postbroad then asks the signer to sign each post and never holds your key. 2. Or, if you have no signer, use your private key (nsec) with the relays to post to. Postbroad stores it sealed, and it can post as you, so use it only if you accept that. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Nostr. 2. Choose Continue and fill in Your Nostr details, then choose Connect: - **Remote signer address** (optional): A bunker:// address from your signer app. Use this or a private key. - **Relays** (optional): Relay addresses, separated by spaces or new lines. Needed with a private key. - **Private key** (optional): Only if you have no remote signer. The key is stored sealed and can post as you. - **I accept the risk of Postbroad storing my private key** (tick box) Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Nostr | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Text: no fixed number of characters. The protocol sets no limit; each relay may publish limitation.max_content_length (Unicode characters) in its NIP-11 document, read per account. ## Limits {#limits} Nostr documents no rate limit. Postbroad slows down when Nostr says so and waits as long as it asks. A post that Nostr is still processing after 30 minutes stays accepted: Nostr took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Nostr accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`event_publish`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Relays decide whether to keep a post, and a deletion request is not guaranteed on every relay. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Nostr | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Nostr no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Nostr account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/nostr`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Nostr. ## Sources {#sources} - [`github.com/nostr-protocol/nips/blob/master/46.md`](https://github.com/nostr-protocol/nips/blob/master/46.md), read 24 Oct 2026 - [`github.com/nostr-protocol/nips/blob/master/01.md`](https://github.com/nostr-protocol/nips/blob/master/01.md), read 24 Oct 2026 - [`github.com/nostr-protocol/nips/blob/master/65.md`](https://github.com/nostr-protocol/nips/blob/master/65.md), read 24 Oct 2026 # OK (Odnoklassniki) How to connect OK (Odnoklassniki) to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own OK (Odnoklassniki) account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - An OK app made at ok.ru/devaccess, with sign-in from other sites added and this page's redirect URL in its list - In the App ID field: the application ID and the public key, joined by a colon. In the secret field: the secret key - Group posting and photo rights for the app, which OK gives on request to api-support@ok.ru - You are: an administrator, editor or moderator of the OK group - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/odnoklassniki`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against OK (Odnoklassniki)'s own documentation. ## Set up, step by step {#setup} ### On OK 1. Request developer rights at ok.ru/devaccess with your OK account, which needs an email address. 2. Once approved, add an app (Games, My downloads, Add app), give it a title and turn on the OAuth platform. 3. Add the redirect URL from Postbroad to the app's redirect_uris list. 4. OK emails the app's ID and keys to the address on your account. In Postbroad, enter the application ID and the public key joined by a colon, then the secret key. 5. Write to api-support@ok.ru with the app ID and ask for group posting (GROUP_CONTENT) and photo (PHOTO_CONTENT) rights. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect OK (Odnoklassniki). 2. Under Add your OK (Odnoklassniki) app, paste the Application ID and public key and the Secret key, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens OK (Odnoklassniki) for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. OK (Odnoklassniki) opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What OK (Odnoklassniki) asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `VALUABLE_ACCESS` | See which OK account you signed in with, and read posts back. | | `GROUP_CONTENT` | List your groups and post in the ones you pick. | | `PHOTO_CONTENT` | Upload the pictures of a post. | ## The review {#review} - Posting in groups needs the GROUP_CONTENT right and photos the PHOTO_CONTENT right. OK grants both on request to api-support@ok.ru. ## Posting rules {#posting} | In one post | On OK (Odnoklassniki) | |---|---| | Text | yes | | Pictures | yes | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: link preview. Text: no fixed number of characters. Mediatopic.post names no text limit. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | JPEG, PNG, GIF | not stated | not stated | not stated | ## Limits {#limits} OK (Odnoklassniki) documents no rate limit. Postbroad slows down when OK (Odnoklassniki) says so and waits as long as it asks. A post that OK (Odnoklassniki) is still processing after 30 minutes stays accepted: OK (Odnoklassniki) took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: OK (Odnoklassniki) accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`mediatopic_post`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Group posting needs GROUP_CONTENT, granted by OK on request (api-support@ok.ru). - Almost no REST method has a call limit; a limit shows as FLOOD_BLOCKED (apiok.ru/dev/limits, 2026-11-06). - Errors come as JSON with `error_code` and `error_msg` (apiok.ru/dev/errors, 2026-11-06). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on OK (Odnoklassniki) (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect OK (Odnoklassniki) | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect OK (Odnoklassniki) and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | OK (Odnoklassniki) no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected OK (Odnoklassniki) account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/odnoklassniki`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to OK (Odnoklassniki). ## Sources {#sources} - [`apiok.ru/en/dev/app/create`](https://apiok.ru/en/dev/app/create), read 8 Nov 2026 - [`id.vk.com/about/business/go/docs/ru/vkid/latest/oauth/oauth-ok/server`](https://id.vk.com/about/business/go/docs/ru/vkid/latest/oauth/oauth-ok/server), read 6 Nov 2026 - [`apiok.ru/dev/app/create`](https://apiok.ru/dev/app/create), read 6 Nov 2026 - [`apiok.ru/dev/methods/rest/mediatopic/mediatopic.post`](https://apiok.ru/dev/methods/rest/mediatopic/mediatopic.post), read 6 Nov 2026 - [`apiok.ru/dev/examples/photo_upload`](https://apiok.ru/dev/examples/photo_upload), read 6 Nov 2026 - [`apiok.ru/dev/methods/rest/group/group.getUserGroupsV2`](https://apiok.ru/dev/methods/rest/group/group.getUserGroupsV2), read 6 Nov 2026 - [`apiok.ru/dev/methods/rest/users/users.getCurrentUser`](https://apiok.ru/dev/methods/rest/users/users.getCurrentUser), read 6 Nov 2026 - [`apiok.ru/dev/methods/rest/mediatopic/mediatopic.getByIds`](https://apiok.ru/dev/methods/rest/mediatopic/mediatopic.getByIds), read 6 Nov 2026 # PeerTube How to connect PeerTube to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own PeerTube account; Postbroad never provides an app or an account. ## What you need {#needs} - The address of your PeerTube server, for example video.example.org - Your username and password on that server, and your two factor code if it is on - A channel on your account to upload into - App review: none. PeerTube does not review an app before it posts. Checked on 6 Nov 2026 against PeerTube's own documentation. ## Set up, step by step {#setup} ### On PeerTube 1. Nothing to make. You need your server's address, your username and password there, your two factor code if it is on, and a channel on your account to upload into. 2. The password is used once to sign in; Postbroad keeps only the sign-in PeerTube gives back. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect PeerTube. 2. Choose Continue and fill in Your PeerTube details, then choose Connect: - **Server address**: For example https://video.example.org - **Username** - **Password**: Used once to sign in; only the sign-in it returns is kept - **Two-factor code** (optional): Only if your account has two-factor login turned on Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On PeerTube | |---|---| | Text | yes | | Pictures | no | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: title, who can see it, tags, adult content flag and custom thumbnail. Text: up to 10,000 characters, title up to 120. To be confirmed: the network's documentation does not state it. The name limit (3 to 120) is documented; the description limit is not in the API reference, 10000 is PeerTube's server constant and stays unverified. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Video | MP4, WebM, OGG, MOV, X-MATROSKA | not stated | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Reads | 50 per 10 seconds | to be confirmed | | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that PeerTube is still processing after 2 hours stays accepted: PeerTube took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from PeerTube and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`video_upload`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - POST /api/v1/users/token is limited to 15 calls per 5 minutes. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect PeerTube | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | PeerTube no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected PeerTube account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/peertube`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to PeerTube. ## Sources {#sources} - [`docs.joinpeertube.org/api-rest-reference.html`](https://docs.joinpeertube.org/api-rest-reference.html), read 6 Nov 2026 - [`docs.joinpeertube.org/api-rest-getting-started`](https://docs.joinpeertube.org/api-rest-getting-started), read 6 Nov 2026 # Pinterest How to connect Pinterest to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Pinterest account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Pinterest business account - A Pinterest developer app (trial access is enough to start) - You are: the owner of the Pinterest account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/pinterest`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against Pinterest's own documentation. ## Set up, step by step {#setup} ### On Pinterest for Developers 1. Sign in to developers.pinterest.com with a Pinterest business account and confirm its email address. 2. Open My apps and accept the developer terms, then choose Connect app and fill in the request form. The app name needs at least three Latin letters or numbers and cannot contain the word Pinterest. 3. Submit the request for trial access. Pinterest reviews it and answers by email. 4. Once approved, open My apps, choose Manage on the app, and on the Configure tab add the redirect URL from Postbroad under Redirect URIs. 5. Copy the app ID and the app secret key from My apps. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Pinterest. 2. Under Add your Pinterest app, paste the App ID and the App secret key, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Pinterest for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Pinterest opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Pinterest asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `boards:read` | List your boards so you can pick where pins go. | | `boards:write` | Create a board when you ask for one. | | `pins:read` | Read a pin back, to check that it was created. | | `pins:write` | Create pins. | | `user_accounts:read` | See which Pinterest account you signed in with. | ## The review {#review} - Trial access is enough to start. Pins made with trial access are visible only to you until Pinterest grants Standard access, which you request from My apps with a demo of the app. ## Posting rules {#posting} | In one post | On Pinterest | |---|---| | Text | yes | | Pictures | up to 5 pictures | | Video | 1 video | | Carousel | up to 5 items | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: board, link preview and video cover. Text: up to 800 characters, title up to 100. Verified on the network's own documentation. ## Limits {#limits} Pinterest documents no rate limit. Postbroad slows down when Pinterest says so and waits as long as it asks. A post that Pinterest is still processing after 30 minutes stays accepted: Pinterest took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Pinterest accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`pin_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Trial pins are visible only to the creator until Standard access. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Pinterest (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Pinterest | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Pinterest and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Pinterest no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Pinterest account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/pinterest`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Pinterest. ## Sources {#sources} - [`developers.pinterest.com/docs/getting-started/`](https://developers.pinterest.com/docs/getting-started/), read 8 Nov 2026 - [`github.com/pinterest/api-description/blob/main/v5/openapi.yaml`](https://github.com/pinterest/api-description/blob/main/v5/openapi.yaml), read 8 Nov 2026 # Pixelfed How to connect Pixelfed to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Pixelfed account; Postbroad never provides an app or an account. ## What you need {#needs} - The address of your Pixelfed server, for example pixelfed.social - Your login on that server - App review: none. Pixelfed does not review an app before it posts. Checked on 6 Nov 2026 against Pixelfed's own documentation. ## Set up, step by step {#setup} ### On Pixelfed 1. Nothing to make. Postbroad registers itself as an app on your Pixelfed server when you connect, so you only need your server's address and your login there. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Pixelfed. 2. Under Your Pixelfed server, enter your server's address, then choose Continue to Pixelfed. Postbroad registers itself on your server, so there is no app to make. 3. Your server opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Pixelfed | |---|---| | Text | yes | | Pictures | up to 4 pictures | | Video | 1 video | | Carousel | up to 4 items | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: content warning, who can see it and sensitive media flag. Text: no fixed number of characters. Per server, read from /api/v2/instance configuration.statuses.max_characters (default caption length 500). ## Limits {#limits} Pixelfed documents no rate limit. Postbroad slows down when Pixelfed says so and waits as long as it asks. A post that Pixelfed is still processing after 30 minutes stays accepted: Pixelfed took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Pixelfed and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`status_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Shares the Mastodon compatible connector code. - Direct visibility is refused by the server (400 Direct visibility is not available). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Pixelfed | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | Pixelfed no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Pixelfed account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/pixelfed`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Pixelfed. ## Sources {#sources} - [`developers.pixelfed.org/api/authentication`](https://developers.pixelfed.org/api/authentication), read 6 Nov 2026 - [`github.com/pixelfed/pixelfed/blob/dev/app/Http/Controllers/Api/ApiV1Controller.php`](https://github.com/pixelfed/pixelfed/blob/dev/app/Http/Controllers/Api/ApiV1Controller.php), read 6 Nov 2026 - [`developers.pixelfed.org/api/statuses`](https://developers.pixelfed.org/api/statuses), read 6 Nov 2026 - [`developers.pixelfed.org/api/instance`](https://developers.pixelfed.org/api/instance), read 6 Nov 2026 - [`developers.pixelfed.org/api/media`](https://developers.pixelfed.org/api/media), read 6 Nov 2026 - [`developers.pixelfed.org/api/accounts`](https://developers.pixelfed.org/api/accounts), read 6 Nov 2026 # Reddit How to connect Reddit to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Reddit account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - Your own Reddit app of the type web app, made at reddit.com/prefs/apps and approved for Reddit's API - Its client ID and secret, with this page's redirect URL entered as the app's redirect URI - Your own Reddit login. Reddit's API terms and rate limits apply to you as the owner of the app - You are: the owner of the Reddit account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/reddit`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against Reddit's own documentation. ## Set up, step by step {#setup} ### On Reddit 1. Request access to Reddit's API under Reddit's Responsible Builder Policy. Reddit approves each use before any API access. 2. Once approved, open reddit.com/prefs/apps signed in as yourself and create an app of the type web app. 3. Give it a name and description and set its redirect URI to the redirect URL from Postbroad. 4. Copy the client ID shown under the app's name and its secret. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Reddit. 2. Under Add your Reddit app, paste the Client ID and the Secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Reddit for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Reddit opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Reddit asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `identity` | See which Reddit account you signed in with. | | `submit` | Post to the subreddits you pick, and add a first comment. | | `read` | Read a post back, to check that it went out. | | `edit` | Remove a post that was sent by mistake. | | `mysubreddits` | List the subreddits you joined or moderate, so you can pick one. | | `history` | Look through your recent posts when a post needs to be found again. | | `flair` | List a subreddit's post flairs, so you can pick one. | ## The review {#review} - Reddit approves API access per use before an app may call the API. You apply for it and own it as the app's owner, and Reddit's API terms and limits apply to you. ## Posting rules {#posting} | In one post | On Reddit | |---|---| | Text | yes | | Pictures | up to 20 pictures | | Video | 1 video | | Carousel | up to 20 items | | Thread of replies | no | | First comment | yes, text | | Long article | no | | Needs a picture or video | no | Extra options: title, post flair, link post, gallery and video poster. Text: up to 40,000 characters, title up to 300. To be confirmed: the network's documentation does not state it. Self-post text; reddit.com/dev/api (read 2026-11-06) names no number for text, so kept unverified. Comments are 10000 (archived source), titles 300 (reddit.com/dev/api). | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | JPEG, PNG | 20 MB | not stated | not stated | | Video | MP4 | 1,000 MB | 15 minutes | not stated | ## Limits {#limits} Reddit documents no rate limit. Postbroad slows down when Reddit says so and waits as long as it asks. A post that Reddit is still processing after 30 minutes stays accepted: Reddit took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Reddit accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`submit`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Postbroad posts text, link, picture, gallery and video posts to the subreddits you pick, with an optional first comment. A video needs one picture as its cover. Each subreddit's rules and post flairs are read from Reddit, so a post that breaks a rule is stopped before it is sent. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Reddit (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Reddit | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Reddit and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Reddit no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Reddit account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/reddit`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Reddit. ## Sources {#sources} - [`support.reddithelp.com/hc/en-us/articles/42728983564564-Responsible-Builder-Policy`](https://support.reddithelp.com/hc/en-us/articles/42728983564564-Responsible-Builder-Policy), read 8 Nov 2026 - [`github.com/reddit-archive/reddit/wiki/OAuth2`](https://github.com/reddit-archive/reddit/wiki/OAuth2), read 8 Nov 2026 - [`reddit.com/dev/api`](https://reddit.com/dev/api), read 18 Nov 2026 - [`github.com/praw-dev/praw`](https://github.com/praw-dev/praw), read 18 Nov 2026 - [`github.com/reddit-archive/reddit`](https://github.com/reddit-archive/reddit), read 6 Nov 2026 # Slack How to connect Slack to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Slack account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Slack app you create at api.slack.com - Permission to add apps to your Slack - You are: owner or admin of the Slack, or an app approved by one - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/slack`. The connect page in Postbroad shows the same address with a copy button. - App review: none. Slack does not review an app before it posts. Checked on 8 Nov 2026 against Slack's own documentation. ## Set up, step by step {#setup} ### On api.slack.com 1. Open api.slack.com/apps, create a blank app, name it and pick your workspace. 2. In OAuth and Permissions, under Scopes, Bot Token Scopes, add chat:write, channels:read and groups:read. 3. In OAuth and Permissions, add the redirect URL from Postbroad under Redirect URLs. 4. Copy the Client ID and the Client Secret from Basic Information, App Credentials. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Slack. 2. Under Add your Slack app, paste the Client ID and the Client Secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Slack for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Slack opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Slack asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `chat:write` | Post messages to the channels you pick. | | `channels:read` | List your public channels so you can pick one. | | `groups:read` | List your private channels so you can pick one. | ## Posting rules {#posting} | In one post | On Slack | |---|---| | Text | yes | | Pictures | yes | | Video | no | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: custom name and icon. Text: up to 40,000 characters. Verified on the network's own documentation. Slack truncates text over 40,000 characters and asks for 4,000 or fewer. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | PNG, JPEG, GIF | 1,000 MB | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per destination | Posts and other writes | 1 a second | verified | About 1 message per second per channel. | | Per app or bot, shared by every account on it | Posts and other writes | not published | verified | Workspace limit of several hundred messages per minute; no exact number. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Slack is still processing after 30 minutes stays accepted: Slack took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Slack accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`chat_post_message`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - V2's 30 per channel per 5 min removed. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Slack (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Slack | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Slack and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Slack no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Slack account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/slack`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Slack. ## Sources {#sources} - [`docs.slack.dev/app-management/quickstart-app-settings`](https://docs.slack.dev/app-management/quickstart-app-settings), read 8 Nov 2026 - [`docs.slack.dev/authentication/installing-with-oauth`](https://docs.slack.dev/authentication/installing-with-oauth), read 8 Nov 2026 - [`docs.slack.dev/authentication/using-token-rotation`](https://docs.slack.dev/authentication/using-token-rotation), read 8 Nov 2026 - [`docs.slack.dev/reference/methods/oauth.v2.access`](https://docs.slack.dev/reference/methods/oauth.v2.access) - [`docs.slack.dev/reference/methods/chat.postMessage`](https://docs.slack.dev/reference/methods/chat.postMessage), read 21 Oct 2026 - [`docs.slack.dev/reference/block-kit/blocks/image-block`](https://docs.slack.dev/reference/block-kit/blocks/image-block) - [`docs.slack.dev/messaging/working-with-files`](https://docs.slack.dev/messaging/working-with-files) - [`slack.com/help/articles/201330736`](https://slack.com/help/articles/201330736) - [`docs.slack.dev/reference/methods/conversations.history`](https://docs.slack.dev/reference/methods/conversations.history) - [`docs.slack.dev/reference/methods/conversations.replies`](https://docs.slack.dev/reference/methods/conversations.replies) - [`docs.slack.dev/apis/web-api/rate-limits`](https://docs.slack.dev/apis/web-api/rate-limits) # Snapchat How to connect Snapchat to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Snapchat account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Snapchat public profile and a Snap business account - An app made in Snap's Ads Manager (not the developer portal), its client ID and secret, and this page's redirect URL - Access to Snap's Public Profile API, which Snap gives on request: send your client ID to your Snap contact - You are: the owner of the public profile - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/snapchat`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against Snapchat's own documentation. ## Set up, step by step {#setup} ### In Snap's Ads Manager 1. Use a Snapchat account your team shares, and sign in to Account Center at accounts.snapchat.com. 2. Create a business account in Ads Manager (ads.snapchat.com). 3. Open the Business Dashboard, then Business Details, and create an OAuth app with the redirect URL from Postbroad. Make it here, not in Snap's developer portal: a client from the portal does not work with the Public Profile API. 4. Copy the client ID and the client secret. 5. Email your Snap contact the client ID (never the secret) with what you will use the Public Profile API for, and ask for access. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Snapchat. 2. Under Add your Snapchat app, paste the Client ID and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Snapchat for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Snapchat opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Snapchat asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `snapchat-profile-api` | Post Stories, Saved Stories and Spotlight videos to your public profile. | ## The review {#review} - The Public Profile API works only for apps Snap has put on its allowlist. Snap decides after you send the client ID to your Snap contact. ## Posting rules {#posting} | In one post | On Snapchat | |---|---| | Text | no | | Pictures | no | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: story, saved story, Spotlight and link preview. Text: up to 160 characters. Verified on the network's own documentation. Spotlight description up to 160 characters, hashtags included; Stories carry no text; a Saved Story title is at most 45. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Video | MP4 | 1,024 MB | 1 minute | not stated | ## Limits {#limits} Snapchat documents no rate limit. Postbroad slows down when Snapchat says so and waits as long as it asks. A post that Snapchat is still processing after 30 minutes stays accepted: Snapchat took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted: Snapchat accepts the post but offers no way to read it back, so Postbroad reports it as accepted, never as live.** Evidence, in order: the network's status endpoint; the network's acknowledgement. Before a retry: - Posting (`snap_post`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Public Profile API access is allowlist only, and the OAuth app must come from Ads Manager. - No rate limits are documented on the Public Profile pages read 2026-11-06. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Snapchat (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Snapchat | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Snapchat and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Snapchat no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Snapchat account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/snapchat`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Snapchat. ## Sources {#sources} - [`developers.snap.com/api/marketing-api/Public-Profile-API/GetStarted`](https://developers.snap.com/api/marketing-api/Public-Profile-API/GetStarted), read 8 Nov 2026 - [`developers.snap.com/api/marketing-api/Public-Profile-API/ProfileAssetManagement`](https://developers.snap.com/api/marketing-api/Public-Profile-API/ProfileAssetManagement), read 6 Nov 2026 - [`developers.snap.com/api/marketing-api/Public-Profile-API/Profiles`](https://developers.snap.com/api/marketing-api/Public-Profile-API/Profiles), read 6 Nov 2026 # SoundCloud How to connect SoundCloud to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own SoundCloud account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A SoundCloud app of your own (registering one needs an Artist Pro plan), its client ID and secret, and this redirect address added to the app - The SoundCloud login of the profile the tracks go to - You are: the owner of the SoundCloud profile - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/soundcloud`. The connect page in Postbroad shows the same address with a copy button. - App review: none. SoundCloud does not review an app before it posts. Checked on 8 Nov 2026 against SoundCloud's own documentation. ## Set up, step by step {#setup} ### On SoundCloud 1. Register an app under Your Apps (soundcloud.com/you/apps). SoundCloud asks for an Artist Pro plan to register one. 2. Add the redirect URL from Postbroad to the app. 3. Copy the client ID and the client secret. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect SoundCloud. 2. Under Add your SoundCloud app, paste the Client ID and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens SoundCloud for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. SoundCloud opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On SoundCloud | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: title, description, tags and artwork. Text: no fixed number of characters. The docs give no length limit for the title or description. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Track | MP3, WAV, X-WAV, FLAC, OGG, AAC, MP4, AIFF, X-AIFF | 4,000 MB | 1 day | not stated | | Picture | JPEG, PNG | not stated | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Reads | read from SoundCloud's answers | verified | About 100 requests per minute per application (rolling); X-Ratelimit-Limit, -Remaining, -Reset and Retry-After on 429. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that SoundCloud is still processing after 30 minutes stays accepted: SoundCloud took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from SoundCloud and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`track_upload`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Registering an API app needs a SoundCloud Artist Pro subscription (developers.soundcloud.com/docs/api/register-app; read 2026-11-06); no app review is described. - Free profiles have an upload quota (Me.upload_seconds_left); a track over it is refused by SoundCloud. - No candidate search: the docs give no ordering for the profile's track list. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on SoundCloud (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect SoundCloud | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | SoundCloud no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected SoundCloud account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/soundcloud`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to SoundCloud. ## Sources {#sources} - [`developers.soundcloud.com/docs/api/guide`](https://developers.soundcloud.com/docs/api/guide), read 8 Nov 2026 - [`developers.soundcloud.com/docs/api/explorer/api.json`](https://developers.soundcloud.com/docs/api/explorer/api.json), read 6 Nov 2026 - [`developers.soundcloud.com/docs/api/rate-limits`](https://developers.soundcloud.com/docs/api/rate-limits), read 6 Nov 2026 # Telegram How to connect Telegram to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Telegram account; Postbroad never provides an app or an account. ## What you need {#needs} - A bot made with BotFather, and the key it gave you - The bot added as an admin of your channel or group - You are: admin of the channel or group - App review: none. Telegram does not review an app before it posts. Checked on 8 Nov 2026 against Telegram's own documentation. ## Set up, step by step {#setup} ### In Telegram 1. Open a chat with @BotFather, send /newbot and answer its questions until it gives you the bot's token. 2. Keep the token like a password: it lets anyone act as the bot. BotFather can revoke it at any time. 3. Add the bot to your channel or group as an admin that may post messages. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Telegram. 2. Choose Continue and fill in Your Telegram details, then choose Connect: - **Bot token**: Use the token provided by BotFather Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Telegram | |---|---| | Text | yes | | Pictures | up to 10 pictures | | Video | up to 10 videos | | Carousel | up to 10 items | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: HTML formatting and poll. Text: up to 4,096 characters. Verified on the network's own documentation. 4096 characters after entities parsing; a media caption is 1024. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | not stated | 10 MB | not stated | not stated | | Video | not stated | 50 MB | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | 30 a second | verified | About 30 messages a second per bot for bulk sends. | | Per destination | Posts and other writes | 20 a minute | to be confirmed | | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Telegram is still processing after 30 minutes stays accepted: Telegram took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Telegram accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the network's acknowledgement. Before a retry: - Posting (`send_message`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Telegram | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Telegram no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Telegram account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/telegram`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Telegram. ## Sources {#sources} - [`core.telegram.org/bots/tutorial`](https://core.telegram.org/bots/tutorial), read 8 Nov 2026 - [`core.telegram.org/bots/api`](https://core.telegram.org/bots/api), read 21 Oct 2026 - [`core.telegram.org/bots/faq`](https://core.telegram.org/bots/faq) # Threads How to connect Threads to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Threads account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Threads profile - A Meta developer app with the Threads use case - You are: the owner of the Threads profile, added as a tester of your app - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/threads`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against Threads's own documentation. ## Set up, step by step {#setup} ### On Meta for Developers 1. Create a Meta app at developers.facebook.com/apps/creation and pick the Threads use case. 2. In the use case settings, add the redirect URL from Postbroad to the app's list of redirect addresses. 3. Open App roles, Roles, choose Add People and add your Threads profile as a Threads Tester. 4. Accept the invite in Threads: Account settings, Website permissions, Invites, on the Threads website or app. 5. Copy the Threads App ID and the Threads App secret from App settings, Basic. Postbroad needs these two, not the Meta App ID. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Threads. 2. Under Add your Threads app, paste the Threads App ID and the Threads App secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Threads for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Threads opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Threads asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `threads_basic` | See your profile and username. | | `threads_content_publish` | Post to Threads. | | `threads_delete` | Remove a post that was sent by mistake. | | `threads_read_replies` | Read the replies people leave under your posts. | | `threads_manage_replies` | Answer or hide replies under your posts. | ## The review {#review} - Threads testers can connect at once. People without a role on the app can connect only after Meta approves each permission in App Review and the app is published. ## Posting rules {#posting} | In one post | On Threads | |---|---| | Text | yes | | Pictures | up to 20 pictures | | Video | up to 20 videos | | Carousel | up to 20 items | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: poll and quote post. Text: up to 500 characters, counted the network's way. Verified on the network's own documentation. 500 characters where an emoji counts its UTF-8 byte length; at most 5 unique links. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | JPEG, PNG | 8 MB | not stated | width 320 to 1,440 px, aspect 1:10 to 10:1 | | Video | MP4, MOV | 1,000 MB | 5 minutes | width up to 1,920 px, aspect 1:100 to 10:1 | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 250 a day | verified | 250 posts per 24 h; 1,000 replies per 24 h are counted separately; `threads_publishing_limit` is read before each publish. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Threads is still processing after 30 minutes stays accepted: Threads took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Threads accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Publishing (`threads_publish`): Before any retry, Postbroad looks the post up on the network by its stored identity. It retries only when the lookup shows nothing was created. Proof that nothing was posted: Container status reports a definitive failure and the container was never published. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Testers only before Meta App Review. - 100 deletes per 24 h per account. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Threads (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Threads | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Threads and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Threads no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Threads account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/threads`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Threads. ## Sources {#sources} - [`developers.facebook.com/docs/threads/get-started`](https://developers.facebook.com/docs/threads/get-started), read 8 Nov 2026 - [`developers.facebook.com/docs/threads/get-started/get-access-tokens-and-permissions`](https://developers.facebook.com/docs/threads/get-started/get-access-tokens-and-permissions), read 8 Nov 2026 - [`developers.facebook.com/docs/threads/get-started/long-lived-tokens`](https://developers.facebook.com/docs/threads/get-started/long-lived-tokens), read 24 Oct 2026 - [`developers.facebook.com/docs/threads/posts`](https://developers.facebook.com/docs/threads/posts), read 24 Oct 2026 - [`developers.facebook.com/docs/threads/reference/publishing`](https://developers.facebook.com/docs/threads/reference/publishing), read 24 Oct 2026 - [`developers.facebook.com/docs/threads/overview`](https://developers.facebook.com/docs/threads/overview), read 24 Oct 2026 - [`developers.facebook.com/docs/threads/troubleshooting`](https://developers.facebook.com/docs/threads/troubleshooting), read 24 Oct 2026 - [`developers.facebook.com/docs/threads/retrieve-and-discover-posts/retrieve-posts`](https://developers.facebook.com/docs/threads/retrieve-and-discover-posts/retrieve-posts), read 24 Oct 2026 # TikTok How to connect TikTok to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own TikTok account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A TikTok account that posts video - A TikTok developer app with Content Posting added - You are: the owner of the TikTok account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/tiktok`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 19 Nov 2026 against TikTok's own documentation. ## Set up, step by step {#setup} ### On TikTok for Developers 1. Sign up at developers.tiktok.com. TikTok recommends making the app under an organization rather than your own name. 2. Open your profile menu, Manage apps, then Connect an app, and pick the owner. 3. Fill in the basic information (icon, name, category, description) and choose Web as the platform with your website address. 4. Choose Add products and add Login Kit and Content Posting API. In Login Kit, add the redirect URL from Postbroad. 5. Under Scopes, add user.info.basic and video.upload. That is all an app needs to send posts to your TikTok drafts. It does not need Direct Post turned on. 6. To also post directly from Postbroad, turn on Direct Post in the Content Posting API settings and add the video.publish scope. 7. Copy the Client key and the Client secret from Credentials under App details. 8. In App review, explain how each product and scope is used, add a demo video, and choose Submit for review. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect TikTok. 2. Under Add your TikTok app, paste the Client key and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens TikTok for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. TikTok opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What TikTok asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `user.info.basic` | See which TikTok account you signed in with. | | `video.publish` | Post video straight to your account. | | `video.upload` | Send a video to your TikTok inbox as a draft. | ## The review {#review} - Until TikTok audits the app, everything it posts directly is private: only the account owner can see it. - TikTok lifts that after an audit of the app against its terms. The review status shows under Production: Draft, In review, Live or Not approved. ## Posting rules {#posting} | In one post | On TikTok | |---|---| | Text | yes | | Pictures | up to 35 pictures | | Video | 1 video | | Carousel | up to 35 items | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: who can see it, comments, duets and stitches on or off and video to the TikTok inbox as a draft. Text: up to 2,200 characters. Verified on the network's own documentation. `post_info`.title (the video caption) is up to 2200 UTF-16 runes; a photo post's title is up to 90 and its description up to 4000. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | read from TikTok before each post | verified | Per-creator cap from `creator_info`; unaudited clients: 5 users per 24 h, SELF_ONLY. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that TikTok is still processing after 1 hour stays accepted: TikTok took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: TikTok accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the network's status endpoint; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`content_post_init`): Before any retry, Postbroad looks the post up on the network by its stored identity. It retries only when the lookup shows nothing was created. Proof that nothing was posted: Status by `publish_id` reports a definitive failed state, only after the `publish_id` was checkpointed. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - A post sent to your TikTok drafts is uploaded to your TikTok inbox. You finish it in TikTok, choose who can see it there, and post it. - Videos are uploaded to TikTok. Photo posts are fetched by TikTok from a web address that must be verified in your app, under URL properties. - Each creator account has its own posting cap, which TikTok reports before each post. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on TikTok (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect TikTok | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect TikTok and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | TikTok no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected TikTok account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/tiktok`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to TikTok. ## Sources {#sources} - [`developers.tiktok.com/doc/getting-started-create-an-app`](https://developers.tiktok.com/doc/getting-started-create-an-app), read 8 Nov 2026 - [`developers.tiktok.com/doc/content-posting-api-get-started`](https://developers.tiktok.com/doc/content-posting-api-get-started), read 8 Nov 2026 - [`developers.tiktok.com/doc/content-posting-api-get-started-upload-content`](https://developers.tiktok.com/doc/content-posting-api-get-started-upload-content), read 19 Nov 2026 - [`developers.tiktok.com/doc/content-posting-api-reference-direct-post`](https://developers.tiktok.com/doc/content-posting-api-reference-direct-post), read 6 Nov 2026 # Tumblr How to connect Tumblr to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Tumblr account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Tumblr app of your own, registered in your Tumblr account under Apps, its consumer key and secret, and this redirect address added to the app - The Tumblr login that can post to your blog - You are: a member of the blog who can post to it - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/tumblr`. The connect page in Postbroad shows the same address with a copy button. - App review: none. Tumblr does not review an app before it posts. Checked on 8 Nov 2026 against Tumblr's own documentation. ## Set up, step by step {#setup} ### On Tumblr 1. Register an application at tumblr.com/oauth/apps. 2. Edit the application and add the redirect URL from Postbroad as its OAuth2 redirect URL. Tumblr offers OAuth2 only once one is set. 3. Copy the OAuth consumer key (the client ID) and the consumer secret. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Tumblr. 2. Under Add your Tumblr app, paste the Consumer key and the Consumer secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Tumblr for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Tumblr opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Tumblr asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `basic` | See your account and the blogs you can post to. | | `write` | Post to the blog you pick, and remove a post sent by mistake. | | `offline_access` | Stay connected without asking you to sign in again. | ## Posting rules {#posting} | In one post | On Tumblr | |---|---| | Text | yes | | Pictures | yes | | Video | yes | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: title, tags and alt text. Text: no fixed number of characters. Each text block at most 4096 Unicode code points (one block per line here), at most 1000 blocks, and the stored post at most 1 MB; no single character limit for a post. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | JPEG, PNG, GIF | not stated | not stated | not stated | | Video | MP4 | not stated | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 250 a day | verified | 250 new published posts (including reblogs) per day per user, per calendar day. | | Per app or bot, shared by every account on it | Reads | 1,000 an hour | verified | 1,000 API calls per hour per consumer key (all calls), and 5,000 per day. | | Per account | Media uploads | 250 a day | verified | 250 images uploaded per day per user; also 20 videos and 60 minutes of video per day. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Tumblr is still processing after 30 minutes stays accepted: Tumblr took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Tumblr and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - A blog holds at most 1,000 queued posts. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Tumblr (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Tumblr | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Tumblr and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Tumblr no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Tumblr account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/tumblr`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Tumblr. ## Sources {#sources} - [`github.com/tumblr/docs/blob/master/api.md`](https://github.com/tumblr/docs/blob/master/api.md), read 8 Nov 2026 - [`tumblr.com/docs/en/api/v2`](https://tumblr.com/docs/en/api/v2), read 6 Nov 2026 - [`tumblr.com/docs/npf`](https://tumblr.com/docs/npf), read 6 Nov 2026 # Twitch How to connect Twitch to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Twitch account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A developer app of your own on Twitch - Your own Twitch login - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/twitch`. The connect page in Postbroad shows the same address with a copy button. - App review: none. Twitch does not review an app before it posts. Checked on 8 Nov 2026 against Twitch's own documentation. ## Set up, step by step {#setup} ### In the Twitch Developer Console 1. Turn on two factor authentication for your Twitch account (Security and Privacy). The console needs it. 2. Sign in at dev.twitch.tv/console, open Applications and choose Register Your Application. 3. Fill in a unique Name, add the redirect URL from Postbroad under OAuth Redirect URLs, pick a Category and choose Create. 4. Choose Manage on the app, copy the Client ID, and choose New Secret to make the client secret. A new secret replaces the old one. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Twitch. 2. Under Add your Twitch app, paste the Client ID and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Twitch for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Twitch opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Twitch asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `user:write:chat` | Send messages to the chat of your channel. | | `moderator:manage:announcements` | Post announcements in the chat of a channel you run. | | `user:read:moderated_channels` | List the channels you moderate, so you can pick where a post goes. | ## Posting rules {#posting} | In one post | On Twitch | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: announcement. Text: up to 500 characters. Verified on the network's own documentation. The message is limited to 500 characters; a longer one answers 422. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | read from Twitch's answers | verified | | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Twitch is still processing after 30 minutes stays accepted: Twitch took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Twitch accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the network's acknowledgement. Before a retry: - Posting (`chat_message`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Postbroad posts chat messages and announcements to your channel. A chat message has no link of its own, so its outcome rests on Twitch's answer. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Twitch (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Twitch | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Twitch and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Twitch no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Twitch account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/twitch`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Twitch. ## Sources {#sources} - [`dev.twitch.tv/docs/authentication/register-app/`](https://dev.twitch.tv/docs/authentication/register-app/), read 8 Nov 2026 - [`dev.twitch.tv/docs/authentication/getting-tokens-oauth`](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth), read 24 Oct 2026 - [`dev.twitch.tv/docs/api/reference`](https://dev.twitch.tv/docs/api/reference), read 25 Oct 2026 - [`dev.twitch.tv/docs/authentication/refresh-tokens`](https://dev.twitch.tv/docs/authentication/refresh-tokens), read 24 Oct 2026 - [`dev.twitch.tv/docs/api/guide`](https://dev.twitch.tv/docs/api/guide), read 24 Oct 2026 # Viber Channels How to connect Viber Channels to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Viber Channels account; Postbroad never provides an app or an account. ## What you need {#needs} - A Viber channel - The channel key from Channel info, Developer Tools - You are: super admin of the channel - App review: none. Viber Channels does not review an app before it posts. Checked on 6 Nov 2026 against Viber Channels's own documentation. ## Set up, step by step {#setup} ### In Viber 1. Open your channel, then Channel info, Developer Tools, and copy the channel token. Only a super admin sees it. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Viber Channels. 2. Choose Continue and fill in Your Viber Channels details, then choose Connect: - **Channel token**: In Viber, open Channel info, then Developer Tools. Only a super admin sees it. Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Viber Channels | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | no | Text: up to 7,000 characters. Verified on the network's own documentation. Text messages up to 7000 characters. ## Limits {#limits} Viber Channels documents no rate limit. Postbroad slows down when Viber Channels says so and waits as long as it asks. A post that Viber Channels is still processing after 30 minutes stays accepted: Viber Channels took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted: Viber Channels accepts the post but offers no way to read it back, so Postbroad reports it as accepted, never as live.** Evidence, in order: the network's acknowledgement. Before a retry: - Posting (`channel_post`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Errors arrive as a status in the body: 2 invalidAuthToken, 3 badData, 4 missingData, 7 blocked, 8 not a channel account, 9 suspended, 10 webhookNotSet, 12 tooManyRequests. - The post response fields are not documented: the delivery's reference is `message_token` when present, else the operation id. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Viber Channels | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Viber Channels no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Viber Channels account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/viber`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Viber Channels. ## Sources {#sources} - [`developers.viber.com/docs/tools/channels-post-api`](https://developers.viber.com/docs/tools/channels-post-api), read 6 Nov 2026 # Vimeo How to connect Vimeo to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Vimeo account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Vimeo app of your own (developer.vimeo.com, My Apps), its client ID and secret, and this redirect address added to the app - Upload access for that app: automatic on paid Vimeo plans, on a free plan you request it in the app settings and Vimeo reviews it - You are: the owner of the Vimeo account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/vimeo`. The connect page in Postbroad shows the same address with a copy button. - App review: none. Vimeo does not review an app before it posts. Checked on 8 Nov 2026 against Vimeo's own documentation. ## Set up, step by step {#setup} ### On the Vimeo Developer Site 1. Sign in as the account's primary holder at developer.vimeo.com and choose Create an app. 2. Give it a name and a short description, choose whether other Vimeo accounts may use it, and confirm the terms. 3. On the app's page, add the redirect URL from Postbroad to the app's callback URLs, and copy the client identifier and the client secret. 4. On a free Vimeo plan, request upload access for the app. On a paid plan it has upload access already. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Vimeo. 2. Under Add your Vimeo app, paste the Client identifier and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Vimeo for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Vimeo opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What Vimeo asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `public` | See your public profile and videos. | | `private` | Read your private videos, to check that an upload finished. | | `upload` | Upload videos to your account. | | `delete` | Remove a video that was sent by mistake. | ## The review {#review} - An app on a free Vimeo account must be granted upload access first. Vimeo reviews the request by hand, which takes up to five business days. Apps on paid plans have it at once. ## Posting rules {#posting} | In one post | On Vimeo | |---|---| | Text | yes | | Pictures | no | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | no | | Needs a picture or video | yes | Extra options: title and who can see it. Text: no fixed number of characters. The API reference gives no length for name or description. ## Limits {#limits} Vimeo documents no rate limit. Postbroad slows down when Vimeo says so and waits as long as it asks. A post that Vimeo is still processing after 30 minutes stays accepted: Vimeo took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Vimeo accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`video_upload`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - A failed upload can leave an empty video entry in your Vimeo account. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Vimeo (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Vimeo | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect Vimeo and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | Vimeo no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Vimeo account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/vimeo`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Vimeo. ## Sources {#sources} - [`help.vimeo.com/hc/en-us/articles/12427832381457`](https://help.vimeo.com/hc/en-us/articles/12427832381457), read 8 Nov 2026 - [`help.vimeo.com/hc/en-us/articles/12427803706001`](https://help.vimeo.com/hc/en-us/articles/12427803706001), read 6 Nov 2026 - [`github.com/vimeo/openapi`](https://github.com/vimeo/openapi), read 6 Nov 2026 - [`github.com/vimeo/vimeo.php`](https://github.com/vimeo/vimeo.php), read 6 Nov 2026 - [`tus.io/protocols/resumable-upload`](https://tus.io/protocols/resumable-upload), read 6 Nov 2026 # VK How to connect VK to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own VK account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A developer app of your own on VK - Your own VK login - VK must approve your app before it can post for other people - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/vk`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against VK's own documentation. ## Set up, step by step {#setup} ### In VK ID for business 1. Sign in at id.vk.ru/about/business/go with VK Business ID and make sure you have a business profile. VK asks profiles made after 15 December 2025 to verify within 60 days of their first app. 2. Open My apps (Мои приложения) and choose Add app (Добавить приложение). Enter a name and pick Web. 3. Fill in the base domain and, under Trusted redirect URL (Доверенный redirect URL), the redirect URL from Postbroad, then create the app. 4. On the app's card, under App information (Информация о приложении), copy the App ID (ID приложения) and the protected key (Защищённый ключ). 5. Ask VK for the wall right: write to devsupport@corp.vk.com and explain the use. VK grants it only after an individual agreement. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect VK. 2. Under Add your VK app, paste the App ID and the Protected key, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens VK for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. VK opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## The review {#review} - Signing in works as soon as the app exists, but posting to a wall needs the wall right, which VK grants to an app only after an individual agreement. ## Posting rules {#posting} | In one post | On VK | |---|---| | Text | yes | | Pictures | 1 picture | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | yes, text | | Long article | no | | Needs a picture or video | no | Extra options: document. Text: up to 2,048 characters. To be confirmed: the network's documentation does not state it. Dev.vk.ru/ru/method/wall.post names no text limit (read 2026-10-24); kept unverified and not enforced. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Picture | JPEG, PNG | 10 MB | not stated | not stated | | Document | PDF | 20 MB | not stated | not stated | | Video | MP4, MOV | not stated | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per account | Posts and other writes | 3 a second | verified | 3 requests per second per user access key; error 6 when exceeded, plus undisclosed per-method quotas (errors 9 and 29). | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that VK is still processing after 30 minutes stays accepted: VK took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: VK accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`wall_post`): The network deduplicates on an idempotency key. A retry sends the same key and cannot create a second post. - Publishing (`wall_post_commit`): The network deduplicates on an idempotency key. A retry sends the same key and cannot create a second post. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Postbroad posts to your own wall and to the communities you manage, with one picture or PDF document per post. - Video needs VK's video right, which VK issues the same way as the wall right. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on VK (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect VK | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | VK no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected VK account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/vk`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to VK. ## Sources {#sources} - [`id.vk.ru/about/business/go/docs/ru/vkid/latest/vk-id/connection/create-application`](https://id.vk.ru/about/business/go/docs/ru/vkid/latest/vk-id/connection/create-application), read 8 Nov 2026 - [`id.vk.ru/about/business/go/docs/ru/vkid/latest/vk-id/connection/api-description`](https://id.vk.ru/about/business/go/docs/ru/vkid/latest/vk-id/connection/api-description), read 24 Oct 2026 - [`dev.vk.ru/ru/api/access-token/implicit-flow-user`](https://dev.vk.ru/ru/api/access-token/implicit-flow-user), read 24 Oct 2026 - [`github.com/VKCOM/vk-api-schema`](https://github.com/VKCOM/vk-api-schema), read 25 Oct 2026 - [`dev.vk.ru/ru/method/video.save`](https://dev.vk.ru/ru/method/video.save), read 6 Nov 2026 - [`dev.vk.ru/ru/api/upload/video-in-profile`](https://dev.vk.ru/ru/api/upload/video-in-profile), read 6 Nov 2026 - [`dev.vk.ru/ru/method/wall.post`](https://dev.vk.ru/ru/method/wall.post), read 24 Oct 2026 - [`dev.vk.ru/ru/method/users.get`](https://dev.vk.ru/ru/method/users.get), read 24 Oct 2026 - [`dev.vk.ru/ru/method/wall.getById`](https://dev.vk.ru/ru/method/wall.getById), read 24 Oct 2026 - [`dev.vk.ru/ru/method/wall.createComment`](https://dev.vk.ru/ru/method/wall.createComment), read 24 Oct 2026 - [`dev.vk.ru/en/api/api-requests`](https://dev.vk.ru/en/api/api-requests), read 24 Oct 2026 # Warpcast / Farcaster How to connect Warpcast / Farcaster to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Warpcast / Farcaster account; Postbroad never provides an app or an account. ## What you need {#needs} - Your own Warpcast / Farcaster account - App review: none. Warpcast / Farcaster does not review an app before it posts. Checked on 24 Oct 2026 against Warpcast / Farcaster's own documentation. ## Set up, step by step {#setup} ### On Neynar 1. Make an account at Neynar and copy your Neynar API key. 2. Create a signer in Neynar and approve it from your Farcaster account. 3. Keep the signer's ID; Postbroad asks for it next to the API key. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Warpcast / Farcaster. 2. Choose Continue and fill in Your Warpcast / Farcaster details, then choose Connect: - **Neynar API key**: From your own Neynar account - **Signer**: The signer you created in Neynar and approved from your Farcaster account Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Warpcast / Farcaster | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: channels and link embeds. Text: up to 1,024 characters. Verified on the network's own documentation. CastAddBody text is at most 1024 UTF-8 bytes; 0 to 320 bytes is a regular cast, 321 to 1024 a long cast; snapchain also lists TEN_K_CAST without a documented limit or eligibility, not used. ## Limits {#limits} Warpcast / Farcaster documents no rate limit. Postbroad slows down when Warpcast / Farcaster says so and waits as long as it asks. A post that Warpcast / Farcaster is still processing after 30 minutes stays accepted: Warpcast / Farcaster took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Warpcast / Farcaster and matches it to what was sent before it counts as live.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`cast_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Posts go out through your own Neynar account, and Neynar's limits for your plan apply. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect Warpcast / Farcaster | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | Warpcast / Farcaster no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected Warpcast / Farcaster account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/farcaster`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Warpcast / Farcaster. ## Sources {#sources} - [`docs.neynar.com/reference/publish-cast`](https://docs.neynar.com/reference/publish-cast), read 24 Oct 2026 - [`docs.neynar.com/reference/lookup-signer`](https://docs.neynar.com/reference/lookup-signer), read 24 Oct 2026 - [`github.com/farcasterxyz/protocol/blob/main/docs/SPECIFICATION.md`](https://github.com/farcasterxyz/protocol/blob/main/docs/SPECIFICATION.md), read 24 Oct 2026 - [`docs.neynar.com/reference/fetch-user-channel-memberships`](https://docs.neynar.com/reference/fetch-user-channel-memberships), read 24 Oct 2026 - [`docs.neynar.com/reference/lookup-cast-by-hash-or-url`](https://docs.neynar.com/reference/lookup-cast-by-hash-or-url), read 24 Oct 2026 - [`docs.neynar.com/reference/fetch-casts-for-user`](https://docs.neynar.com/reference/fetch-casts-for-user), read 24 Oct 2026 # WeChat Official Accounts How to connect WeChat Official Accounts to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own WeChat Official Accounts account; Postbroad never provides an app or an account. ## What you need {#needs} - A verified WeChat Official Account (a service or subscription account of a verified organization); WeChat no longer lets personal or unverified accounts publish through its interface - The account's AppID and AppSecret, from Settings and development, Basic configuration - Postbroad's server addresses added to the IP whitelist on that page - You are: an administrator of the Official Account - App review: none. WeChat Official Accounts does not review an app before it posts. Checked on 6 Nov 2026 against WeChat Official Accounts's own documentation. ## Set up, step by step {#setup} ### In the WeChat Official Accounts platform 1. Use a verified WeChat Official Account of a verified organization. WeChat no longer lets personal or unverified accounts publish through its interface. 2. Open Settings and development, Basic configuration, and copy the AppID and the AppSecret. 3. On the same page, add Postbroad's server addresses to the IP whitelist. Ask for the current addresses at https://postbroad.com/contact?topic=network. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect WeChat Official Accounts. 2. Choose Continue and fill in Your WeChat Official Accounts details, then choose Connect: - **AppID**: In the WeChat Official Accounts platform, Settings and development, Basic configuration - **AppSecret**: On the same page. Add Postbroad's server addresses to the IP whitelist there too Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On WeChat Official Accounts | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | yes | Extra options: cover image, author, digest, source address and comments on or off. Text: up to 20,000 characters, title up to 32. Verified on the network's own documentation. Content under 20,000 characters and under 1 MB; title at most 32 characters, author 16, digest 120. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Cover image | JPEG, PNG, GIF, BMP | 10 MB | not stated | not stated | ## Limits {#limits} WeChat Official Accounts documents no rate limit. Postbroad slows down when WeChat Official Accounts says so and waits as long as it asks. A post that WeChat Official Accounts is still processing after 30 minutes stays accepted: WeChat Official Accounts took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from WeChat Official Accounts and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the network's acknowledgement. Before a retry: - Posting (`freepublish_submit`): Before any retry, Postbroad looks the post up on the network by its stored identity. It retries only when the lookup shows nothing was created. Proof that nothing was posted: Freepublish/get `publish_status` 2 (originality check), 3 (failed), 4 (review rejected) or 6 (banned). Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - From July 2025 personal accounts, unverified organization accounts and accounts that cannot be verified lose the publishing interface (developers.weixin.qq.com/doc/subscription/guide/product/publish.html). - Community answers (not the docs) say an article published this way is not pushed to followers or shown in the account's history; mass sending is a different interface. - Every error is HTTP 200 with errcode and errmsg; 40001 and 42001 are an invalid or expired access token. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect WeChat Official Accounts | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | WeChat Official Accounts no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected WeChat Official Accounts account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/wechat`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to WeChat Official Accounts. ## Sources {#sources} - [`developers.weixin.qq.com/doc/service/api/base/api_getstableaccesstoken.html`](https://developers.weixin.qq.com/doc/service/api/base/api_getstableaccesstoken.html), read 6 Nov 2026 - [`developers.weixin.qq.com/doc/service/api/draftbox/draftmanage/api_draft_add.html`](https://developers.weixin.qq.com/doc/service/api/draftbox/draftmanage/api_draft_add.html), read 6 Nov 2026 - [`developers.weixin.qq.com/doc/service/api/public/api_freepublish_submit.html`](https://developers.weixin.qq.com/doc/service/api/public/api_freepublish_submit.html), read 6 Nov 2026 - [`developers.weixin.qq.com/doc/service/api/material/permanent/api_addmaterial.html`](https://developers.weixin.qq.com/doc/service/api/material/permanent/api_addmaterial.html), read 6 Nov 2026 - [`developers.weixin.qq.com/doc/subscription/guide/product/publish.html`](https://developers.weixin.qq.com/doc/subscription/guide/product/publish.html), read 6 Nov 2026 - [`developers.weixin.qq.com/doc/service/api/public/api_freepublish_get.html`](https://developers.weixin.qq.com/doc/service/api/public/api_freepublish_get.html), read 6 Nov 2026 # Whop How to connect Whop to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Whop account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A developer app of your own on Whop - Your own Whop login - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/whop`. The connect page in Postbroad shows the same address with a copy button. - App review: none. Whop does not review an app before it posts. Checked on 8 Nov 2026 against Whop's own documentation. ## Set up, step by step {#setup} ### In the Whop developer dashboard 1. Open whop.com/dashboard/developer and create an app, or pick one. 2. In the OAuth section, add the redirect URL from Postbroad. It must match exactly. 3. Under the available scopes, allow openid, forum:read and forum:post:create. 4. Copy the client ID (it starts with app_) and the client secret from the dashboard. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Whop. 2. Under Add your Whop app, paste the Client ID and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Whop for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Whop opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Whop | |---|---| | Text | yes | | Pictures | no | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | yes, text | | Long article | no | | Needs a picture or video | no | Extra options: title. Text: up to 50,000 characters. To be confirmed: the network's documentation does not state it. Docs.whop.com create-forum-post names no length limit (read 2026-10-24); kept unverified and not enforced. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per key or sign-in | Posts and other writes | 600 a minute | verified | 600 requests per minute per API operation and credential; 429 with a retry delay in the message. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Whop is still processing after 30 minutes stays accepted: Whop took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: Whop accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Posting (`forum_post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - A sandbox API exists at sandbox-api.whop.com for live smoke runs. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Whop (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Whop | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | Whop no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Whop account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/whop`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Whop. ## Sources {#sources} - [`docs.whop.com/developer/guides/oauth`](https://docs.whop.com/developer/guides/oauth), read 8 Nov 2026 - [`docs.whop.com/api-reference/forum-posts/create-forum-post`](https://docs.whop.com/api-reference/forum-posts/create-forum-post), read 24 Oct 2026 - [`docs.whop.com/api-reference/forums/list-forums`](https://docs.whop.com/api-reference/forums/list-forums), read 24 Oct 2026 - [`docs.whop.com/api-reference/companies/list-companies`](https://docs.whop.com/api-reference/companies/list-companies), read 24 Oct 2026 - [`docs.whop.com/api-reference/forum-posts/retrieve-forum-post`](https://docs.whop.com/api-reference/forum-posts/retrieve-forum-post), read 24 Oct 2026 - [`docs.whop.com/developer/api/rate-limits`](https://docs.whop.com/developer/api/rate-limits), read 24 Oct 2026 # WordPress How to connect WordPress to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own WordPress account; Postbroad never provides an app or an account. ## What you need {#needs} - Your site address, for example example.com - An application password from your WordPress profile - App review: none. WordPress does not review an app before it posts. Checked on 21 Oct 2026 against WordPress's own documentation. ## Set up, step by step {#setup} ### In WordPress 1. In your WordPress profile, create an application password for Postbroad. 2. Copy it, and note your username and your site's address. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect WordPress. 2. Choose Continue and fill in Your WordPress details, then choose Connect: - **Site address**: For example https://example.com - **Username** - **Application password**: In your WordPress profile, create an application password Secrets are kept sealed and never shown again. 3. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On WordPress | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | no | Extra options: featured image, categories, tags, draft or published and page. Text: no fixed number of characters. Core documents no limit; `post_content` is LONGTEXT. ## Limits {#limits} WordPress documents no rate limit. Postbroad slows down when WordPress says so and waits as long as it asks. A post that WordPress is still processing after 30 minutes stays accepted: WordPress took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from WordPress and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the post read back and matched to what was sent; the network's acknowledgement. Before a retry: - Publishing (`publish_by_id`): The network stages the post and then commits it. A retry resumes the staged post and cannot create a second post. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Some hosts turn application passwords off. Then your host has to allow them first. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | We couldn't connect WordPress | Nothing was changed. Check each detail you entered and the rights of the key, then try again. | | Needs reconnect | WordPress no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | ## Use it from code and agents {#code} In the API, each connected WordPress account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/wordpress`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to WordPress. ## Sources {#sources} - [`developer.wordpress.org/rest-api/using-the-rest-api/authentication`](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication), read 21 Oct 2026 - [`make.wordpress.org/core/2020/11/05/application-passwords-integration-guide`](https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide), read 21 Oct 2026 - [`developer.wordpress.org/rest-api/reference/posts`](https://developer.wordpress.org/rest-api/reference/posts), read 21 Oct 2026 - [`developer.wordpress.org/rest-api/reference/pages`](https://developer.wordpress.org/rest-api/reference/pages), read 21 Oct 2026 - [`developer.wordpress.org/rest-api/reference/media`](https://developer.wordpress.org/rest-api/reference/media), read 21 Oct 2026 # X How to connect X to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own X account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - An X developer account with an app set to read and write - Your own X login - You are: the owner of the X account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/x`. The connect page in Postbroad shows the same address with a copy button. - App review: none. X does not review an app before it posts. Checked on 8 Nov 2026 against X's own documentation. ## Set up, step by step {#setup} ### In the X Developer Console 1. Sign in at console.x.com with your own X account and create an app. 2. In the app's authentication settings, turn on OAuth 2.0, choose Web App (a confidential client, so X gives you a client secret) and set the permissions to Read and write. 3. Add the redirect URL from Postbroad to the app's callback URLs. It must match exactly. 4. Copy the Client ID and the Client Secret from the app's keys and tokens. X shows a secret once, so keep it until it is saved in Postbroad. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect X. 2. Under Add your X app, paste the Client ID and the Client Secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens X for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. X opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What X asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `tweet.read` | Read your posts, to check that a post went out. | | `tweet.write` | Post for you. | | `users.read` | See which X account you signed in with. | | `offline.access` | Stay connected without asking you to sign in again. | | `media.write` | Upload pictures and video. | ## Posting rules {#posting} | In one post | On X | |---|---| | Text | yes | | Pictures | up to 4 pictures | | Video | 1 video | | Carousel | no | | Thread of replies | yes | | First comment | no | | Long article | no | | Needs a picture or video | no | Extra options: who may reply, post in a community, poll and quote post. Text: up to 280 characters, counted the network's way. Verified on the network's own documentation. 280 weighted characters: most count 1, emoji and CJK count 2, and every URL counts 23 (t.co). 4000 when the account tier allows; the counting page names no tier limit. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | 10,000 a day | verified | 10,000 POST /2/tweets per 24 h per app. | | Per account | Posts and other writes | 100 per 15 minutes | verified | 100 requests per 15 min per user. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that X is still processing after 30 minutes stays accepted: X took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Accepted, with a link: X accepts the post and gives back its address, which Postbroad keeps with the delivery.** Evidence, in order: the post read back and matched to what was sent; the network's acknowledgement. Until a live run confirms this ladder, Postbroad relies on the network's acknowledgement only. Before a retry: - Posting (`post_create`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - X bills API use to your own X developer account, pay per use. Postbroad does not pay for or resell X API access. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on X (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect X | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect X and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | X no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected X account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/x`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to X. ## Sources {#sources} - [`docs.x.com/fundamentals/developer-apps`](https://docs.x.com/fundamentals/developer-apps), read 8 Nov 2026 - [`docs.x.com/fundamentals/authentication/oauth-2-0/authorization-code`](https://docs.x.com/fundamentals/authentication/oauth-2-0/authorization-code), read 8 Nov 2026 - [`docs.x.com/resources/fundamentals/counting-characters`](https://docs.x.com/resources/fundamentals/counting-characters), read 7 Nov 2026 # YouTube How to connect YouTube to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own YouTube account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Google project with the YouTube Data API turned on - The Google login that owns the YouTube channel - You are: the owner of the channel, or a manager of the brand account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/youtube`. The connect page in Postbroad shows the same address with a copy button. - App review: yes. See [the review](#review) for what works before it ends. Checked on 8 Nov 2026 against YouTube's own documentation. ## Set up, step by step {#setup} ### In the Google Cloud console 1. Create a project in the Google Cloud console, or pick one, and enable the YouTube Data API v3 in the API Library. 2. Set up the OAuth consent screen for the project. While the app is in Testing, add the Google account that owns the channel as a test user. 3. Open the Clients page, choose Create Client and pick Web application. 4. Add the redirect URL from Postbroad under Authorized redirect URIs and choose Create. 5. Copy the client ID and the client secret. Google shows the secret only when the client is created. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect YouTube. 2. Under Add your YouTube app, paste the Client ID and the Client secret, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens YouTube for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. YouTube opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Permissions and why {#permissions} What YouTube asks you to allow when you connect, and what Postbroad does with each. | Permission | Why Postbroad asks | |---|---| | `https://www.googleapis.com/auth/youtube.upload` | Upload videos to your channel. | | `https://www.googleapis.com/auth/youtube.readonly` | Read your channel and its videos, to check that an upload finished. | ## The review {#review} - While the app's publishing status is Testing, only the test users you list (up to 100) can sign in, and each sign-in ends after seven days, so the channel needs a reconnect every week. - Choose Publish app to lift both limits. Google may ask to verify an app that asks for YouTube access before people outside your test users can use it. ## Posting rules {#posting} | In one post | On YouTube | |---|---| | Text | yes | | Pictures | no | | Video | 1 video | | Carousel | no | | Thread of replies | no | | First comment | yes, text | | Long article | no | | Needs a picture or video | yes | Extra options: custom thumbnail, who can see it, tags and Short. Text: up to 5,000 characters, title up to 100. Verified on the network's own documentation. Snippet.description at most 5000 bytes and snippet.title at most 100 characters, neither may contain < or >. ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | 100 a day | verified | 100 uploads a day per Google Cloud project; each BYO project has its own quota. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that YouTube is still processing after 2 hours stays accepted: YouTube took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from YouTube and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the network's acknowledgement. Before a retry: - Posting (`resumable_upload`): The network offers no deduplication and no lookup. After an unclear outcome Postbroad does not retry by itself: the delivery becomes unknown and a person decides. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Quota sharding across projects is prohibited; the project used by each connection is recorded. ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on YouTube (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect YouTube | Nothing was changed. Start again, and allow everything the network asks for. | | Missing a permission | Reconnect YouTube and allow what it asks for. The connection says which permission is missing and what it blocks. | | Needs reconnect | YouTube no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected YouTube account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/youtube`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to YouTube. ## Sources {#sources} - [`developers.google.com/youtube/registering_an_application`](https://developers.google.com/youtube/registering_an_application), read 8 Nov 2026 - [`developers.google.com/youtube/v3/guides/auth/server-side-web-apps`](https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps), read 8 Nov 2026 - [`support.google.com/cloud/answer/15549945`](https://support.google.com/cloud/answer/15549945), read 8 Nov 2026 - [`developers.google.com/youtube/v3/docs/videos`](https://developers.google.com/youtube/v3/docs/videos), read 8 Nov 2026 - [`developers.google.com/youtube/v3/docs/commentThreads/insert`](https://developers.google.com/youtube/v3/docs/commentThreads/insert), read 6 Nov 2026 # Zalo Official Account How to connect Zalo Official Account to Postbroad, what a post there may hold, and how Postbroad checks it went live. You connect your own Zalo Official Account account, through an app of your own; Postbroad never provides an app or an account. ## What you need {#needs} - A Zalo Official Account - An app of your own at developers.zalo.me, linked to the Official Account with the permission to manage articles, its App ID and secret, and this redirect address - You are: an administrator of the Official Account - The redirect URL to add to your app: `https://app.postbroad.com/oauth/callback/zalo`. The connect page in Postbroad shows the same address with a copy button. - App review: none. Zalo Official Account does not review an app before it posts. Checked on 6 Nov 2026 against Zalo Official Account's own documentation. ## Set up, step by step {#setup} ### On Zalo for Developers 1. Create an app at developers.zalo.me. 2. Link the app to your Zalo Official Account with the permission to manage articles. 3. Add the redirect URL from Postbroad to the app. 4. Copy the App ID and the secret key. ### In Postbroad 1. Open the brand you post for, choose Connect an account, then Connect Zalo Official Account. 2. Under Add your Zalo Official Account app, paste the App ID and the Secret key, then choose Save and continue. Postbroad saves the app, tests it, says in plain words what the test found and, when the keys work, opens Zalo Official Account for you to sign in. The step that asks for the redirect URL shows it, with a copy button. 3. Zalo Official Account opens in a new window: sign in and allow what Postbroad asks for. Postbroad notices you are back and moves on by itself. 4. Under Choose where posts go, tick each account or page to use and the brand it belongs to, then choose Connect. With one account and one brand there is nothing to choose: it is connected at once. ## Posting rules {#posting} | In one post | On Zalo Official Account | |---|---| | Text | yes | | Pictures | 1 picture | | Video | no | | Carousel | no | | Thread of replies | no | | First comment | no | | Long article | yes | | Needs a picture or video | yes | Extra options: cover image, author, description and comments on or off. title up to 150. Verified on the network's own documentation. Title at most 150 characters, author 50, description 300; no body limit is stated. | Media | File types | Largest file | Longest | Size | |---|---|---|---|---| | Cover image | JPEG, PNG | 1 MB | not stated | not stated | ## Limits {#limits} | Applies to | Calls | Limit | Status | Note | |---|---|---|---|---| | Per app or bot, shared by every account on it | Posts and other writes | 4,000 a minute | verified | Article API: 4,000 requests per minute per app, with lower per-OA limits by plan; error -32 when exceeded. | Postbroad takes these limits into account before each call, and never has two posts for the same account in flight at once. A post that Zalo Official Account is still processing after 30 minutes stays accepted: Zalo Official Account took the upload, so it is never reported as failed. ## How Postbroad checks it is live {#live} **Live, read back: Postbroad reads each post back from Zalo Official Account and matches it to what was sent before it counts as live.** Evidence, in order: the network's status endpoint; the network's acknowledgement. Before a retry: - Posting (`article_create`): Before any retry, Postbroad looks the post up on the network by its stored identity. It retries only when the lookup shows nothing was created. Only failed deliveries are retried, and nothing is posted twice. See [what live means](../guides/concepts.md#live). ## Good to know {#notes} - Every answer is HTTP 200 with error (0 is success) and message. - How many apps an Official Account may authorize depends on its plan (zalo.solutions/oa/pricing). ## When something is off {#trouble} | What the app shows | What to do | |---|---| | Test failed, check this setting | Fix the named setting in your app on Zalo Official Account (the redirect URL, the App ID, the secret or a permission), then choose Test the app again. | | We couldn't connect Zalo Official Account | Nothing was changed. Start again, and allow everything the network asks for. | | Needs reconnect | Zalo Official Account no longer accepts the sign-in or the key. Reconnect the account: its history and schedule are kept, and waiting posts go out after. | | Signing out soon | Reconnect before the date shown, so scheduled posts keep going out. | ## Use it from code and agents {#code} In the API, each connected Zalo Official Account account is a `channel`. Post to it with its channel id in `POST /v1/posts` (see the [quickstart](../guides/quickstart.md)), and read this network's full spec with `GET /v1/networks/zalo`. An agent connected through the [MCP server](../mcp/README.md) posts here when you ask it to post to Zalo Official Account. ## Sources {#sources} - [`developers.zalo.me/docs/official-account/bat-dau/xac-thuc-va-uy-quyen-cho-ung-dung-new`](https://developers.zalo.me/docs/official-account/bat-dau/xac-thuc-va-uy-quyen-cho-ung-dung-new), read 6 Nov 2026 - [`developers.zalo.me/docs/official-account/noi-dung/noi-dung-dang-bai-viet/noi-dung-dang-bai-viet`](https://developers.zalo.me/docs/official-account/noi-dung/noi-dung-dang-bai-viet/noi-dung-dang-bai-viet), read 6 Nov 2026 - [`developers.zalo.me/docs/official-account`](https://developers.zalo.me/docs/official-account), read 6 Nov 2026 - [`developers.zalo.me/docs/official-account/noi-dung/noi-dung-dang-bai-viet/kiem-tra-ket-qua-tien-trinh-tao-noi-dung`](https://developers.zalo.me/docs/official-account/noi-dung/noi-dung-dang-bai-viet/kiem-tra-ket-qua-tien-trinh-tao-noi-dung), read 6 Nov 2026 - [`developers.zalo.me/docs/official-account/phu-luc/gioi-han-toc-do-api`](https://developers.zalo.me/docs/official-account/phu-luc/gioi-han-toc-do-api), read 6 Nov 2026 # Client code There is no Postbroad package to install. The API is plain HTTPS and JSON, described by one OpenAPI 3.1 document, and any OpenAPI tool gives you a typed client: ``` https://postbroad.com/docs/openapi.json ``` The [API reference](api/reference/README.md) is generated from the same document, so the two never disagree. Point any OpenAPI tool at it to get typed requests in your language. ## TypeScript {#typescript} Generate types with [openapi-typescript](https://openapi-ts.dev) and call the API with its small `openapi-fetch` client: ```bash npm install openapi-fetch npm install --save-dev openapi-typescript npm exec -- openapi-typescript https://postbroad.com/docs/openapi.json -o src/postbroad.d.ts ``` ```ts import createClient from "openapi-fetch"; import type { paths } from "./postbroad"; const postbroad = createClient({ baseUrl: "https://app.postbroad.com", headers: { Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}` }, }); const { data, error } = await postbroad.GET("/v1/brands"); if (error) throw new Error(`${error.code}: ${error.detail}`); console.log(data); ``` Paths, parameters, bodies and answers are checked by the compiler. Regenerate the types from time to time to pick up new endpoints and fields; within one [API version](api/versioning.md) changes are additive only. ## Other languages {#other} Any generator that reads OpenAPI 3.1 works, for example [OpenAPI Generator](https://openapi-generator.tech) for Python, Go, Java, Ruby or C#. ## Two things every client must do {#must} - Send `Authorization: Bearer ` on every call ([Authentication](api/authentication.md)). - Send a fresh `Idempotency-Key` on every write, and reuse the same one when you retry that write. ## Retries {#retries} Retry only when the problem body says `retryable: true`, and wait for the `Retry-After` header when it is there. The [error catalogue](api/errors.md) lists which codes are retryable, and [rate limits](api/rate-limits.md) explains the request allowance per key. # Comparisons ## Postbroad vs Buffer | Topic | Postbroad | Buffer | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 12: Facebook, Instagram, TikTok, LinkedIn, Threads, Bluesky, YouTube Shorts, Pinterest, Google Business, Mastodon, X and Substack (source: https://buffer.com) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | MCP on every plan, Free included, for Claude, ChatGPT, Cursor, n8n and more. API on all plans. (source: https://buffer.com/mcp) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Its MCP page says posts land in your Buffer queue as drafts or scheduled posts, with you as the last step. No choice of mode per agent found. (source: https://buffer.com/mcp), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Content approval on the Team plan only. Clients are added as users, so they sign in. (source: https://buffer.com/pricing) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | Yes: up to 3 social accounts, 10 scheduled posts per account, 1 user (source: https://buffer.com/pricing) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Essentials $5 per social account a month, or $60 per account billed yearly (source: https://buffer.com/pricing), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages (source: https://buffer.com/api) | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Postbroad imports Buffer's bulk upload CSV, so text and times come across (source: https://postbroad.com/features/import) | From https://postbroad.com/compare/postbroad-vs-buffer, checked 6 Nov 2026. ## Postbroad vs Later | Topic | Postbroad | Later | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 8: Instagram, Facebook, TikTok, Threads, YouTube, Pinterest, LinkedIn and Snapchat (source: https://later.com/pricing/) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | No MCP server, AI agent connector or public API found on its public pages (source: https://later.com/pricing/) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | No agent connection found on its public pages | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Approvals on Growth and Scale, with share links for people without a Later account (source: https://later.com/pricing/) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | No. Free for 14 days. (source: https://later.com/pricing/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Starter $18.75 a month billed yearly: 1 social set, 1 user, 30 posts per profile (source: https://later.com/pricing/), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-later, checked 6 Nov 2026. ## Postbroad vs Publer | Topic | Postbroad | Publer | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 13: Facebook, Instagram, TikTok, X (paid plans), Threads, LinkedIn, Pinterest, Mastodon, Google Business Profile, YouTube, Telegram, Bluesky and WordPress (source: https://publer.com/plans) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | Publer MCP for ChatGPT and Claude. API and MCP access listed under the Business plan. (source: https://publer.com/plans) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Its plans page lists MCP to create and schedule content, with no approval step or mode per agent (source: https://publer.com/plans), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Approval workflows for your team and clients. The client is added as a workspace member, so they sign in. (source: https://publer.com/help/en/article/y76c4k/) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | Yes: 1 user, 3 social accounts (not X), up to 10 scheduled posts per account at a time (source: https://publer.com/help/en/article/what-are-publers-plans-and-pricing-15h4yqh/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Professional from $5 a month with 1 social account and 1 user; the price grows with each account or member you add (source: https://publer.com/help/en/article/what-are-publers-plans-and-pricing-15h4yqh/), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-publer, checked 6 Nov 2026. ## Postbroad vs SocialBee | Topic | Postbroad | SocialBee | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 10 direct: Facebook, Instagram, Threads, LinkedIn, X, Pinterest, TikTok, YouTube, Google Business Profile and Bluesky. Others through its mobile app. (source: https://socialbee.com/pricing/) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | No MCP server found on its public pages (source: https://socialbee.com/pricing/) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | No agent connection found on its public pages | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Post approval on Accelerate and higher. Clients join a workspace. (source: https://socialbee.com/social-media-collaboration-tool/) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | No. A 14 day free trial, no card. (source: https://socialbee.com/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Bootstrap $29 a month, or $24.20 a month billed yearly, 5 social accounts, 1 user (source: https://socialbee.com/), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-socialbee, checked 6 Nov 2026. ## Postbroad vs Metricool | Topic | Postbroad | Metricool | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 10 confirmed: Facebook, Instagram, Threads, X (paid add-on), Bluesky, Pinterest, TikTok, YouTube, LinkedIn (paid plans) and Google Business Profile (source: https://metricool.com/pricing/) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | Metricool MCP for Claude, ChatGPT, Cursor, Make and n8n, on the free plan with limits. API on Advanced. (source: https://metricool.com/metricool-mcp-claude/) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Its MCP uses the same permissions as your Metricool account. No choice of mode per agent found. (source: https://metricool.com/metricool-mcp-claude/), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Clients approve or reject from an email link with no account, on Advanced and Custom (source: https://metricool.com/approval-system-social-media/) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | Yes: 1 brand, 20 posts a month, all networks except LinkedIn and X (source: https://metricool.com/pricing/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Starter from $20 a month billed yearly, or $25 billed monthly, for 5 brands. X is $10 a month extra per connected account. (source: https://metricool.com/pricing/), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-metricool, checked 6 Nov 2026. ## Postbroad vs Typefully | Topic | Postbroad | Typefully | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 6 in its pricing table: X, Bluesky, LinkedIn, Threads, Mastodon and Substack (source: https://typefully.com/pricing) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | Agents, API and MCP on every plan, free included (source: https://typefully.com/pricing) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | An API key carries read, write or publish access, so a key without publish can only draft. No approval step per agent is described. (source: https://typefully.com/docs/api.md), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Collaborative writing, comments and team roles on Business. No client approval link stated. (source: https://typefully.com/pricing) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | Yes: 1 social set, 1 user, 10 posts a month (source: https://typefully.com/pricing) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Creator is billed yearly only, and Business per social set, billed yearly. See the vendor's page for the price. (source: https://typefully.com/pricing), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | Its API docs say a finished job means the job is done, not that it succeeded (source: https://typefully.com/docs/api.md) | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-typefully, checked 6 Nov 2026. ## Postbroad vs Hootsuite | Topic | Postbroad | Hootsuite | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | Facebook, Instagram, X, LinkedIn, TikTok, YouTube, Threads, Pinterest and Bluesky (source: https://www.hootsuite.com/platform/publishing) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | MCP servers for ChatGPT, Claude, Copilot and Gemini. Its plan table lists the Lumen MCP connector on Enterprise. (source: https://www.hootsuite.com/integrations/mcp) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Its MCP page describes human review in general and permissions tied to your account. No choice of mode per agent found. (source: https://www.hootsuite.com/integrations/mcp), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Post approval workflows on Advanced and Enterprise (source: https://www.hootsuite.com/plans) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | No. A 14 day free trial. (source: https://www.hootsuite.com/plans) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Standard from $99 per user a month, billed yearly, 10 social accounts (source: https://www.hootsuite.com/plans), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-hootsuite, checked 6 Nov 2026. ## Postbroad vs Sprout Social | Topic | Postbroad | Sprout Social | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 9 for publishing: X, Facebook, TikTok, LinkedIn, Instagram, Pinterest, YouTube, Bluesky and Threads (source: https://support.sproutsocial.com/hc/en-us/articles/115005707863) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | An MCP connection for ChatGPT only, TikTok data only, no write actions, on Professional and up. API on Advanced. (source: https://support.sproutsocial.com/hc/en-us/articles/41236305631373) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Its MCP connection supports no write actions, so an agent posts nothing there (source: https://support.sproutsocial.com/hc/en-us/articles/41236305631373) | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Approval workflows on Professional and Advanced. Up to 3 external approvers without an account, on Advanced only. (source: https://support.sproutsocial.com/hc/en-us/articles/9385327882125) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | No. A 30 day free trial. (source: https://sproutsocial.com/pricing/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Essentials $79 per seat a month billed yearly, or $99 billed monthly, up to 5 profiles (source: https://sproutsocial.com/pricing/), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-sprout-social, checked 6 Nov 2026. ## Postbroad vs Planable | Topic | Postbroad | Planable | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 9: Facebook, Google Business Profile, TikTok, YouTube, Instagram, Pinterest, LinkedIn, Threads and X (source: https://planable.io/pricing/) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | MCP connector for Claude and ChatGPT on Basic and up. Public API on Pro and Enterprise. (source: https://planable.io/pricing/) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Its pricing page says the MCP connector creates and manages content, with no approval step or mode per agent (source: https://planable.io/pricing/), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Optional and required approval, multi-level on Enterprise. Share links allow viewing and comments, not approving; approver accounts are free. (source: https://planable.io/guides/content-approvals-in-planable/) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | No free plan. The first 50 posts are free, with no time limit. (source: https://planable.io/pricing/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Basic $33 per workspace a month, 60 posts a month, unlimited users. Yearly billing gives 2 months free. (source: https://planable.io/pricing/), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-planable, checked 6 Nov 2026. ## Postbroad vs Vista Social | Topic | Postbroad | Vista Social | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 12 confirmed, including Instagram, Facebook, X, LinkedIn, TikTok, YouTube, Pinterest, Threads, Reddit, Snapchat, Tumblr and Bluesky (source: https://vistasocial.com/social-media-publishing/) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | Vista Social MCP server on all paid plans, for Claude, ChatGPT and Cursor (source: https://vistasocial.com/integrations/mcp/) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Access follows your Vista Social role, and one switch disconnects every AI client at once. No choice of mode per agent found. (source: https://vistasocial.com/integrations/mcp/), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | Shared calendar link lets clients approve with no account, on Advanced. Not on Professional. (source: https://vistasocial.com/insights/client-portal-for-agencies) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | No. A 14 day free trial, no card. (source: https://vistasocial.com/pricing/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Professional $99 a month, or $950 a year, 15 profiles, 2 users (source: https://vistasocial.com/pricing/), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | Not offered on its public pages | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-vista-social, checked 6 Nov 2026. ## Postbroad vs Postiz | Topic | Postbroad | Postiz | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 30+, including X, LinkedIn, Instagram, Threads, TikTok, YouTube, Reddit, Bluesky, Mastodon, Telegram, Discord and WordPress (source: https://postiz.com/) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | MCP server, CLI and API in every plan (source: https://postiz.com/pricing) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Its pricing page says any agent can schedule for you, with no approval step or mode per agent (source: https://postiz.com/pricing), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | A public preview page per post, no account needed, for comments. Its docs say approval does not block publishing. (source: https://docs.postiz.com/general/approvals) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | No permanent free tier on the hosted version. A 7 day trial for $0. The code is open source (AGPL 3.0). (source: https://postiz.com/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Standard $29 a month, or $23 a month billed yearly, 5 social accounts, no team members (source: https://postiz.com/pricing), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | On your own server you make your own developer apps. On hosted Postiz this isn't stated. (source: https://postiz.com/) | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | No public claim found (source: https://postiz.com/pricing) | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Postbroad imports your Postiz posts through the Postiz public API, so text and times come across (source: https://postbroad.com/features/import) | From https://postbroad.com/compare/postbroad-vs-postiz, checked 6 Nov 2026. ## Postbroad vs Ayrshare | Topic | Postbroad | Ayrshare | | --- | --- | --- | | Networks | 52 networks, including Instagram, Facebook, Threads, LinkedIn, X, Bluesky, Mastodon, TikTok, YouTube, Pinterest, Telegram, Discord, VK, WeChat and WordPress (source: https://postbroad.com/channels) | 14 listed, including Facebook, X, Bluesky, Instagram, LinkedIn, Reddit, Telegram, TikTok, Threads, Pinterest, Snapchat and YouTube. WhatsApp is messaging only. (source: https://www.ayrshare.com/) | | AI agents and MCP | A hosted MCP server for ChatGPT, Claude and other MCP clients, and a REST API for n8n, Make, Zapier and your own code. On the free plan. (source: https://postbroad.com/mcp) | API on every plan, and an MCP server for ChatGPT, Claude Code and other clients (source: https://www.ayrshare.com/) | | Approve or Autopilot per agent | Yes. You choose Approve or Autopilot when you connect each agent, and an agent can never approve its own post. (source: https://postbroad.com/agents) | Its MCP server has 27 tools and no approval step or mode per agent on its home page. An API flag can hold a post until it is approved. (source: https://www.ayrshare.com/), read 8 Nov 2026 | | Client approval links | A client approves from a link on any phone, with no login. On the free plan too. (source: https://postbroad.com/features/approvals) | An API flag holds a post until it is approved. No client approval page found. (source: https://www.ayrshare.com/docs/apis/post/overview) | | Free plan | Yes: 3 accounts on any network, 1 brand, 30 posts a month, 1 seat, client approval links (source: https://postbroad.com/pricing) | No. A 28 day trial on Launch only. (source: https://www.ayrshare.com/pricing/) | | Starting list price | Free $0. Starter $15, Creator $29, Studio $99 a month. (source: https://postbroad.com/pricing) | Premium $149 a month for 1 social profile. Launch $299 a month for up to 10. (source: https://www.ayrshare.com/pricing/), read 8 Nov 2026 | | Your own accounts and app keys | Yes. You always connect your own accounts, and your own app keys where a network needs an app. (source: https://postbroad.com/channels#your-keys) | For X you bring your own X app and credits (source: https://www.ayrshare.com/x-twitter-api/) | | Checks the post went live | Checks posts on 27 networks; 20 more return a post link. Acceptance alone stays Accepted; a person can confirm a post is live. (source: https://postbroad.com/features/analytics#delivery-record) | Returns a post link and a success status per network. No read-back claim found. (source: https://www.ayrshare.com/docs/apis/post/overview) | | Import from them | Imports posts from Buffer, from Postiz and from any CSV file (source: https://postbroad.com/features/import) | Through a CSV file of your posts, checked with the free CSV checker (source: https://postbroad.com/tools/csv-validator) | From https://postbroad.com/compare/postbroad-vs-ayrshare, checked 6 Nov 2026.