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 first.
New to the API? The quickstart schedules a first post in five calls.
Every call goes to https://app.postbroad.com; see Authentication and the error catalogue.
| Endpoint | What it does | Scope |
|---|---|---|
POST /v1/brands/{brandId}/link-drafts | Read an article once and draft a post for each of the brand's networks | post.draft |
GET /v1/posts/{postId}/links | The post's short links and their clicks | content.read |
GET /v1/channels/{channelId}/mentions | Find accounts, roles or pages a post to this channel can tag | post.create |
GET /v1/brands/{brandId}/post-templates | A brand's saved post templates, by name | any key |
POST /v1/brands/{brandId}/post-templates | Save a post template for a brand | post.draft |
GET /v1/brands/{brandId}/post-templates/{templateId} | One saved post template | any key |
PATCH /v1/brands/{brandId}/post-templates/{templateId} | Rename a post template or replace its content | post.draft |
DELETE /v1/brands/{brandId}/post-templates/{templateId} | Delete a post template; posts made from it stay as they are | post.draft |
GET /v1/posts | Posts by brand, state, tag or time | any key |
POST /v1/posts | Create a draft (the draft always saves) | post.create |
GET /v1/posts/export.csv | Export matching posts and their destinations as a CSV attachment | any key |
POST /v1/posts/batch | Create up to 50 drafts with a result per item | post.create |
GET /v1/posts/{postId} | A post with its current version and per-destination status | any key |
PATCH /v1/posts/{postId} | Edit a post; a scheduled post gets a new version | post.edit |
DELETE /v1/posts/{postId} | Delete a post that has not gone out; unsent destinations are cancelled first | post.delete |
POST /v1/posts/{postId}/duplicate | Copy a post to a new draft with the same destinations and no history | post.create |
GET /v1/posts/{postId}/versions | Versions of a post, newest first | any key |
GET /v1/posts/{postId}/versions/{versionNo} | One version of a post | any key |
GET /v1/posts/{postId}/diff | Differences between two versions | any key |
POST /v1/posts/{postId}/versions/{versionNo}/restore | 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
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
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes |
Response 200: LinkDrafts. Drafts
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 422 validation_failed, 422 rule_violation, 429 rate_limited, 500 internal.
curl -X POST "https://app.postbroad.com/v1/brands/<brandId>/link-drafts" \
-H "Authorization: Bearer $POSTBROAD_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"url": "string"
}'const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/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();{
"url": "string",
"title": "string",
"description": "string",
"imageUrl": "string",
"drafts": [
{
"network": "string",
"text": "string"
}
]
}#The post's short links and their clicks
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. Links
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/posts/<postId>/links" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/posts/<postId>/links", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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. The candidates
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 422 validation_failed, 429 rate_limited, 500 internal, 503 unavailable.
curl -X GET "https://app.postbroad.com/v1/channels/<channelId>/mentions?q=<q>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/channels/<channelId>/mentions?q=<q>", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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. The templates
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/brands/<brandId>/post-templates" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/post-templates", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
content | PostTemplateContent | yes | What a template fills a new draft with: no time, state or history. |
Response 201: PostTemplate. The new template
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 conflict, 422 validation_failed, 422 idempotency_key_reused, 422 rule_violation, 429 rate_limited, 500 internal.
curl -X POST "https://app.postbroad.com/v1/brands/<brandId>/post-templates" \
-H "Authorization: Bearer $POSTBROAD_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"content": {}
}'const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/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();{
"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
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. The template
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/brands/<brandId>/post-templates/<templateId>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/post-templates/<templateId>", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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
| Field | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | yes | |
name | string | no | |
content | PostTemplateContent | no | What a template fills a new draft with: no time, state or history. |
Response 200: PostTemplate or UpdatePostTemplateDryRun. Pure operation preview when dry_run=true; no mutation is performed
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 revision_mismatch, 409 conflict, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
curl -X PATCH "https://app.postbroad.com/v1/brands/<brandId>/post-templates/<templateId>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"expectedRevision": 0,
"name": "string",
"content": {}
}'const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/post-templates/<templateId>", {
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();{
"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
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 or DeletePostTemplateDryRun. Pure operation preview when dry_run=true; no mutation is performed
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
curl -X DELETE "https://app.postbroad.com/v1/brands/<brandId>/post-templates/<templateId>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/post-templates/<templateId>", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
"Idempotency-Key": crypto.randomUUID(),
},
});
const data = await res.json();{
"id": "0b7e8f8e-5a4c-4d0e-9f53-0c8f2a6d1e01",
"deleted": true
}#Posts by brand, state, tag or time
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. A page of posts
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 422 validation_failed, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/posts" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/posts", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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)
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
| Field | Type | Required | Description |
|---|---|---|---|
brandId | string (uuid) | yes | |
baseText | string | no | |
media | MediaAttachment[] | no | |
variants | VariantInput[] | no | |
destinations | DestinationInput[] | no | |
scheduledAt | string (date-time) or null | no | |
tags | string[] | no |
Response 201: PostView. The draft
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
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"
]
}'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();{
"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
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, 401 unauthenticated, 403 forbidden, 404 not_found, 413 payload_too_large, 422 validation_failed, 429 rate_limited, 500 internal, 503 unavailable.
curl -X GET "https://app.postbroad.com/v1/posts/export.csv" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"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
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
| Field | Type | Required | Description |
|---|---|---|---|
posts | CreatePostInput[] | yes |
Response 200: BatchCreatePostsResult or CreatePostsBatchDryRun. Pure operation preview when dry_run=true; no mutation is performed
Errors: 400 bad_request, 400 idempotency_key_required, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
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"
}
]
}'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();{
"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
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. The post
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/posts/<postId>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/posts/<postId>", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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
| Field | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | yes | |
autosave | boolean | no | |
baseText | string | no | |
media | MediaAttachment[] | no | |
variants | VariantInput[] | no | |
destinations | DestinationInput[] | no | |
scheduledAt | string (date-time) or null | no | |
tags | string[] | no |
Response 200: PostWriteResult or UpdatePostDryRun. Pure operation preview when dry_run=true; no mutation is performed
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 403 limit_reached, 404 not_found, 409 request_in_progress, 409 revision_mismatch, 422 validation_failed, 422 idempotency_key_reused, 422 rule_violation, 429 rate_limited, 500 internal.
curl -X PATCH "https://app.postbroad.com/v1/posts/<postId>" \
-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"
]
}'const res = await fetch("https://app.postbroad.com/v1/posts/<postId>", {
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();{
"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
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. Deleted or draining
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 conflict, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
curl -X DELETE "https://app.postbroad.com/v1/posts/<postId>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch("https://app.postbroad.com/v1/posts/<postId>", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
"Idempotency-Key": crypto.randomUUID(),
},
});
const data = await res.json();{
"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
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
| Field | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | no |
Response 201: PostView. The new draft
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 revision_mismatch, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
curl -X POST "https://app.postbroad.com/v1/posts/<postId>/duplicate" \
-H "Authorization: Bearer $POSTBROAD_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"expectedRevision": 0
}'const res = await fetch("https://app.postbroad.com/v1/posts/<postId>/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();{
"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
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. A page of versions
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 422 validation_failed, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/posts/<postId>/versions" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/posts/<postId>/versions", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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. The version
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/posts/<postId>/versions/<versionNo>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/posts/<postId>/versions/<versionNo>", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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. The diff
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 422 validation_failed, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/posts/<postId>/diff?from=<from>&to=<to>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/posts/<postId>/diff?from=<from>&to=<to>", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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
| Field | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | yes |
Response 200: PostWriteResult or RestorePostVersionDryRun. Pure operation preview when dry_run=true; no mutation is performed
Errors: 400 bad_request, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 revision_mismatch, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
curl -X POST "https://app.postbroad.com/v1/posts/<postId>/versions/<versionNo>/restore" \
-H "Authorization: Bearer $POSTBROAD_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"expectedRevision": 0
}'const res = await fetch("https://app.postbroad.com/v1/posts/<postId>/versions/<versionNo>/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();{
"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
Every type the operations above use
#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
| Field | Type | Required | Description |
|---|---|---|---|
kind | "member" or "agent" or "api" | yes | |
name | string or null | yes |
#BatchCreatePostsInput
| Field | Type | Required | Description |
|---|---|---|---|
posts | CreatePostInput[] | yes |
#BatchCreatePostsResult
| Field | Type | Required | Description |
|---|---|---|---|
results | object[] | yes |
#CostEstimate
| Field | Type | Required | Description |
|---|---|---|---|
unit | string | yes | |
amountMicros | integer | yes | |
currency | "USD" | yes | |
billedBy | "postbroad" or "third_party" | yes |
#CreatePostDryRun
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "createPost" | yes |
#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[] | no | |
variants | VariantInput[] | no | |
destinations | DestinationInput[] | no | |
scheduledAt | string (date-time) or null | no | |
tags | string[] | no |
#CreatePostTemplateDryRun
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "createPostTemplate" | yes |
#CreatePostTemplateInput
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
content | PostTemplateContent | yes | What a template fills a new draft with: no time, state or history. |
#CreatePostsBatchDryRun
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "createPostsBatch" | yes |
#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
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "deletePost" | yes |
#DeletePostResult
| Field | Type | Required | Description |
|---|---|---|---|
postId | string (uuid) | yes | |
status | "deleted" or "draining" | yes | |
alreadyDispatching | DispatchingRef[] | yes |
#DeletePostTemplateDryRun
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "deletePostTemplate" | yes |
#DeletePostTemplateResult
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | |
deleted | true | yes |
#DeliveryState
Type: "pending" or "scheduled" or "needs_reconnect" or "sending" or "accepted" or "processing" or "published" or "failed" or "unknown" or "cancelled"
#DeliveryStatus
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | |
postId | string (uuid) | yes | |
brandId | string (uuid) | yes | |
channelId | string (uuid) | yes | |
network | Network | yes | |
account | object | yes | |
destination | object | yes | |
versionNo | integer | yes | |
currentVersionNo | integer | yes | |
state | DeliveryState | yes | |
scheduledAt | string (date-time) or null | yes | |
dispatchAt | string (date-time) or null | yes | |
deferral | object or null | yes | |
verificationLevel | VerificationLevel | yes | |
evidenceMethod | 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 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 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 or null | no |
#DestinationInput
| Field | Type | Required | Description |
|---|---|---|---|
channelId | string (uuid) | yes | |
scheduledAt | string (date-time) or null | no |
#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
| Field | Type | Required | Description |
|---|---|---|---|
deliveryId | string (uuid) | yes | |
channelId | string (uuid) | yes | |
network | Network | yes | |
handle | string or null | yes | |
state | 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 | yes | |
evidenceMethod | EvidenceMethod | yes |
#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
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "duplicatePost" | yes |
#DuplicatePostInput
| Field | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | no |
#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
Type: "none" or "provider_ack" or "status_endpoint" or "readback_match" or "public_fetch" or "human_confirmed"
#ExpectedRevisionInput
| Field | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | yes |
#LinkDraftInput
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes |
#LinkDrafts
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | |
title | string | yes | |
description | string | yes | |
imageUrl | string or null | yes | |
drafts | object[] | yes |
#MediaAttachment
| Field | Type | Required | Description |
|---|---|---|---|
assetId | string (uuid) | yes | |
altText | string or null | no |
#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
| Field | Type | Required | Description |
|---|---|---|---|
channelId | string (uuid) | yes | |
network | Network | yes | |
supported | boolean | yes | |
candidates | MentionCandidate[] | yes | |
note | string or null | yes |
#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
| Field | Type | Required | Description |
|---|---|---|---|
baseText | string | yes | |
media | PostAuthoringMedia[] | yes | |
variants | PostAuthoringVariant[] | yes | |
destinations | PostAuthoringDestination[] | yes |
#PostAuthoringDestination
| Field | Type | Required | Description |
|---|---|---|---|
channelId | string (uuid) | yes | |
scheduledAt | string (date-time) or null | yes |
#PostAuthoringMedia
| Field | Type | Required | Description |
|---|---|---|---|
assetId | string (uuid) | yes | |
altText | string or null | no |
#PostAuthoringVariant
| Field | Type | Required | Description |
|---|---|---|---|
network | Network | yes | |
channelId | string (uuid) or null | yes | |
text | string or null | yes | |
media | PostAuthoringMedia[] or null | yes | |
options | map of any | yes | |
threadParts | string[] | yes | |
firstComment | string or null | yes | |
aiLabel | boolean or null | yes |
#PostExportCsv
Type: string
#PostLinks
| Field | Type | Required | Description |
|---|---|---|---|
links | object[] | yes |
#PostPage
| Field | Type | Required | Description |
|---|---|---|---|
data | PostSummary[] | yes | |
nextCursor | string or null | yes |
#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
Type: "draft" or "in_review" or "approved" or "scheduled" or "cancelled"
#PostSummary
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | |
brandId | string (uuid) | yes | |
state | PostState | yes | |
versionNo | integer | yes | |
excerpt | string | yes | |
thumbnail | SignedUrl or null | yes | |
scheduledAt | string (date-time) or null | yes | |
networks | Network[] | yes | |
tags | string[] | yes | |
rollup | PostRollup | yes | |
proof | DestinationProof[] | yes | |
authoredBy | AuthoredBy | no | |
updatedAt | string (date-time) | yes | |
revision | integer | yes |
#PostTemplate
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | |
brandId | string (uuid) | yes | |
name | string | yes | |
content | PostTemplateContentView | yes | |
createdBy | Actor | yes | |
createdAt | string (date-time) | yes | |
updatedAt | string (date-time) | yes | |
revision | integer | yes |
#PostTemplateContent
What a template fills a new draft with: no time, state or history.
| Field | Type | Required | Description |
|---|---|---|---|
baseText | string | no | |
media | MediaAttachment[] | no | |
variants | VariantInput[] | no | |
channelIds | string (uuid)[] | no | |
tags | string[] | no |
#PostTemplateContentView
| Field | Type | Required | Description |
|---|---|---|---|
baseText | string | yes | |
media | PostAuthoringMedia[] | yes | |
variants | PostAuthoringVariant[] | yes | |
channelIds | string (uuid)[] | yes | |
tags | string[] | yes |
#PostTemplateList
| Field | Type | Required | Description |
|---|---|---|---|
data | PostTemplate[] | yes |
#PostVersionPage
| Field | Type | Required | Description |
|---|---|---|---|
data | PostVersionSummary[] | yes | |
nextCursor | string or null | yes |
#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 | yes | |
authoredBy | AuthoredBy | no |
#PostVersionView
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | |
versionNo | integer | yes | |
contentHash | string | yes | |
baseText | string | yes | |
media | object[] | yes | |
variants | VariantView[] | yes | |
destinations | object[] | yes | |
authoring | PostAuthoring | no | |
createdAt | string (date-time) | yes | |
createdBy | Actor | yes | |
authoredBy | AuthoredBy | no |
#PostView
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | |
brandId | string (uuid) | yes | |
state | PostState | yes | |
scheduledAt | string (date-time) or null | yes | |
tags | string[] | yes | |
version | PostVersionView | yes | |
deliveries | DeliveryStatus[] | yes | |
rollup | PostRollup | yes | |
createdAt | string (date-time) | yes | |
createdBy | Actor | yes | |
authoredBy | AuthoredBy | no | |
updatedAt | string (date-time) | yes | |
revision | integer | yes | |
actions | object | no |
#PostWriteResult
| Field | Type | Required | Description |
|---|---|---|---|
post | PostView | yes | |
alreadyDispatching | DispatchingRef[] | yes | |
alreadyLive | DispatchingRef[] | yes |
#PreflightResult
Type: object
#PreviewDestination
| Field | Type | Required | Description |
|---|---|---|---|
channelId | string (uuid) | yes | |
network | Network | yes | |
handle | string or null | yes | |
scheduledAt | string (date-time) or null | yes | |
payloadHash | string | yes | |
payload | PreviewPayload | yes | What will be sent to one destination, from the frozen payload model. |
manualHandoff | object | no | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | CostEstimate[] | yes | |
verificationLevel | VerificationLevel | yes |
#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
| 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[] | yes | |
totalCost | CostEstimate[] | yes |
#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 | yes | |
detail | string | yes | |
requestId | string | yes | |
retryable | boolean | yes | |
errors | ProblemItem[] | no | |
preview | PreviewResult | no | |
currentRevision | integer | no | |
alreadyDispatching | DispatchingRef[] | no | |
limit | object | no | |
retryAfterSeconds | integer | no |
#ProblemItem
| Field | Type | Required | Description |
|---|---|---|---|
path | string | yes | |
rule | string | yes | |
message | string | yes | |
channelId | string (uuid) or null | no |
#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 | yes | |
finishedAt | string (date-time) or null | yes | |
error | object or null | yes |
#RestorePostVersionDryRun
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "restorePostVersion" | yes |
#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
Type: object[]
#UpdatePostDryRun
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "updatePost" | yes |
#UpdatePostInput
| Field | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | yes | |
autosave | boolean | no | |
baseText | string | no | |
media | MediaAttachment[] | no | |
variants | VariantInput[] | no | |
destinations | DestinationInput[] | no | |
scheduledAt | string (date-time) or null | no | |
tags | string[] | no |
#UpdatePostTemplateDryRun
| Field | Type | Required | Description |
|---|---|---|---|
resources | object[] | yes | |
effects | object[] | yes | |
content | object[] | yes | |
details | object[] | yes | |
preflight | PreflightResult | yes | |
pendingChecks | string[] | yes | |
cost | object | yes | |
operationId | "updatePostTemplate" | yes |
#UpdatePostTemplateInput
| Field | Type | Required | Description |
|---|---|---|---|
expectedRevision | integer | yes | |
name | string | no | |
content | PostTemplateContent | no | What a template fills a new draft with: no time, state or history. |
#VariantInput
| Field | Type | Required | Description |
|---|---|---|---|
network | Network | yes | |
channelId | string (uuid) or null | no | |
text | string or null | no | |
media | MediaAttachment[] or null | no | |
options | map of any | no | |
threadParts | string[] | no | |
firstComment | string or null | no | |
aiLabel | boolean or null | no |
#VariantView
| Field | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | yes | |
network | 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
Type: "full" or "url_only" or "accepted_no_readback" or "manual"
#VersionDiff
| Field | Type | Required | Description |
|---|---|---|---|
from | integer | yes | |
to | integer | yes | |
baseText | TextDiff | yes | |
media | object | yes | |
variants | object[] | yes | |
destinations | object | yes |
Last generated 23 Nov 2026, from the contracts the API runs on.