Skip to content
DocsAssist

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.

EndpointWhat it doesScope
GET /v1/model-configurationsList the saved model configurationsany key
PUT /v1/model-configurationsSave the provider, model and key for an organization or a brandany key
GET /v1/model-configurations/{configurationId}Read one model configurationany key
POST /v1/brands/{brandId}/assistAsk the model to adapt text, draft from an article or learn a voicepost.draft
POST /v1/brands/{brandId}/assist/testSend a small test request with the saved keybrand.settings
GET /v1/brands/{brandId}/assist/{id}Read an assist request and its resultcontent.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

NameInRequiredTypeDescription
brandIdquerynostring (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
curl -X GET "https://app.postbroad.com/v1/model-configurations" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/model-configurations", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
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

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

FieldTypeRequiredDescription
provider"openai" or "anthropic" or "google" or "openrouter" or "openai-compatible"yes
modelstringyes
baseUrlstring (uri)no
brandIdstring (uuid) or nullyes
apiKeystringyes

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
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"
}'
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();
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

GET/v1/model-configurations/{configurationId}

Operation getModelConfiguration. Any API key of the organization may call it.

Parameters

NameInRequiredTypeDescription
configurationIdpathyesstring (uuid)

Response 200: ModelConfigurationView. Safe model configuration metadata

Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.

curl
curl -X GET "https://app.postbroad.com/v1/model-configurations/<configurationId>" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
const res = await fetch("https://app.postbroad.com/v1/model-configurations/<configurationId>", {
  headers: {
    Authorization: `Bearer ${process.env.POSTBROAD_TOKEN}`,
  },
});
const data = await res.json();
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

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

NameInRequiredTypeDescription
brandIdpathyesstring (uuid)

Request body: AssistInput

FieldTypeRequiredDescription
kind"adapt" or "article" or "voice" or "test" or "hashtags"yes
sourceTextstringno
sourceUrlstring (uri)no
channelIdsstring (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
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"
  ]
}'
TypeScript
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();
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

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

NameInRequiredTypeDescription
brandIdpathyesstring (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
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 '{}'
TypeScript
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();
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

GET/v1/brands/{brandId}/assist/{id}

Operation getAssistRequest. Needs a key with the scope content.read.

Parameters

NameInRequiredTypeDescription
brandIdpathyesstring (uuid)
idpathyesstring (uuid)

Response 200: AssistRequestView. The assist request

Errors: 401 unauthenticated, 403 forbidden, 404 not_found, 429 rate_limited, 500 internal.

curl
curl -X GET "https://app.postbroad.com/v1/brands/<brandId>/assist/<id>" \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"
TypeScript
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();
Response 200
{
  "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

FieldTypeRequiredDescription
kind"adapt" or "article" or "voice" or "test" or "hashtags"yes
sourceTextstringno
sourceUrlstring (uri)no
channelIdsstring (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.

FieldTypeRequiredDescription
idstring (uuid)yes
brandIdstring (uuid)yes
state"pending" or "running" or "succeeded" or "failed" or "unknown"yes
resultanyyes
errorCodestring or nullyes

#CostEstimate

FieldTypeRequiredDescription
unitstringyes
amountMicrosintegeryes
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.

FieldTypeRequiredDescription
deliveryIdstring (uuid)yes
channelIdstring (uuid)yes
state"sending" or "accepted" or "processing" or "published" or "unknown"yes
claimedAtstring (date-time) or nullyes
versionNointegeryes

#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

FieldTypeRequiredDescription
idstring (uuid)yes
brandIdstring (uuid) or nullyes
providerstringyes
modelstringyes
baseUrlstringyes
revisionintegeryes
hasKeybooleanyes

#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

FieldTypeRequiredDescription
channelIdstring (uuid)yes
networkNetworkyes
handlestring or nullyes
scheduledAtstring (date-time) or nullyes
payloadHashstringyes
payloadPreviewPayloadyesWhat will be sent to one destination, from the frozen payload model.
manualHandoffobjectno
preflightPreflightResultyes
pendingChecksstring[]yes
costCostEstimate[]yes
verificationLevelVerificationLevelyes

#PreviewPayload

What will be sent to one destination, from the frozen payload model.

FieldTypeRequiredDescription
v1yes
orgIdstring (uuid)yes
brandIdstring (uuid)yes
postVersionIdstring (uuid)yes
contentHashstringyes
variantIdstring (uuid)yes
channelIdstring (uuid)yes
networkstringyes
connectorVersionstringyes
destinationobjectyes
intendedVisibility"public" or "followers" or "private" or "draft" or "inbox" or "scheduled_native"yes
aiLabelbooleanyes
utmmap of stringyes
partsobject[]yes

#PreviewResult

FieldTypeRequiredDescription
receiptstringyes
expiresAtstring (date-time)yes
postIdstring (uuid)yes
versionNointegeryes
contentHashstringyes
mode"schedule" or "publish_now"yes
blockedbooleanyes
requiresReviewbooleanyes
destinationsPreviewDestination[]yes
totalCostCostEstimate[]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.

FieldTypeRequiredDescription
typestringyes
titlestringyes
statusintegeryes
codeErrorCodeyes
detailstringyes
requestIdstringyes
retryablebooleanyes
errorsProblemItem[]no
previewPreviewResultno
currentRevisionintegerno
alreadyDispatchingDispatchingRef[]no
limitobjectno
retryAfterSecondsintegerno

#ProblemItem

FieldTypeRequiredDescription
pathstringyes
rulestringyes
messagestringyes
channelIdstring (uuid) or nullno

#SaveModelConfigurationInput

FieldTypeRequiredDescription
provider"openai" or "anthropic" or "google" or "openrouter" or "openai-compatible"yes
modelstringyes
baseUrlstring (uri)no
brandIdstring (uuid) or nullyes
apiKeystringyes

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