Skip to main content
Each page in this section covers one endpoint. This page has the rules they all share. New to the API? Start with the quickstart.

Base URL

Every path in this reference is relative to it, except Upload a file, which uses https://upload.postsyncer.com/api/v1 with the same key. v1 is the only version.

Authentication

Send your API key as a Bearer token on every request:
Make keys in Settings → API. Each endpoint needs one resource:action permission, such as posts:read, and its page names it. Authentication lists every permission. A missing or wrong key answers 401:
401
A key without the endpoint’s permission answers 403:
403

Requests

  • Send JSON bodies with Content-Type: application/json. File uploads use multipart/form-data.
  • Every answer is JSON, whether or not you send an Accept header.
  • Ids are integers.
  • Post times you send and get back are Y-m-d H:i in the workspace’s timezone, such as 2030-03-15 09:00. Other timestamps in answers, such as a comment’s created_at, are ISO 8601.
  • Send schedule_type in lowercase: draft, schedule or publish_now. Statuses come back in uppercase, such as SCHEDULED.

Responses

  • One item answers as a plain object, such as GET /posts/{id}.
  • Lists that aren’t paged answer as a plain array, for example GET /workspaces, GET /accounts, GET /labels, GET /campaigns, GET /snippets, GET /folders and GET /webhooks.
  • Paged lists put the items in data and the page details next to them, for example GET /posts, GET /media and GET /comments. Pagination shows each shape and a loop that reads every page.

Errors

Every error answer has a message you can show to a person. Some add an error code or more fields:
422
Error handling lists every error code and when to try again, and the other answers you can get: 402 (not enough AI credits), 500 and 503.

Limits

You can make 60 requests a minute: Rate limits has the headers and what a 429 means. Your plan sets how many accounts you connect and posts you send a month: Plan limits has what the Free plan includes, what needs a paid plan, and the answer over a limit.