Skip to content

Errors

Unsupported Media Type

The API could not read the request body's encoding. Send uncompressed UTF-8 JSON with the Content-Type header set to application/json.

What Happened

The API could not read the request body because of how it was encoded. The API returns this error with a 415 status code when:

  • The charset in the Content-Type header is not supported.
  • The Content-Encoding header names an encoding that is not supported.
The response includes a detail property with more information about this error.

Example response

415 Unsupported Media Type (application/problem+json)
{
  "type": "https://signatureapi.com/docs/v1/errors/unsupported-media-type",
  "title": "Unsupported Media Type",
  "status": 415,
  "detail": "The request body charset is not supported."
}

How to Fix

  • Encode the request body as UTF-8, and set the Content-Type header to application/json or application/json; charset=utf-8.
  • Send the request body uncompressed, or remove an unsupported Content-Encoding header.

  Still stuck? Contact support.