> ## Documentation Index
> Fetch the complete documentation index at: https://docs.followr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> Status codes, error bodies, plan limits, and when to retry.

`2xx` means success, `4xx` means change the request, `5xx` means a problem on our side. Every error has a JSON body with a `message`.

## Status codes

| Status | Meaning | What to do |
| - | - | - |
| `200` | Success. | |
| `201` | Created. The new resource is in the response. | |
| `202` | Accepted. It finishes in the background (for example, publishing while media still downloads). | Follow the endpoint's notes, or use a [webhook](https://docs.followr.ai/webhooks/overview.md). |
| `204` | Success, nothing to return. | |
| `400` | Can't be handled as sent: unknown filter, sort or include, or an action that doesn't apply. | Fix the request. Don't retry unchanged. |
| `401` | Key missing, invalid or revoked. | See [Authentication](https://docs.followr.ai/authentication.md). |
| `402` | Not in the plan, or a plan limit is reached. | Read `entity`. See [Plan limits](#plan-limits-402). Retry after the plan changes or at `renews_at`. |
| `403` | The user's role doesn't allow it, or the account is suspended. | Use a key of a user with the right role. |
| `404` | Not found, deleted, or wrong path. | Check the ID and path. |
| `405` | The path doesn't take this method. | Check the method. |
| `409` | The social network connection behind this request expired. | Reconnect the account in the app, then retry. |
| `422` | Invalid fields. | Read `errors` and fix them. |
| `429` | Too many requests this minute. | Retry after `Retry-After` seconds. See [Rate limits](https://docs.followr.ai/api/rate-limits.md). |
| `500`, `502`, `503`, `504` | Problem on our side, or brief maintenance. | Retry a few times with exponential backoff. If it persists, [contact support](https://docs.followr.ai/support.md). |

> [!WARNING]
>
> Retrying a create after a timeout or `5xx` can create it twice: the first request may have worked. Before you retry, check whether it exists (for example, list with a filter on the title you sent).

## Error bodies

> [tab] General
>
> ```json theme={null}
> {
>   "message": "This action is unauthorized."
> }
> ```
>
> `message` is for people and may change. Branch on the status code (and `entity` for `402`), never on the text.

> [tab] Validation (422)
>
> ```json theme={null}
> {
>   "message": "The social network types field is required. (and 1 more error)",
>   "errors": {
>     "social_network_types": ["The social network types field is required."],
>     "rows.3.content": ["The rows.3.content field is required."]
>   }
> }
> ```
>
> `errors` is keyed by field, with one or more messages each. Fields in arrays use dots and the index: `rows.3.content`.

> [tab] Plan limit (402)
>
> ```json theme={null}
> {
>   "entity": "api_posts",
>   "message": "The monthly limit of 1,500 API posts of this plan is reached: 1,498 used and this request needs 3. It starts again on 2026-12-14. Posts can still be scheduled and published in the app.",
>   "limit": 1500,
>   "used": 1498,
>   "needed": 3,
>   "renews_at": "2026-12-14T00:00:00+00:00"
> }
> ```
>
> See [Plan limits](#plan-limits-402) below.

## Plan limits (402)

| Field | Meaning |
| - | - |
| `entity` | What the plan is missing or has used up (table below). |
| `message` | What happened and what to do, ready to show to a person. |
| `feature` | When a whole feature isn't in the plan, for example `music`. |
| `limit`, `used`, `needed` | The ceiling, what is used this period, and what this request needed. |
| `renews_at` | When the count starts again (ISO 8601). |

| `entity` | Meaning |
| - | - |
| `api` | The plan behind the key doesn't include the API, or no longer backs this key. |
| `api_keys` | All the plan's API keys are in use. Revoke one to create another. |
| `api_posts` | The plan's monthly API posts are used up. |
| `api_user_management` | Managing team members through the API isn't in the plan. |
| `api_inbox` | The social inbox through the API isn't in the plan. |
| `api_network_proxy` | Direct calls to a social network through the API aren't in the plan. |
| `companies` | The plan's number of companies is reached. |
| `users` | The plan's number of team members is reached. |
| `words` | AI words for the period are used up. |
| `images` | Not enough media credits for this generation. |
| `premium_images` | Premium media generations are used up. |
| `bytes` | Storage is full. |
| `music` | AI music isn't in the plan. |

New values may appear: when you don't know an `entity`, show `message`. To check balances before you hit a limit, see [Plans and usage](https://docs.followr.ai/api/plans-and-usage.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.