Usage
Flags
Examples
Run and poll separately (recommended)
Run with wait
Input from file
With query and path parameters
With custom timeout
Output
Sync providers
For sync providers, the result is returned immediately - no polling needed:Async providers
For async providers, the run starts in the background. Poll withmonid runs get or use --wait:
--wait, the CLI polls automatically until the run completes:
Provider errors
If the provider returned an error, the run is shown as a run (with status, provider HTTP status, and error body under Output) and exits 1. This is true on both the sync path and after--wait:
Infrastructure errors
If Monid itself failed to execute the run, the status isFAILED:
Status vs Provider HTTP Status
Every completed run has two independent indicators:Status: COMPLETED+Response: HTTP 200= success, data returnedStatus: COMPLETED+Response: HTTP 404= run finished, but provider found no dataStatus: COMPLETED+Response: HTTP 500= run finished, but provider had an errorStatus: FAILED= infrastructure error (our fault), no provider responseStatus: BLOCKED= rejected by a control gate before execution, no provider responseStatus: STOPPED= stopped by request before completing, zero-billedStatus: TIMED_OUT= the run timed out before completing
monid runs get.
Provider errors (non-2xx responses) are not charged.
Exit Codes
Wait Timeouts
When--wait times out, the CLI names the run and how to resume it:
--json mode, the timeout error carries error.runId and error.status.
Next Steps
monid runs get- Check run status and retrieve resultsmonid inspect- Verify input schema before running