Base URL
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:resource:action permission, such as posts:read, and its page names it. Authentication lists every permission.
A missing or wrong key answers 401:
401
403:
403
Requests
- Send JSON bodies with
Content-Type: application/json. File uploads usemultipart/form-data. - Every answer is JSON, whether or not you send an
Acceptheader. - Ids are integers.
- Post times you send and get back are
Y-m-d H:iin the workspace’s timezone, such as2030-03-15 09:00. Other timestamps in answers, such as a comment’screated_at, are ISO 8601. - Send
schedule_typein lowercase:draft,scheduleorpublish_now. Statuses come back in uppercase, such asSCHEDULED.
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 /foldersandGET /webhooks. - Paged lists put the items in
dataand the page details next to them, for exampleGET /posts,GET /mediaandGET /comments. Pagination shows each shape and a loop that reads every page.
Errors
Every error answer has amessage you can show to a person. Some add an error code or more fields:
422
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 a429 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.