Unsupported media type (415)

The body was sent in a format the operation doesn't accept.

Status: 415 Unsupported Media Type · type: https://api.sparkle.ai/errors/unsupported-media-type

When it happens

An operation that takes JSON was called with a Content-Type other than application/json (or a +json type), such as application/x-www-form-urlencoded or text/plain. A body with no Content-Type is read as JSON.

How to fix it

Send the body as JSON with the Content-Type: application/json header. An operation that takes a file upload asks for multipart/form-data, and its reference page says so.

Example

{
  "type": "https://api.sparkle.ai/errors/unsupported-media-type",
  "title": "Unsupported Media Type",
  "status": 415,
  "detail": "request body must be application/json",
  "instance": "/public/v1/webhooks",
  "code": "validation.invalid_content_type",
  "request_id": "req_abc123",
  "timestamp": "2026-02-15T12:00:00Z",
  "documentation_url": "https://docs.sparkle.ai/docs/api/errors/unsupported-media-type"
}

On this page