Skip to main content

New: DOJ Justice Manual, USCIS Policy Manual, USPTO MPEP/TMEP, and DFARS PGI are now in the API. See what's covered.

Working with the API

Errors

How failures are reported.

Errors return a JSON body with a detail field. Validation errors return a list describing which field failed.

examples
{ "detail": "Invalid or missing API key." }

{ "detail": [ { "loc": ["body", "query"], "msg": "Field required", "type": "missing" } ] }
StatusMeaning
200Success
400Invalid request
401Missing or bad key
402Out of credits
404Unknown id
422Validation failed
429Rate limited (see Retry-After)

Failed requests are not charged.

Last modified on October 20, 2026

Was this page helpful?