Skip to main content

When this happens

The request matched the route but the body or query parameters failed schema validation. Examples:
  • A required field is missing.
  • A field has the wrong type.
  • An enum field has a value not in the allowed set.
  • A numeric field is out of range.
  • limit exceeds the per-endpoint cap (see Pagination).

Example response

For a missing required field:
detail is an array of items, each shaped { loc, msg, type }:

How to fix

  1. Read the loc of every item in detail.
  2. Compare with the auto-generated schema in the API reference.
  3. Fix the request and re-send.

SDK behaviour

Both SDKs walk the detail array for you so you can branch on specific fields without re-parsing JSON.