Guides
Errors and rate limits
Errors are JSON with a message you can show to people. Limits are generous and per workspace.
https://app.brokenpost.com/api/public/v1Status codes
| Code | Meaning |
|---|---|
200 / 201 | Done. |
400 | The request or the post is not valid. The body says why. |
401 | Missing or wrong API key. Running a channel tool on a channel that needs to be reconnected also returns 401. |
402 | Your plan does not include this (for example more posts this month on Free), or the workspace is out of AI credits. |
404 | Not found in your workspace. |
429 | Too many requests. Wait and try again. |
Rate limits
- Creating posts: 90 requests per hour per workspace. One request can hold many channels, so batch them.
- Everything else: no fixed limit, but keep it reasonable; we may slow down abusive traffic.
AI credits
AI writing and posts to X use AI credits. Each X post (and each part of an X thread) costs 15 credits. X posts drop links unless you set keep_links: true in the X settings; a post that keeps its links costs 200 credits.
Paid plans get credits every month. Free workspaces get a one-time grant. Anyone can buy credit packs in Billing.
When the workspace runs out, the request fails with 402 and "section": "ai_credits". See what used them in Billing → Usage.
Retries
Retry 429 and 5xx with a growing wait (1s, 2s, 4s…). Never retry a 400 unchanged; fix the post first.