Rate limits
The posting limit counts requests, not posts. One request can carry many channels and a whole thread and counts once, so put the posts of one run in one request instead of sending them one by one. The limit does not depend on the plan, and no plan has a monthly post limit.
What counts:
- Every request that gets past the key check, including one refused with
400for a missing setting or a post that is too long. A client that retries a refused post in a loop uses up the hour. A401does not count. - Only
POST /postsamong the post routes. Listing and deleting posts, and changing a post’s status or settings, have no limit. - An hour from the first request. The count starts with the first request and starts again an hour later. The request that goes over the limit starts a block of one hour: until it ends, every request to that endpoint answers
429.
Reading the headers
Each answer from a limited endpoint says where you stand:
Over the limit, the endpoint answers
429 with a Retry-After header, in seconds:
Status codes
There is no
403 on this API. A post, channel or file of another workspace is not forbidden, it is invisible: it answers like an id that does not exist.
401 messages
Error bodies
The body of an error has one of four shapes. Read the status code first, then whichever ofmsg or message is present.
- Validation
- A network's rule
- msg
- Payment
A field is missing or has the wrong type.
message lists every problem:When a 500 comes from the network
A post, channel or media id that is not in your workspace does not answer500, and neither does an unknown video generator. DELETE /integrations/{id} answers 404 Channel not found, POST /video/function answers 404 Video generator <id> not found, and the other endpoints answer 404, 400 or an empty result, as their pages say. Two endpoints answer 500 when the network, not PostQueen, refuses the call. Retrying the same request will not help:
Any other
500 is an error on PostQueen’s side. Retry it after a short wait, a few times, waiting longer each time. If it keeps failing, write to support@postqueen.ai with the endpoint, the time and the answer.
Deleting twice
DELETE /posts/{id} answers 404 Post not found for a post that is already deleted, so a client that retries deletes can treat that 404 as done. DELETE /integrations/{id} answers 404 Channel not found for a channel that is already deleted, which a client can treat as done too. DELETE /posts/group/{group} answers 200 whether or not the group existed.
Next steps
Schedule a post with the API
From listing your channels to checking that the post went out.
Create a post
One request for many channels and a whole thread, counted once.
Upload a file
What it accepts, and why a video waits for processing.
OAuth apps
Tokens for products other workspaces sign in to.