stop_run
/stop_runLegacy. Use POST /runs/{id}/stop for new work.
Stop a currently running enrichment. This will halt all processing and mark the run as stopped.
Quick Example
curl -X POST "https://api.riveterhq.com/v1/stop_run?run_key=YOUR_RUN_KEY" \
-H "Authorization: Bearer YOUR_API_KEY"The run key comes from the /run_enrichment endpoint.
Behavior
- If the run is already stopped or success, returns success with current status
- If the run is in progress, stops all pending cells and marks the run as stopped
- Stopped runs cannot be resumed
Query parameters
run_keystringrequiredThe run key (UUID) of the run to stop
Responses
200Run stopped successfully
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable message about the stop operation
run_keystringrequiredUnique identifier for this run
statusstringrequiredCurrent status of the run after stop attempt
stopped_reasonstringWhy the run is stopped (only present when status is stopped)
stopped_atstring date-timenullableWhen the run was stopped (if stopped)
finished_atstring date-timenullableWhen the run finished (if already completed)
stopped_rows_countintegerNumber of input rows that had not started yet when the run was stopped (only present when a run was actively stopped)
project_namestringrequiredName of the enrichment (also available as enrichment_name)
project_uuidstring uuidrequiredUUID of the enrichment (also available as enrichment_uuid)
enrichment_namestringrequiredName of the enrichment
enrichment_uuidstring uuidrequiredUUID of the enrichment
400Bad request - invalid input or missing required parameters
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
401Unauthorized - invalid or missing API key
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
403Forbidden - API access not enabled for account
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
404Resource not found
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.
422Unprocessable entity - validation failed
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable error message
errorsarray of stringList of specific error details
error_typestringrequiredStable, snake_case error identifier. duplicate_run / duplicate_run_key are 409 conflicts from starting a run; credit_limit / insufficient_credits are billing failures; the plan_* / discovery_* / invalid_* / locked values are specific to extraction plan endpoints.