Envelope schema
All JSON responses share this structure:Field reference
Success example
Failure example
Error handling notes
- The API does not use a separate
messageordevMessagefield. All error text lives in themessagesarray. - Multiple validation errors can appear in a single response. Check every entry in
messagesbefore showing feedback to the user. - HTTP status codes still matter: 401 and 403 indicate authentication issues, 404 indicates a missing resource, and 422 indicates validation errors. Always inspect
successfulalongside the status code.
Because
data is null on error, your parser should check successful before attempting to read fields from data.
