# 24001: Invalid parameter

Log Type: TWILIO

Log Level: ERROR

## Description

A specific query parameter, path parameter, or header value is invalid. Unlike a general validation error (24000), this indicates a single parameter failed validation rather than the request body.

### Possible causes

* A query parameter value is outside the allowed range (for example, `pageSize` greater than 100 or less than 1).
* The `labels` query parameter does not follow the expected format (`key1:value1,key2:value2`).
* A path parameter is not a valid Twilio Time-based ID (TTID). Audience IDs start with `aud_`, snapshot IDs with `snap_`, and operation IDs with `op_`.
* The `order` parameter is not one of the accepted values (`asc` or `desc`).

### Possible solutions

* Check the `errors[]` array in the response — the `pointer` field uses the `#/query/<name>` or `#/path/<name>` prefix to identify which parameter failed.
* For pagination, use `pageSize` between 1 and 100 (default is 20).
* For label filtering, format labels as `key1:value1,key2:value2` with no spaces around separators.
* For resource IDs, use the exact TTID returned by the create or list response (for example, `aud_audience_01h9d8r0vte3hz8tykdj329t7r`).

#### Additional resources

* [Audiences API reference](/docs/segment/audiences/api)
