Skip to content

Invalid request

What the validation_error error from the Perafly API means and what to do about it.

On this page
Code
validation_error
HTTP status
400

What it means

The body or query doesn't follow the endpoint's rules. The response lists the fields in errors: [{ field, code }].

What to do

Fix the listed fields. The API reference shows each endpoint's parameters and body.

Read more: API reference

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/validation_error",
  "title": "Invalid request",
  "status": 400,
  "code": "validation_error",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes