# payload_too_large (/errors/payload_too_large)

| HTTP status | Type | Code |
| --- | --- | --- |
| 413 | `invalid_request_error` | `payload_too_large` |

## What it means [#what-it-means]

The body or uploaded file is larger than this endpoint accepts. Send a smaller payload or split it into several requests.

## How to handle it [#how-to-handle-it]

Fix the request before sending it again; retrying the same request returns the same error. `error.param` names the offending field when there is one.

## Example response [#example-response]

```json
{
  "detail": "The request body is too large.",
  "error": {
    "type": "invalid_request_error",
    "code": "payload_too_large",
    "message": "The request body is too large.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/payload_too_large",
    "requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
  }
}
```

Branch on `error.code`; it never changes once published. The `message` text can change. See [Errors](/errors) for the envelope.

## Returned by [#returned-by]

- `POST /api/v1/agents/` — Create an agent
- `POST /api/v1/agents/import` — Import an agent from another platform
- `PATCH /api/v1/agents/{agent_id}` — Update an agent