Unprofane
DocsErrors

The request body is not valid

Read detail: it names the field and what it accepts. A batch's texts hold at most 30,000 characters together; split a longer one. The request schema is in the API reference and in openapi.json.

The response#

Status 400 with Content-Type: application/problem+json. Match on type; detail says what was wrong with this request.

JSON
{
  "type": "https://unprofane.com/docs/errors/invalid-request",
  "title": "The request body is not valid.",
  "status": 400,
  "detail": "…",
  "instance": "req_…"
}

All errors