run_extraction
/run_extractionLegacy. Use POST /extractions/{id}/runs for new work.
Execute an extraction plan. The plan's stored configuration (starting URL, steps, schema) is the full input — pass optional variables only when the plan's URL templates use placeholders.
The run is asynchronous — the response includes a run_key.
The per-run cost is charged upfront when the run starts and is not refunded if the run fails or returns no records.
After running
Use the /run_status endpoint to check the status of the run. When results are available, fetch them with /run_data — formatted_data is an array of records matching the plan's schema. Or pass webhook_url in the body to receive them automatically when the run completes (event extraction_plan_run.completed or extraction_plan_run.stopped). A running extraction can be stopped with /stop_run.
(Legacy alias: POST /run_extraction_plan — same request and response.)
Request bodyrequired
extraction_plan_keystringrequiredUUID of an extraction plan owned by the account (returned by /create_extraction, or shown in the app).
variablesmap of stringOptional per-run overrides for the plan's URL template variables. Merged on top of the plan's stored defaults (per-request wins).
webhook_urlstring uriURL to receive a POST when the run reaches a terminal state.
Always pass URLs containing query strings (e.g. Power Automate / Azure Logic Apps SAS URLs) here in the body — never as a query parameter — so the & characters in the SAS token are preserved.
Responses
200Extraction run started
request_statusstringrequiredmessagestringrun_keystringrequiredUse with /run_status, /run_data, and /stop_run
app_urlstring uriLink to the run in the Riveter app
extraction_plan_keystringextraction_plan_namestringcredits_chargedintegerPer-run cost charged upfront (not refunded on failure / stop / zero records)
variablesmap of stringThe merged template variables this run executes with (plan defaults + request overrides)
validation_warningstringPresent when the plan's last discovery validation did not pass — the run started anyway but records may be incomplete
validation_passingbooleanOnly present (false) alongside validation_warning
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.
409Conflict - resource already exists or conflicting state
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.