APILegacy
Legacy API. These endpoints keep working. New integrations should use the current API.
Enrichments

run_new_enrichment

POST/run_new_enrichment

Legacy. 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:

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.

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_keystring

Custom identifier for this run (optional, will be generated if not provided)

Request bodyrequired

inputEnrichmentInputDatarequired

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.

promptstring

Option 1 (recommended): Natural-language description of the enrichment. Must be provided with attributes. Cannot be combined with output.

attributesarray of string

Option 1 (recommended): Output column names (max 20). Must be provided with prompt. Cannot be combined with output.

Max items 10

Keys 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
promptstring

Agent instructions for this column (agent mode)

contextsarray of string

Column headers used as input context (agent mode)

toolsarray of string

Agent tools: web_search, scrape, pdf, image, etc.

formatstring
One of text number url email tag date json boolean
format_detailsFormatDetails

Format-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 string

tag — allowed tag values (required for tag format)

allow_multipleboolean

tag — allow selecting more than one tag

descriptionsmap of string

tag — optional map from tag value to description (keys must be in options)

decimal_placesinteger

number — decimal places

Min 0Max 9
currency_codestring

number — 3-letter currency code (mutually exclusive with percentage)

commasboolean

number — display thousands separators

percentageboolean

number — format as percentage (mutually exclusive with currency_code)

descriptionstring

json — natural-language schema description (use with or instead of schema)

schemaobject

json — 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
typestring
Example object
propertiesmap of object

JSON Schema properties map

iso_8601boolean

date — output ISO 8601 (cannot combine with month/day/year/delimiter)

monthstring

date — month format token

One of M MM MMM MMMM
daystring

date — day format token

One of D DD Do
yearstring

date — year format token

One of YYYY YY
delimiterstring

date — single-character delimiter between date parts

true_valuestring

boolean — display string for true

false_valuestring

boolean — display string for false

run_whenstring

When 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).

One of always any_filled all_filled dynamic
run_when_configobject

Rule-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_modestring

How rules combine — all (default) or any

One of all any
rulesarray of object

Non-empty list of conditions evaluated against the row's cell values

Attributes
columnstringrequired

Input or output column header whose cell value is tested for this row

conditionstringrequired

Test 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).

One of is_empty is_not_empty text_contains text_does_not_contain text_starts_with text_ends_with text_is_exactly
valuestring

Comparison text for the text_* conditions (ignored for is_empty / is_not_empty)

toolstring

Tool-only mode: scrape, web_search, pdf, image, code, LinkedIn tools, etc.

urlstring

Column header or static URL (tool-only)

querystring

Column header or static query (tool-only, web_search)

date_startstring

Optional start date for filtering search results. Format: YYYY-MM-DD (tool-only, web_search)

date_endstring

Optional end date for filtering search results. Format: YYYY-MM-DD. Defaults to today if date_start is provided. (tool-only, web_search)

codestring

JavaScript source (tool-only, code tool)

argsmap of string

Named 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_codestring
wait_longerboolean
skip_cacheboolean
webhook_urlstring uri

URL 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.
One of
  • EnrichmentRunResponse model →
    request_statusstringrequired

    Status of the request

    One of success error
    messagestringrequired

    Human-readable message

    run_keystringrequired

    Unique identifier for this run

    statusstringrequired

    Current status of the run

    One of pending enqueued processing success stopped
    credits_usednumberrequired

    Number of credits consumed by this run

    total_cells_expectedintegerrequired

    Total number of cells that need to be processed (rows × columns)

    completed_cellsintegerrequired

    Number of cells successfully completed

    not_found_cellsintegerrequirednullable

    Number of cells with 'not found' results. Null while a run over 5,000 rows is still in progress; final once the run finishes.

    chunks_processedintegernullable

    Number of input chunks finished so far. Present on every enrichment run; null until processing starts.

    project_namestringrequired

    Name of the enrichment (also available as enrichment_name)

    project_uuidstring uuidrequired

    UUID of the enrichment (also available as enrichment_uuid)

    enrichment_namestringrequired

    Name of the enrichment

    enrichment_uuidstring uuidrequired

    UUID of the enrichment

    error_messagestringnullable

    Error message if an error occurred

    stopped_reasonstring

    Why 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.

    One of user_request credit_limit error
    riveter_app_linkstringrequired

    Direct link to view this run in the Riveter application

    completion_estimateobject

    Progress estimate. estimated_time_of_completion is only present mid-run; the fixed three-key shape lives in run_status.completion_estimate.

    Attributes
    total_rowsinteger

    Input rows in the run

    total_cells_expectedinteger
    completed_cellsintegernullable
    fully_completed_rowsintegernullable

    Rows whose every enrichment cell has a value; null on a stopped run once its rows are merged

    percent_completestring
    estimated_seconds_remainingnumbernullable
    estimated_time_of_completionstring date-timenullable
    elapsed_secondsnumber
    run_statusRunStatusObjectrequired

    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_keystringrequired
    run_typestringrequired

    e.g. external_api, dataset_build, extraction_plan_run, scrape_only, search_only

    statusstringrequired
    One of pending enqueued processing success stopped
    error_messagestringrequirednullable
    credits_usednumberrequired

    Credits consumed, including fractional credits

    total_cells_expectedintegerrequirednullable
    completed_cellsintegerrequirednullable
    not_found_cellsintegerrequirednullable
    enrichment_uuidstring uuidrequirednullable
    enrichment_namestringrequirednullable
    riveter_app_linkstringrequirednullable
    started_atstring date-timerequirednullable
    finished_atstring date-timerequirednullable
    completion_estimateobjectrequired
    Attributes
    percent_completestringnullable

    e.g. "42.5%"

    estimated_seconds_remainingnumbernullable
    elapsed_secondsnumbernullable
    webhook_urlstring

    Present only when the run was started with a webhook_url

  • EnrichmentConfigPendingResponse model →
    request_statusstringrequired

    Status of the request

    One of success error
    messagestringrequired

    Human-readable message, including how to poll for progress

    run_keystringrequired

    Unique identifier for this run

    statusstringrequired

    pending while the configuration is being generated, stopped if generation failed

    One of pending stopped
    run_statusRunStatusObjectrequired

    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_keystringrequired
    run_typestringrequired

    e.g. external_api, dataset_build, extraction_plan_run, scrape_only, search_only

    statusstringrequired
    One of pending enqueued processing success stopped
    error_messagestringrequirednullable
    credits_usednumberrequired

    Credits consumed, including fractional credits

    total_cells_expectedintegerrequirednullable
    completed_cellsintegerrequirednullable
    not_found_cellsintegerrequirednullable
    enrichment_uuidstring uuidrequirednullable
    enrichment_namestringrequirednullable
    riveter_app_linkstringrequirednullable
    started_atstring date-timerequirednullable
    finished_atstring date-timerequirednullable
    completion_estimateobjectrequired
    Attributes
    percent_completestringnullable

    e.g. "42.5%"

    estimated_seconds_remainingnumbernullable
    elapsed_secondsnumbernullable
    error_messagestringnullable

    Present when configuration generation failed

400Bad request - invalid input or missing required parameters
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, 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.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable
401Unauthorized - invalid or missing API key
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, 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.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable
403Forbidden - API access not enabled for account
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, 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.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable
409Conflict - resource already exists or conflicting state
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, 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.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable
422Unprocessable entity - validation failed
request_statusstringrequired

Status of the request

One of error
messagestringrequired

Human-readable error message

errorsarray of string

List of specific error details

error_typestringrequired

Stable, 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.

One of bad_request validation not_found gone unauthorized forbidden conflict duplicate_run duplicate_run_key credit_limit insufficient_credits invalid_json invalid_json_structure missing_parameter unprocessable_entity locked plan_not_ready run_already_in_progress discovery_in_progress invalid_variables invalid_output_record_json_schema extraction_plan_creation_not_enabled internal_server_error service_unavailable