> The index of all pages is at https://docs.afffast.com/llms.txt.

# parameter_invalid

A parameter is not valid.

HTTP status: **422**. Error type: `invalid_request_error`.

A parameter is not valid.

## Example

```json
{
  "error": {
    "type": "invalid_request_error",
    "code": "parameter_invalid",
    "message": "A parameter is not valid.",
    "param": "limit",
    "doc_url": "https://docs.afffast.com/errors/parameter-invalid",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}
```

## Causes

- A query parameter, a path parameter or a field of the body has a wrong value, a wrong type or a wrong format.
- A required parameter is missing.
- The `limit` is outside the range 1 to 100, or the request has both `starting_after` and `ending_before`.
- A network ID does not exist. Use an ID from `GET /v1/networks`.

## How to fix

- Read `error.param`. It names the parameter or the field (for example `subids.s1`).
- Read the message. It tells what is wrong.
- Check the parameter in the [API reference](/reference).
