Automate your content: create drafts with the Postard REST API

For developers and automation tools: create an API key, send drafts from a script or an automation tool, and review them in Postard.

Updated Steps checked in the app on 3 min readWatch the video

Watch it first: a 41-second walkthrough in the app, with a voice-over and captions. It follows the steps below.

If your ideas already live somewhere else, such as a spreadsheet, a notes app or a website feed, you can send them to Postard as drafts automatically. This guide is for developers, or for anyone using an automation tool such as Zapier, Make or n8n that can send web requests. You need a workspace API key; creating one takes a minute and needs no code. Sending drafts then needs a short script or the web-request step of your automation tool.

A key saves drafts. It never publishes.

A workspace API key can read your workspace, drafts, profiles and their saved follower counts, and save new text drafts. Use the draft’s composer link to review and schedule it in Postard.

Before you start

  • Your role: workspace owner or admin.
  • Early access, a trial or a plan. API keys need one of them on the workspace, so they don’t work in the practice workspace. Without one the page says “API keys and AI assistants require early access, a trial, or an active plan.” with a Check your early access link.
  • How many keys: Solo 1, Creator 5 (early access uses Creator), Agency unlimited.

Create an API key

  1. Open API & AI

    Choose API & AI in the sidebar and stay on the API keys tab.

    The API & AI page on the API keys tab with a Key name field, an Allow saving text drafts checkbox and a Create API key button.
  2. Name it and allow drafts

    Type a Key name such as “My automation”, tick Allow saving text drafts, and choose Create API key. Without that tick the key can only read.

  3. Copy the secret now

    Postard shows the key once, starting with psk_. Choose Copy key and keep it somewhere safe, such as a password manager or your automation tool’s secret settings. Postard can’t show it again.

Send your first draft

You need your workspace ID: it’s the long code after /app/ in your browser’s address bar when you’re in the workspace. Then send this request, replacing the three values that start with $:

Shell · Create a draft
curl --request POST \
  "https://api.postard.app/v1/workspaces/$WORKSPACE_ID/drafts" \
  --header "Authorization: Bearer $POSTARD_API_KEY" \
  --header "Idempotency-Key: $REQUEST_UUID" \
  --header "Content-Type: application/json" \
  --data '{"title":"A fresh perspective","content":"One useful idea."}'
  • $WORKSPACE_ID is your workspace ID, $POSTARD_API_KEY your key.
  • $REQUEST_UUID is a new random ID (a UUID) for each draft. Automation tools usually have a “random UUID” helper; in a terminal, uuidgen makes one. If a request fails and you send the same draft again with the same ID, Postard doesn’t create a duplicate. A draft request without it is refused.
  • The title can be up to 120 characters and the content up to 10,000.
The same request in an automation tool’s web-request step
SettingValue
MethodPOST
URLhttps://api.postard.app/v1/workspaces/<your workspace ID>/drafts
HeadersAuthorization: Bearer <your API key>, Idempotency-Key: <a new random UUID>, Content-Type: application/json
Body (JSON){"title": "A fresh perspective", "content": "One useful idea."}

A successful request answers with the new draft. Open Posts → Drafts and it’s there, ready to review and turn into a post with Use in a post.

The draftbook showing the draft “A fresh perspective” created through the API.

Limits

API allowances by plan
PlanAPI keysSuccessful calls a monthCalls a minute
Solo1100,000600
Creator5500,0001,800
AgencyUnlimitedUnlimited6,000

Only successful calls count, and the monthly count resets on the 1st at 00:00 UTC. If you hit a limit, Postard answers with status 429 and tells you when to try again. There are no overage charges. Usage & metrics on the API & AI page shows what you’ve used.

Keep your key safe

  • Never put a key in a public website, a shared document or a support email.
  • If a key may have leaked, choose Revoke next to it. Postard doesn’t ask you to confirm: the key stops working at once, for good. Then create a new one.
  • A key belongs to the workspace and keeps working only while the person who created it is still an owner or admin there.

Developers can find every endpoint in the REST API reference and more about keys in authentication and API keys. Prefer to work through an AI assistant? See connect Claude, ChatGPT or Cursor with MCP.

Did this guide help you?