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 first.
Every call goes to https://app.postbroad.com; see Authentication and the error catalogue.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/model-configurations | List the saved model configurations | any key |
PUT /v1/model-configurations | Save the provider, model and key for an organization or a brand | any key |
GET /v1/model-configurations/{configurationId} | Read one model configuration | any key |
POST /v1/brands/{brandId}/assist | Ask the model to adapt text, draft from an article or learn a voice | post.draft |
POST /v1/brands/{brandId}/assist/test | Send a small test request with the saved key | brand.settings |
GET /v1/brands/{brandId}/assist/{id} | Read an assist request and its result | content.read |
#Operations
#List the saved model configurations
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. Safe model configuration metadata
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/model-configurations" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/model-configurations", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();[
{
"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
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
| 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. Safe model configuration metadata
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 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"
}'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();{
"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
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. Safe model configuration metadata
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/model-configurations/<configurationId>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/model-configurations/<configurationId>", {
headers: {
Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
},
});
const data = await res.json();{
"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
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
| 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. The durable assist request
Errors: 400 bad_request, 400 idempotency_key_required, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 conflict, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
curl -X POST "https://app.postbroad.com/v1/brands/<brandId>/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"
]
}'const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/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();{
"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
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
Response 202: AssistRequestView. The durable assist request
Errors: 400 bad_request, 400 idempotency_key_required, 401 unauthenticated, 403 forbidden, 404 not_found, 409 request_in_progress, 409 conflict, 422 validation_failed, 422 idempotency_key_reused, 429 rate_limited, 500 internal.
curl -X POST "https://app.postbroad.com/v1/brands/<brandId>/assist/test" \
-H "Authorization: Bearer $POSTBROAD_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/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();{
"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
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. The assist request
Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.
curl -X GET "https://app.postbroad.com/v1/brands/<brandId>/assist/<id>" \
-H "Authorization: Bearer $POSTBROAD_TOKEN"const res = await fetch("https://app.postbroad.com/v1/brands/<brandId>/assist/<id>", {
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": "pending",
"result": "string",
"errorCode": "string"
}Schemas
Every type the operations above use
#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
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
| Field | Type | Required | Description |
|---|---|---|---|
unit | string | yes | |
amountMicros | integer | yes | |
currency | "USD" | yes | |
billedBy | "postbroad" or "third_party" | yes |
#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
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
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
Type: ModelConfigurationView[]
#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
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
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 |
#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
Type: object
#VerificationLevel
Type: "full" or "url_only" or "accepted_no_readback" or "manual"
Last generated 21 Nov 2026, from the contracts the API runs on.