# Error: invalid_request

> The request is not valid

Source: https://docs.vlayers.ai/errors/invalid_request

- HTTP status: 400
- Retry: No: fix the request first
- details: `issues`: the validation issues, each with its path and message (body and query validation).

## What happened

The request is not valid.

## Why

The body, the query or a header did not validate, or it combines things the API does not allow: a `subject` on a channel other than email, a reply that names another channel than its conversation, a `to` that is not an E.164 number for a number send, a cursor this API did not issue, or a message with no text and no media.

## How to fix it

Read `message` and `details.issues` (the validation issues, by path), fix the request and send it again.

## Example response

```json
{
  "error": "invalid_request",
  "message": "The request is not valid.",
  "requestId": "req-8f2c1d4b",
  "retryable": false,
  "docs": "https://docs.vlayers.ai/errors/invalid_request"
}
```
