run_new_enrichment
/run_new_enrichmentLegacy. Use POST /enrich with output (or prompt + attributes) for new work.
Create and run a new enrichment in a single request. There are two ways to define your output columns:
Option 1: Prompt + attributes (recommended)
Provide a natural-language prompt describing what you want and an attributes array listing the output column names. The AI will automatically generate the full output configuration (prompts, contexts, tools, formats) for each attribute. This is the easiest option and is often the best choice — just describe what you need and let the AI handle the rest.
Option 2: Full output specification (not recommended)
Define the exact structure of each output column (prompts, contexts, tools, formats). Use this when you need precise control over how each column is enriched.
You must provide either both prompt and attributes or output — not both, not neither.
Prompt + attributes timing: the request waits up to 20 seconds for the AI to generate the enrichment configuration. If generation finishes in time, the response contains the full run status (same shape as /run_status) — including any configuration validation error. If it's still generating, a minimal response is returned with status: pending; poll /run_status with the returned run_key.
Row limit: Maximum 1,000 rows per request when creating a new enrichment. Once created, the response includes an enrichment_uuid — run it again via /run_enrichment with that UUID to send up to 10,000 rows per request.
Recommended: Pass a webhook_url in the JSON body to receive results when the run completes — this is more efficient than polling. If you must poll, use /run_status with the returned run_key (suggested interval: 5–10 seconds). Grab data with /run_data.
Query parameters
run_keystringCustom identifier for this run (optional, will be generated if not provided)
Request bodyrequired
Keys are your source-data column headers. Values are arrays of strings (one per row). Any column header name is allowed; all input columns must have the same array length. Row limits vary by endpoint: max 10,000 rows for /run_enrichment, max 1,000 rows for /run_new_enrichment.
promptstringOption 1 (recommended): Natural-language description of the enrichment. Must be provided with attributes. Cannot be combined with output.
attributesarray of stringOption 1 (recommended): Output column names (max 20). Must be provided with prompt. Cannot be combined with output.
outputEnrichmentOutputSpecKeys are output column headers. Values are per-column configuration objects. Any output column name is allowed; see the per-column schema for all supported fields.
Attributes
promptstringAgent instructions for this column (agent mode)
contextsarray of stringColumn headers used as input context (agent mode)
toolsarray of stringAgent tools: web_search, scrape, pdf, image, etc.
formatstringformat_detailsFormatDetailsFormat-specific options. Valid keys depend on the column format (see run_new_enrichment examples).
Only include keys that apply to your chosen format.
Attributes
optionsarray of stringtag — allowed tag values (required for tag format)
allow_multiplebooleantag — allow selecting more than one tag
descriptionsmap of stringtag — optional map from tag value to description (keys must be in options)
decimal_placesintegernumber — decimal places
currency_codestringnumber — 3-letter currency code (mutually exclusive with percentage)
commasbooleannumber — display thousands separators
percentagebooleannumber — format as percentage (mutually exclusive with currency_code)
descriptionstringjson — natural-language schema description (use with or instead of schema)
schemaobjectjson — JSON Schema object for structured output. Strict-mode requirements
(additionalProperties: false, full required arrays) are applied automatically — no need
to include them. Mark optional fields nullable (e.g. "type": ["string", "null"]).
Not supported: $ref, oneOf, allOf, not, non-object/array roots, nesting beyond
10 levels. anyOf is supported.
Attributes
typestringpropertiesmap of objectJSON Schema properties map
iso_8601booleandate — output ISO 8601 (cannot combine with month/day/year/delimiter)
monthstringdate — month format token
daystringdate — day format token
yearstringdate — year format token
delimiterstringdate — single-character delimiter between date parts
true_valuestringboolean — display string for true
false_valuestringboolean — display string for false
run_whenstringWhen this column should run per row (agent and tool-only columns). always (default),
any_filled / all_filled (based on the column's contexts, or its column-mapped tool params
in tool-only mode), or dynamic (rule-based — requires run_when_config).
run_when_configobjectRule-based run condition, required when run_when is dynamic. The column runs for a row
only when its rules match (match_mode: all = every rule must match, any = at least one).
Attributes
match_modestringHow rules combine — all (default) or any
rulesarray of objectNon-empty list of conditions evaluated against the row's cell values
Attributes
columnstringrequiredInput or output column header whose cell value is tested for this row
conditionstringrequiredTest applied to the cell value. is_empty / is_not_empty need no value.
The text_* conditions compare against value (case-insensitive, except
text_is_exactly which is an exact case-sensitive match).
valuestringComparison text for the text_* conditions (ignored for is_empty / is_not_empty)
toolstringTool-only mode: scrape, web_search, pdf, image, code, LinkedIn tools, etc.
urlstringColumn header or static URL (tool-only)
querystringColumn header or static query (tool-only, web_search)
date_startstringOptional start date for filtering search results. Format: YYYY-MM-DD (tool-only, web_search)
date_endstringOptional end date for filtering search results. Format: YYYY-MM-DD. Defaults to today if date_start is provided. (tool-only, web_search)
codestringJavaScript source (tool-only, code tool)
argsmap of stringNamed arguments for the code tool (tool-only). Keys are names referenced in your JavaScript
(e.g. args.first). Values are column headers (dynamic per row) or static strings.
proxy_country_codestringwait_longerbooleanskip_cachebooleanwebhook_urlstring uriURL to POST results when the run completes (same payload as /run_data)
Responses
200Run initiated successfully. With output (full specification), or with prompt + attributes when configuration generation completes within the 20-second wait, this is the full run status. With prompt + attributes when the configuration is still being generated (or generation failed), this is a minimal pending response — poll /run_status with the returned run_key.
EnrichmentRunResponse model →
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable message
run_keystringrequiredUnique identifier for this run
statusstringrequiredCurrent status of the run
credits_usednumberrequiredNumber of credits consumed by this run
total_cells_expectedintegerrequiredTotal number of cells that need to be processed (rows × columns)
completed_cellsintegerrequiredNumber of cells successfully completed
not_found_cellsintegerrequirednullableNumber of cells with 'not found' results. Null while a run over 5,000 rows is still in progress; final once the run finishes.
chunks_processedintegernullableNumber of input chunks finished so far. Present on every enrichment run; null until processing starts.
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
error_messagestringnullableError message if an error occurred
stopped_reasonstringWhy the run has status
stopped. Only present on stopped runs.user_request: stopped through the API or the app.credit_limit: the account ran out of credits.error: the run failed (internal error, or every enrichment cell failed); error_message has the detail.riveter_app_linkstringrequiredDirect link to view this run in the Riveter application
completion_estimateobjectProgress estimate. estimated_time_of_completion is only present mid-run; the fixed three-key shape lives in run_status.completion_estimate.
Attributes
total_rowsintegerInput rows in the run
total_cells_expectedintegercompleted_cellsintegernullablefully_completed_rowsintegernullableRows whose every enrichment cell has a value; null on a stopped run once its rows are merged
percent_completestringestimated_seconds_remainingnumbernullableestimated_time_of_completionstring date-timenullableelapsed_secondsnumberStable nested status object. The SAME key set is returned for every run type (enrichment, big run, list build, extraction, scrape, search) and on every surface — /run_status, /run_data, /monitor_recent_run_data, run kickoff responses, and webhook payloads. Keys a run type can't provide are null rather than omitted.
Attributes
run_keystringrequiredrun_typestringrequirede.g. external_api, dataset_build, extraction_plan_run, scrape_only, search_only
statusstringrequirederror_messagestringrequirednullablecredits_usednumberrequiredCredits consumed, including fractional credits
total_cells_expectedintegerrequirednullablecompleted_cellsintegerrequirednullablenot_found_cellsintegerrequirednullableenrichment_uuidstring uuidrequirednullableenrichment_namestringrequirednullableriveter_app_linkstringrequirednullablestarted_atstring date-timerequirednullablefinished_atstring date-timerequirednullablecompletion_estimateobjectrequiredAttributes
percent_completestringnullablee.g. "42.5%"
estimated_seconds_remainingnumbernullableelapsed_secondsnumbernullablewebhook_urlstringPresent only when the run was started with a webhook_url
EnrichmentConfigPendingResponse model →
request_statusstringrequiredStatus of the request
messagestringrequiredHuman-readable message, including how to poll for progress
run_keystringrequiredUnique identifier for this run
statusstringrequiredpending while the configuration is being generated, stopped if generation failed
Stable nested status object. The SAME key set is returned for every run type (enrichment, big run, list build, extraction, scrape, search) and on every surface — /run_status, /run_data, /monitor_recent_run_data, run kickoff responses, and webhook payloads. Keys a run type can't provide are null rather than omitted.
Attributes
run_keystringrequiredrun_typestringrequirede.g. external_api, dataset_build, extraction_plan_run, scrape_only, search_only
statusstringrequirederror_messagestringrequirednullablecredits_usednumberrequiredCredits consumed, including fractional credits
total_cells_expectedintegerrequirednullablecompleted_cellsintegerrequirednullablenot_found_cellsintegerrequirednullableenrichment_uuidstring uuidrequirednullableenrichment_namestringrequirednullableriveter_app_linkstringrequirednullablestarted_atstring date-timerequirednullablefinished_atstring date-timerequirednullablecompletion_estimateobjectrequiredAttributes
percent_completestringnullablee.g. "42.5%"
estimated_seconds_remainingnumbernullableelapsed_secondsnumbernullableerror_messagestringnullablePresent when configuration generation failed
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.
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.