# 24000: Validation error

Log Type: TWILIO

Log Level: ERROR

## Description

The request body or parameters failed schema validation. The response includes an `errors[]` array with one entry per invalid field, each containing a JSON Pointer to the location of the error and a human-readable explanation.

### Possible causes

* One or more required fields are missing from the request body (for example, `displayName` or `type` when creating an audience).
* A field value does not match the expected type (for example, sending a string where an integer is required).
* An array field exceeds the maximum allowed items, or a string field violates length constraints.
* Multiple fields are invalid simultaneously — all failures are reported in a single response.

### Possible solutions

* Inspect the `errors[]` array in the response. Each entry has a `pointer` field (for example, `#/displayName`) indicating exactly which field failed and a `detail` field explaining why.
* Verify your request body against the OpenAPI specification for the endpoint you are calling. All required fields and their types are documented there.
* For array fields, check the `maxItems` constraint. For strings, check `minLength` and `maxLength` constraints.
* Fix all reported errors before retrying — the response reports every failure in one pass.

#### Additional resources

* [Audiences API reference](/docs/segment/audiences/api)
* [RFC 9457 — Problem Details for HTTP APIs](https://www.rfc-editor.org/rfc/rfc9457.html)
