Exit Codes
Error Response Format
Errors are written to stderr as structured JSON:error_type field provides a machine-readable classification:
Common Errors and Solutions
Exit 1: Client Error
Missing required flags:--permit-from and --permit-to flags.
Invalid date range:
--permit-from date is earlier than --permit-to. Use YYYY-MM-DD format.
Properties search validation:
properties search validates locally before making any API call, so these cost no credits:
Auth is checked before local flag validation, so a missing API key surfaces as exit
2 even when your flags are also invalid. Fix the key first, then the flags.meta.missing with exit 0. Two cases do fail the whole request with exit 1:
properties search row’s id or from addresses search. One bad ID takes down the entire batch, so validate before sending 50.
Exit 2: Auth Error
Exit 3: Rate Limited
Use
--no-retry to disable automatic retry if you want to handle rate limits yourself in a script.Exit 4: Credits Exhausted
shovels usage and contact sales@shovels.ai to increase your limit.
Exit 5: Server or Network Error
--timeout 60s.
Using Exit Codes in Scripts
Related Articles
- CLI authentication — Configure your API key
- Querying properties from the CLI — Properties flags and ID rules
- API error handling — REST API error codes
- API credit limits — Understanding credit consumption

