DEVELOPER API

Your dashboard,
two headers away.

A JSON REST API where every request carries a key and the brand it acts on.

Draft, schedule, publish, reschedule, upload media, and read analytics across eight networks. The key holds exactly the permissions of the person who made it, which is the part most APIs get wrong.

/api/public/v1

Real endpoints

Confirm which organization, brand, and user a key resolves to.

REQUIRESbrands:read

curl $API/me \
  -H "Authorization: Bearer pst_live_..." \
  -H "x-brand-id: $BRAND_ID"
RESPONSE
{
  "organization": { "id": "org_...", "name": "Acme Inc" },
  "brand": { "id": "brand_...", "name": "Acme" },
  "user": { "id": "usr_...", "email": "you@acme.com" }
}

Successful calls return the resource itself, with no wrapper envelope. The full reference carries every endpoint and its parameters.

WHAT A REQUEST CARRIES

Two headers, and one of them is a brand.

An account can hold several brands, so a key alone is not enough to say what a request means. Every call names the brand it acts on.

  1. POST /posts401API_KEY_REQUIRED

    This endpoint requires an API key. Send it as `Authorization: Bearer pst_...`.

  2. + Authorization: Bearer pst_live_...400BRAND_ID_REQUIRED

    Public API requests must include an x-brand-id header.

  3. + x-brand-id: brand_...403INSUFFICIENT_SCOPE

    This API key is missing the required scope: posts:write

  4. + a key whose owner can publish200

    One post id per account you targeted.

Every refusal carries a stable code beside its message, so a client branches on a constant rather than parsing prose.

Scopes

Each route declares the one it needs.

posts:readList and read posts
posts:writeCreate, schedule, reschedule, and delete
media:writeUpload files and remote URLs
analytics:readRead profile and post analytics
brands:readList brands and read account context
mcp:useDrive the MCP server with the same key

Refusals

A stable code beside every message.

401API_KEY_REQUIREDNo bearer token on the request
401INVALID_API_KEYThe key is unknown or has been rotated away
400BRAND_ID_REQUIREDNo x-brand-id header
403BRAND_ORG_MISMATCHThat brand is not in this key’s organization
403INSUFFICIENT_SCOPEThe route needs a scope the key lacks
403API_KEY_OWNER_DEACTIVATEDThe person who made the key is no longer active
402The upload would pass your storage allowance
429Throttled for this key

ONE CALL, EVERY ACCOUNT

The differences between networks survive the trip.

Add an entry to posts[] for each account you are targeting. Each one keeps its own content and its own settings, and comes back with its own post id.

ONE REQUEST BODY

{
  "type": "schedule",
  "date": "2026-09-01T14:30:00Z",
  "posts": [
    { "integration": { "id": "..." },
      "value": [{ "content": "..." }],
      "settings": { "__type": "x" } },
    { "integration": { "id": "..." },
      "value": [{ "content": "..." }],
      "settings": { "__type": "instagram",
                    "post_type": "post" } },
    { "integration": { "id": "..." },
      "value": [{ "content": "..." }],
      "settings": { "__type": "youtube",
                    "title": "...", "type": "public" } }
  ]
}

ONE RESULT PER ACCOUNT

  • Xpost_7f2ano extra fields
  • Instagrampost_7f2bpost_type: "post"
  • YouTubepost_7f2ctitle, type: "public"

Each entry keeps the fields only its network has. Nothing is flattened to the set they all share.

Illustration using the documented request shape. Ids are made up.

THE KEY IS A PERSON

Not a way around your own rules.

An API key is usually the one credential that outranks every role you set up. This one does not, by construction.

It runs as whoever made it

Requests resolve to that person and their role. A key made by someone who cannot publish still cannot publish, through the API or anywhere else.

It dies with their account

Deactivate the person and every request on their key is refused, without anyone hunting for which integrations to turn off.

Rotation is immediate and total

Rotating mints a new key and the old one stops at once, including any app, MCP client, or URL still carrying it.

Routes fail closed

A public route that does not declare the scope it needs refuses to serve traffic rather than defaulting to open.

The same key drives the MCP server.

Settings holds one personal key for both surfaces. Point an MCP client at it and Claude or Codex works the same account and the same brands, with nothing new to provision.

See the MCP server

Zero to a scheduled post in a few minutes.

The getting-started guide walks the whole path: reveal a key, confirm it with /me, upload an image, and schedule the post. A live OpenAPI reference is served from the API itself.

Start building

A LITTLE MORE CLARITY

Before you wire
anything up.

Keys, scopes, brands, and what happens when a call is refused.

How do I authenticate?

Two headers on every request. Authorization carries your key as a bearer token, and x-brand-id names the brand the request acts on. A call to GET /me confirms which organization, brand, and user the key resolves to.

Where do I get a key?

Settings has one personal key that serves both the REST API and the MCP server. You can reveal it, copy it, and rotate it. Rotating takes effect immediately, so anything still using the old key stops working.

Can an API key do more than I can?

No. Requests run as the person who created the key and inherit their role, so a key made by someone who cannot publish still cannot publish. Deactivate that person and the key stops working.

What do the scopes do?

Each route declares the scope it needs: posts:read, posts:write, media:write, analytics:read, brands:read, or mcp:use. A request without that scope is refused with a 403 naming the scope it was missing.

Can one call post to several accounts?

Yes. Add an entry to posts[] for each connected account, each with its own content and its own settings.__type. The response comes back with one post id per account.

Are there rate limits?

Traffic is throttled per API key, and going over returns 429. The reference documentation carries the current numbers.

ONE KEY, TWO HEADERS

Build on the account you already use.

Join the waitlist for a REST API that reaches eight networks from one endpoint, under the permissions you already set.

No spam. We'll only email you about early access.

We will email you about early access. Joining does not start a subscription.

Browse worked examples

Ready to get started?

Grow your social media presence with Postally. Schedule, analyze, and engage with your audience.

Join the waitlist