24001: Invalid parameter
AUDIENCES
ERROR
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.
- A query parameter value is outside the allowed range (for example,
pageSizegreater than 100 or less than 1). - The
labelsquery 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 withsnap_, and operation IDs withop_. - The
orderparameter is not one of the accepted values (ascordesc).
- Check the
errors[]array in the response — thepointerfield uses the#/query/<name>or#/path/<name>prefix to identify which parameter failed. - For pagination, use
pageSizebetween 1 and 100 (default is 20). - For label filtering, format labels as
key1:value1,key2:value2with no spaces around separators. - For resource IDs, use the exact TTID returned by the create or list response (for example,
aud_audience_01h9d8r0vte3hz8tykdj329t7r).