payload_too_large
The request body exceeds the accepted size: 1 MB as a rule, 6 MB on the endpoints that accept files.
| Code | Type | HTTP | Category |
|---|---|---|---|
payload_too_large | invalid_request_error | 413 | Request |
Cause
The request body exceeds the accepted size: 1 MB as a rule, 6 MB on the endpoints that accept files.
What to do
Split the operation into smaller requests, or compress the attachment before sending it.
Message returned by the API
The payload exceeds the 1 MB limit.
Related
All Request error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.