Skip to content
DocsAuthentication

Authentication

Every call to the API goes to https://app.postbroad.com/v1 and carries an API key in the Authorization header. Agents that use the MCP server sign in in the browser instead; see MCP and agents below.

Shell
curl https://app.postbroad.com/v1/brands \
  -H "Authorization: Bearer $POSTBROAD_TOKEN"

#Make an API key

Keys are made and revoked only by a person signed in to the app, under Settings, API. A key, an agent or a connected app can never make another key, whatever it is allowed to do.

The key looks like prk_<organization>.<id>.<secret>. It is shown once, when it is made, and Postbroad keeps only a hash of it, so store it in your secret manager straight away. If it is lost, make a new one and revoke the old one.

#What a key may do

A key belongs to one organization and acts inside it only. When you make it you choose:

SettingMeaning
Kindpersonal acts as you, narrowed by the settings below. service holds only the scopes you list and keeps working when people leave.
ScopesWhat the key may do, from the list below. Empty on a personal key means everything you can do. A key never carries a scope its creator lacks.
BrandsThe brands the key may touch. Empty means every brand you reach.
Read onlyRefuses every write, whatever the scopes say.
IP allowlistSingle addresses or CIDR blocks. Empty allows every address.
Expiry90 days unless you choose another date or no expiry.

Give each integration its own key with the fewest scopes and brands it needs. Then one leaked key can do little, and revoking it stops one integration only. A key has no Approve or Autopilot mode: those are the modes of an agent, and a key never approves a post.

#Scopes

The scopes a key can hold, 25 in all. A route without a scope can be called by any key of the organization, within the key's brands.

ScopeOperationsFor example
analytics.export4Queue a CSV or JSON export of brand metrics
analytics.read2Matching posts ordered by scheduled time or verified network results
audit.read6Check a bounded snapshot of the organization audit chain
brand.create3Create a brand
brand.manage3Change a brand's settings, voice or rules
brand.settings4Connect a link shortener to the brand, or change it
channel.manage2Rename a channel or choose its preferred connection
connection.manage10Register an own app; the secret is write-only
content.read19List the signed-in member's MCP grants
extension.post5The browser extension checks in
media.manage3Change alt text, folder or tags
media.upload5Start an upload: a pending session (1 h) and where to send the bytes
org.delete2The Owner hands the organization to another member and becomes an Admin
org.manage1Rename the organization or change its kind (labels and sidebar only)
post.approve2Record an eligible human review decision
post.create4Find accounts, roles or pages a post to this channel can tag
post.delete1Delete a post that has not gone out; unsent destinations are cancelled first
post.delete_remote1Delete a sent post from its network; this cannot be undone
post.draft5Read an article once and draft a post for each of the brand's networks
post.edit2Edit a post; a scheduled post gets a new version
post.publish7Publish now with a preview receipt made in publish_now mode
post.schedule13Effective payload, preflight and cost per destination, with a signed receipt
post.submit1Revoke a review link and its browser sessions
token.manage1Create an API key; the secret is in this answer only
webhook.manage10List webhook endpoints

The scope each endpoint needs is in the Scope column of the API reference.

#Answers when it fails

StatusCodeMeaning
401unauthenticatedNo key, a malformed key, or a key that is revoked or expired.
403forbiddenThe key is valid but may not do this: a missing scope, a brand outside its list, or a read only key on a write.
404not_foundThe object does not exist, or it belongs to a brand or organization the key cannot see. Postbroad does not say which.

Every error is application/problem+json; the error catalogue lists every code.

#Headers you send

HeaderWhenMeaning
Authorization: Bearer <key>every callThe API key.
Idempotency-KeywritesA unique value per intended action. Repeating a call with the same key returns the first answer, so a retry never creates a second post.
Postbroad-VersionoptionalPins the API version. See versioning.
If-None-Matchoptional, readsReturns 304 Not Modified when the object has not changed.

Every answer carries a Request-Id header. Quote it when you contact support. How keys are stored is on the security page.

#Revoke a key

Revoke a key in Settings, API. The next call with it answers 401. Revoking does not touch posts the key already made or scheduled.

#MCP and agents

An agent connected through the MCP server signs in in the browser and gets a grant for the brands the person picks, not a key. The person sees and ends every grant in the app, and DELETE /v1/mcp/grants/{grantId} ends one through the API. Limits per key are on the rate limits page.

Last generated 23 Nov 2026, from the contracts the API runs on.