extraction_plan
/extraction_planLegacy. Use GET /extractions/{id} for new work.
Status + definition of a single extraction the account owns. The main use is polling discovery after /create_extraction: status moves from "discovering" to "ready" (an executable plan was produced) or "discovery_failed".
Polling interval: discovery typically takes several minutes; we recommend 15–30 seconds between requests.
Query parameters
extraction_plan_keystringrequiredThe extraction_plan_key returned by /create_extraction
Responses
200Extraction plan status retrieved successfully
request_statusstringrequiredextraction_plan_keystringrequiredextraction_plan_namestringstatusstringrequired"discovering" while the agent is drafting the plan; "ready" when it can be run; "discovery_failed" when discovery finished without an executable plan
app_urlstring uriLink to the extraction in the Riveter app
starting_urlstringgoal_descriptionstringoutput_record_json_schemaobjectJSON Schema describing the shape of one output record
required_keysarray of stringlockedbooleanvalidation_passingbooleannullableWhether the last discovery validation produced records matching the schema
discovered_atstring date-timenullablerun_credits_requiredintegerPer-run cost charged by /run_extraction
messagestringPresent only when status is "discovery_failed" — explains how to recover
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.