Skip to content

Payload Too Large

URI: https://docs.ankatech.co/errors/payload-too-large
HTTP Status: 413 Payload Too Large

When you see this

The server is unwilling or unable to process the request because the payload exceeds size limits enforced by the API.

Common Causes

  • You uploaded a file (certificate, JWK JSON, or PKCS#12) that is larger than the maximum allowed size.
  • Your JSON body is excessively large (deeply nested objects or huge arrays).
  • You attempted to stream data in a single request beyond the configured limit.

How to Resolve

  1. Check the response detail message for the configured size limit.
  2. Reduce the size of your request payload:
    • Split large files into smaller parts or use chunked uploads (if supported).
    • Trim unnecessary data from your JSON (remove unused fields or compress arrays).
  3. If you need to upload large files, consult the API documentation for alternative bulk/end-point or streaming options.

If you continue to see a 413 error after these steps, please consult the full API Reference.