Skip to content
For AI agents: a documentation index is available at /llms.txt. Every docs page is also available as markdown: add .md to its URL. To connect, read /agents.md.

Errors

invalid_request

The request does not match what the operation accepts.

Status

HTTP 400, title Invalid request. One of the the request itself errors. Branch on code, never on the status or the prose.

Retryable: no. Every body carries this as retryable: false, beside action and remedy: the same request will fail again until the request changes or a person acts.

Common causes

  • A required field or parameter is missing.
  • A value has the wrong type, format or range.
  • The body is not valid JSON.
  • A keyword phrase that is empty or over 100 characters.

What to do

Action: Fix the field named in detail, then send the corrected request.

The request does not match the operation. Read detail; retrying unchanged will fail identically.

Example

The body arrives as application/problem+json, with retryable and the remedy above. Most responses add detail about the occurrence, and some add fields of their own.

{
  "type": "https://www.shortsintel.com/docs/reference/errors/invalid_request",
  "title": "Invalid request",
  "status": 400,
  "code": "invalid_request",
  "retryable": false,
  "action": "Fix the field named in `detail`, then send the corrected request.",
  "remedy": "The request does not match the operation. Read `detail`; retrying unchanged will fail identically."
}