# Invalid input

Resolve request validation errors.

The request is malformed or contains invalid parameters. This may happen when the request body is not valid JSON, exceeds the maximum allowed depth, or when query or path parameters fail validation.

This error requires you to correct the request before retrying.

## Response

All error responses follow the [Problem Details (RFC 9457)](/reference/api/overview#errors) format. The `type`, `title`, `status`, and `detail` fields are always present, while `instance` may be omitted depending on the API.

Here is an example of the response returned for this error:

```json
{
  "type": "https://croct.help/api/general/invalid-input",
  "title": "Invalid input.",
  "status": 400,
  "detail": "Some of the request parameters are invalid.",
  "instance": "/events",
  "violations": [
    {
      "path": "/pageSize",
      "reason": "pageSize must be less than or equal to 1000"
    }
  ]
}
```

The response may include the following additional field:

- `violations`: `Array<object>` (optional)

  The list of individual validation failures.

  - `path`: `string` (optional)

    A JSON pointer to the invalid field, when applicable.

  - `reason`: `string`

    A human-readable explanation of the constraint that was violated.
