Skip to Content
CallMitraDocs
Errors

payload_too_large

The request body is too large.

HTTP statusTypeCode
413invalid_request_errorpayload_too_large

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

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

{
  "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 for the envelope.

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

On this page