Skip to content

monid runs

List and inspect runs.

Commands


runs list

List recent runs with cursor-based pagination.

Usage

bash
monid runs list [--limit <limit>] [--cursor <cursor>] [--json]

Flags

FlagTypeRequiredDescription
--limit <limit>numberNoMaximum number of runs to return
--cursor <cursor>stringNoPagination cursor from a previous response
-j, --jsonbooleanNoOutput raw JSON

Examples

bash
# List recent runs
monid runs list

# List with a limit
monid runs list --limit 5

# Paginate
monid runs list --cursor <cursor-value>

runs get

Get the status and results of a specific run.

Usage

bash
monid runs get -r <run-id> [--wait [timeout]] [-o <file>] [--json]

Flags

FlagTypeRequiredDescription
-r, --run-id <runId>stringYesThe run ID to look up
-w, --wait [timeout]numberNoWait for completion. Optional timeout in seconds (default: 300)
-o, --output <path>stringNoSave output to a file
-j, --jsonbooleanNoOutput raw JSON

Examples

bash
# Check current status
monid runs get -r 01HXYZ...

# Wait for completion and save results
monid runs get -r 01HXYZ... --wait -o results.json

# Wait with custom timeout
monid runs get -r 01HXYZ... --wait 60

Example Output

The output shows both Status (run lifecycle) and Response (provider HTTP status):

Run ID:    01HXYZ...
Status:    COMPLETED
Response:  HTTP 200
Provider:  pdl
Endpoint:  /person/enrich
Price:     $0.003/call
Cost:      $0.003
Created:   2026-03-28T10:30:00Z
Done:      2026-03-28T10:30:01Z

When the provider returned an error:

Run ID:    01HXYZ...
Status:    COMPLETED
Response:  HTTP 404 -- No match found for the given query
Provider:  pdl
Endpoint:  /person/enrich
Price:     $0.003/call
Cost:      $0.00
Created:   2026-03-28T10:30:00Z
Done:      2026-03-28T10:30:01Z

Status vs Provider HTTP Status

Every run has two independent indicators:

  1. Run status -- did the run itself complete?
  2. Provider HTTP status -- what did the data provider return?

Run Status

The run status tracks the lifecycle of the run:

StatusMeaning
READYQueued, waiting to start
RUNNINGActively executing
COMPLETEDRun finished -- the provider was called and responded
FAILEDInfrastructure failure -- pipeline crash, timeout, or internal error (our fault)

Provider HTTP Status

When a run is COMPLETED, the provider's HTTP status code tells you whether the data request succeeded:

HTTP StatusMeaning
200Success -- output contains results
400Bad request -- invalid parameters sent to provider
404Not found -- no match for the query
429Rate limited -- provider throttled the request
500Provider error -- the provider's service failed

The provider HTTP status is available in providerResponse.httpStatus in the JSON response.

INFO

A run with status: COMPLETED and providerResponse.httpStatus: 404 means the run completed normally, but the provider found no matching data. This is not a failure -- it's a valid "no results" response. You are not charged for provider errors.

Next Steps

The data layer for AI agents.