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
charsetin theContent-Typeheader is not supported. - The
Content-Encodingheader names an encoding that is not supported.
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-Typeheader toapplication/jsonorapplication/json; charset=utf-8. - Send the request body uncompressed, or remove an unsupported
Content-Encodingheader.
Still stuck? Contact support.