My request fails with validation_failed
Owner, AdminLast checked 25 November 20261 min readArticle ID:
developers-validation-failedOn this page
A field is missing or wrong. The error says which one in error.fields.
What you see
422 with error.code of validation_failed:
{ "error": { "code": "validation_failed", "message": "The title field is required.", "fields": { "title": ["The title field is required."] } } }
error.fields lists the messages for each field. message is the first of them.
Why it happens
- A required field is missing.
- A filter value isn't valid.
updated_sinceisn't a real date, such as2026-02-30.cursorisn't one the API issued.- A name you referenced doesn't exist.
- A visit time has no UTC offset.
end_atisn't afterstart_at.- A payment is more than what's due, or the invoice is a draft, void or cancelled.
How to fix it
- Add the missing field. For example, a job needs a
title. - Use an allowed
status, and ids that are ULIDs. - Send a valid ISO 8601 date or timestamp.
- Pass back
meta.next_cursorexactly. Don't build one. - A job status name must match one of the business's active statuses. See Change a job's status.
- Send
2026-12-01T09:00:00+11:00or…Z. - Fix the times.
- See Record a payment on an invoice.
Retrying the same request won't help. Fix the request. If you sent an Idempotency-Key, the refusal is stored, so send the corrected request with a new key. See What happens if I reuse an idempotency key with a different body?.
See API errors for every code.