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

> ## Agent Instructions
> Postploy's MCP server for posting is https://api.postploy.com/mcp and signs in with OAuth. The REST API base URL is https://api.postploy.com/public/v1 and takes an API key as a Bearer token. The API calls channels accounts.

# Errors

> What each error means and what to do about it.

When a request fails, the status code says what kind of problem it is. The body says what went wrong in plain words.

```json theme={null}
{
  "statusCode": 400,
  "message": "Scheduled date and time must be in the future",
  "errors": [
    {
      "message": "Scheduled date and time must be in the future",
      "path": ["posts", 0, "scheduledAt"],
      "cause": "custom"
    }
  ],
  "timestamp": "2030-01-10T12:00:00.000Z",
  "route": "/public/v1/posts"
}
```

* `message` is the first problem. It's written for people, so you can show it in your app as it is.
* `errors` lists every problem, each with a `path` to where it is, using the field names you send. `["posts", 1, "mediaIds", 0]` is the first file of the second post. `errors` is `null` when there's only the one `message`.

## Status codes

| Code | What it means | What to do |
| - | - | - |
| `400` | The request is invalid, or a post breaks its platform's rules. | Fix what `errors` lists, then send it again. |
| `401` | The API key is missing, unknown or deleted. | Check the `Authorization` header. Create a new key if you need one. |
| `403` | Your role doesn't allow this, your team doesn't have a plan, or you've reached your plan's post limit. | Ask an owner or admin, or see [Plan limits](#plan-limits). |
| `404` | It doesn't exist, or you can't see it, for example a post on a channel you don't have. | Check the id. |
| `409` | The post can't change right now. It's being published, it's already published, or it isn't waiting for approval. | Read the post again to see where it is. |
| `429` | More than 120 requests a minute to one endpoint. | Wait the number of seconds in the `Retry-After-caller` header, then try again. |
| `5xx` | Something went wrong at Postploy. | Try again in a moment. If it keeps happening, email [support@postploy.com](mailto:support@postploy.com). |

## Plan limits

Each plan includes a number of posts a month. A request that would go over it gets `403`, and each item in `errors` has a `code`:

* `PLATFORM_LIMIT_REACHED`: the limit for one platform, named in `platform`.
* `TOTAL_LIMIT_REACHED`: the limit for all posts.

The `message` says how many posts are left and when the count starts again. [Compare plans](https://postploy.com/pricing).

A team without a plan can't create posts. Those requests get `403` too, until an owner or admin picks a plan in Plan & billing.

## Retrying safely

Reading is always safe to retry. Creating isn't, because a request that timed out may still have worked. Before you send a create again, [list your recent posts](https://docs.postploy.com/api-reference/posts/list-posts.md) to check whether it went through. Otherwise the post could go out twice.


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