How to schedule social media posts with the Postmate REST API

Use the Postmate public API to list channels, upload media and create, list or delete scheduled posts. Base URL, auth header, JSON body and curl example.

Updated

Send requests to https://getpostmate.com/api/public/v1 with your API key in the Authorization header, with no "Bearer" prefix. Get your channel IDs from GET /integrations, then create a post with POST /posts and a JSON body that names the channels, the date and the content. The same endpoints list and delete posts and upload media.

Get your API key

Open Settings > Connections. The Agents section shows the API key with Reveal, Copy and "Rotate Key" buttons. API access comes with every plan. The key belongs to the workspace, not to one person.

curl https://getpostmate.com/api/public/v1/integrations \
  -H "Authorization: YOUR_API_KEY"
The REST API takes the key on its own: "Authorization: YOUR_API_KEY". The MCP server is the one that expects "Bearer YOUR_API_KEY". Sending Bearer to the REST API returns "Invalid API key".

Main endpoints

Method and pathWhat it does
GET /integrationsLists your channels with id, name, identifier (the platform), picture, disabled and client. Add ?group=<id> to filter by client.
GET /groupsLists your clients (groups of channels).
GET /integration-settings/:idReturns a channel's rules, character limit and the settings its posts accept.
GET /find-slot/:idReturns the channel's next free posting time.
POST /uploadUploads a file as multipart form data, field name file.
POST /upload-from-urlUploads an image or video from a public https URL. Body: {"url": "..."}.
GET /mediaLists your media library, with ?page= and ?search=.
POST /postsCreates a draft, a scheduled post or a post that goes out now.
GET /postsLists posts between ?startDate= and ?endDate= (ISO 8601, both required).
PUT /posts/:id/statusMoves a post to draft or back to schedule. Body: {"status": "draft"}.
DELETE /posts/:idDeletes the post on its channel, with its replies and thread posts.

How do I create a scheduled post?

POST /posts takes one date and a list of posts, one per channel. Each post names the channel ID and its content. The first item in value is the post; any further items are replies or thread posts.

curl -X POST https://getpostmate.com/api/public/v1/posts \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "schedule",
    "date": "2026-12-01T09:00:00.000Z",
    "shortLink": false,
    "tags": [],
    "posts": [
      {
        "integration": { "id": "LINKEDIN_CHANNEL_ID" },
        "value": [
          { "content": "<p>We shipped CSV import today.</p>", "image": [] }
        ],
        "settings": {}
      },
      {
        "integration": { "id": "BLUESKY_CHANNEL_ID" },
        "value": [
          { "content": "<p>We shipped CSV import today.</p>", "image": [] }
        ],
        "settings": {}
      }
    ]
  }'
FieldRequiredNotes
typeYes"draft", "schedule" or "now".
dateYesISO 8601. Use UTC with a Z, as above. Required even for "now".
shortLinkYestrue shortens links in the text with your link settings.
tagsYesAn array, empty is fine. Each tag is {"value": "...", "label": "..."}.
posts[].integration.idYesThe channel id from GET /integrations.
posts[].value[].contentYesThe text, one <p> per line, the format the composer uses. Can be empty only when the item has media.
posts[].value[].imageYesAn array of {"id": "...", "path": "..."} from an upload. Empty array for no media.
posts[].settingsYesPlatform settings, {} when the platform needs none. GET /integration-settings/:id lists them.

Postmate checks every post with the same rules as the composer before it saves anything. A missing setting, an empty post or text over the character limit returns HTTP 400 with the channel and what to fix. Drafts skip the settings and length checks. The response lists each created post with its postId, its channel and awaitingApproval.

How do I attach an image or video?

  1. Upload the file with POST /upload (multipart, field file) or POST /upload-from-url with {"url": "https://example.com/photo.jpg"}.
  2. The URL must be public https and end in .png, .jpg, .jpeg, .gif, .webp or .mp4. Images can be up to 10 MB and videos up to 1 GB.
  3. Copy the id and path from the response into the image array of the post.

Media must come from a Postmate upload. Links to files hosted elsewhere are refused, so upload them first.

List and delete posts

curl "https://getpostmate.com/api/public/v1/posts?startDate=2026-12-01T00:00:00Z&endDate=2026-12-31T23:59:59Z" \
  -H "Authorization: YOUR_API_KEY"

curl -X DELETE https://getpostmate.com/api/public/v1/posts/POST_ID \
  -H "Authorization: YOUR_API_KEY"
DELETE /posts/:id deletes the post on its one channel, with its replies and thread posts. A post sent to several channels has a separate id on each channel, so delete each one. A deleted published post only leaves Postmate; it stays live on the network.

What is the API rate limit?

Creating posts is limited to 1,000 POST /posts requests per hour per workspace. Other endpoints are not counted. Over the limit you get HTTP 429; wait and try again. One request can hold posts for many channels, so send a post for all its channels in one request instead of one request per channel.

Approvals and plan limits apply to the API

  • If your workspace requires approval for posts from agents and the API, API posts are saved as drafts waiting for approval and the response says awaitingApproval: true. See approval workflow.
  • Posts to X count toward your monthly X allowance. See X post limits.
  • If you want an AI agent to do this instead of your own code, use MCP.

Questions

Do I use "Bearer" with the Postmate API key?

Not for the REST API: send "Authorization: YOUR_API_KEY". Only the MCP server at /mcp takes "Bearer YOUR_API_KEY".

Can one API request post to several channels?

Yes. Put one item per channel in posts. They all share the request date, and each item can have its own text and settings.

How do I find the settings a platform needs?

Call GET /integration-settings/:id with the channel id. It returns the settings schema, the character limit and the platform rules.

Is there a way to build the request body without writing it by hand?

Yes. "Open Wizard" next to the API key opens the composer, where you can build a post and copy the request it would send.

Your next post, on every channel.

Plans start at $19 a month after a 7-day free trial. Cancel during the trial and you pay nothing.

Start your 7-day free trial