---
title: "The request body must be sent as JSON"
description: "Your request has a body, but it was not sent as JSON. The API answered 415 UNSUPPORTEDMEDIATYPE and read nothing from the body. Nothing was started. The…"
canonical: "https://www.scriptivox.com/errors/request-not-json"
last-updated: "2026-11-24"
---

# The request body must be sent as JSON

## What happened
Your request has a body, but it was not sent as JSON. The API answered `415 UNSUPPORTED_MEDIA_TYPE` and read nothing from the body. Nothing was started. The message tells you which content type it received.

## Why it happens
- The `Content-Type: application/json` header is missing. The message then says the content type is missing.
- The body is sent as another content type, for example as a form (`application/x-www-form-urlencoded`) instead of JSON. The message names the type it received.
- A file was sent as the body. The API takes only JSON requests. Files go to the upload address that `POST /v1/upload` returns.

## What to do
1. Add the header `Content-Type: application/json` to every `POST` request that has a body. Extra parts such as `application/json; charset=utf-8` are fine.
2. Send the body as a JSON object, for example `{"url": "https://example.com/audio.mp3"}`.
3. To send a file, ask for an upload address with `POST /v1/upload`, send the file to that address, then call `POST /v1/transcribe` with the `upload_id`.

### In Claude, ChatGPT and other AI apps
1. You see this only when the app uses an API key, and then it points to a problem in how the app builds its request, not to something you did. Ask the app to try again, and email us if it keeps happening.

## Were you charged?
No. Nothing was started, so nothing was used.

## Still stuck?
Email support@scriptivox.com with:
- the email address of your Scriptivox account
- the request's headers with your key left out, and the `request_id` from the answer
- when it happened, with your time zone
- the exact message you saw

In Claude, ChatGPT or another AI app, you can also ask it to send us a problem report: it shows you the report first and sends it only when you say yes.

## For developers
`415 UNSUPPORTED_MEDIA_TYPE`, answered at once on any `POST` that carries a body, before your key is checked. (No address takes `PUT` or `PATCH`: they get `405 METHOD_NOT_ALLOWED` first.) The response has an `Accept-Post: application/json` header. Requests with no body are not checked, so an empty `POST` such as a cancel goes through. Sending the same request again gives the same answer: fix the header first.

```json
{
  "error": {
    "code": "UNSUPPORTED_MEDIA_TYPE",
    "message": "Content-Type must be 'application/json' on request bodies. Received: application/x-www-form-urlencoded.",
    "docs_url": "https://www.scriptivox.com/errors/request-not-json",
    "help_id": "request-not-json",
    "request_id": "req_6fe725fffa7d9b98"
  }
}
```

---

Every help page: https://www.scriptivox.com/errors.md (the list as JSON: https://www.scriptivox.com/errors.json)
