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

Update enrichment

PATCH/enrichment

Legacy. Use PATCH /enrichments/{id} for new work.

Partially update an existing enrichment's output columns in place. The same enrichment_uuid is preserved.

The request body is a map keyed by column header (column display name), wrapped in an output property (recommended — required when calling through generated clients or MCP tools). The column map may also be sent unwrapped at the top level of the body.

  • Update an existing output column: include only the keys you want to change. When a key is present, its value fully replaces the previous value for that key (e.g. sending contexts replaces all contexts). Sending a different tool clears the previous tool's parameters, so include the new tool's required parameters.
  • Add a new output column: use a header name that does not exist yet and include the full column configuration (same required fields as /run_new_enrichment output columns — prompt and contexts for agent mode, or tool plus its parameters for tool-only mode).
  • Delete an output column: send { "delete": true } for that column header. You cannot delete input columns or the last remaining output column. If other columns reference the deleted column (as a context, tool parameter, or run_when rule), the request is rejected — update or delete those dependent columns in the same request.
  • Rename a column: send { "rename": "New Name" } for that column header. Works for input and output columns, keeps all cell data and configuration, and can be combined with other config changes for output columns. References to the column (contexts, tool parameters, run_when rules) follow the rename automatically. Other columns changed in the same request must reference it by its NEW name.
  • Convert a column between input and output: send { "column_type": "input" } on an output column to freeze it as source data (it stops running; its data is kept), or { "column_type": "output", ...full column configuration } on an input column to make it enrichable (its existing data may then be overwritten by runs).

Supported config keys per column match the full output specification from /run_new_enrichment: prompt, contexts, tools, format, format_details, run_when, run_when_config, proxy_country_code, and tool-only fields (tool plus its parameters). See the per-column schema for the full field list.

column_order always sits at the top level of the body (beside output, never inside it).

Notes for enrichments built in the app UI:

  • Columns with an empty prompt or no configuration are allowed and are left as-is (they simply don't run). New columns and input-to-output conversions still require a full configuration.
  • Tools enabled for your account beyond the public tool list (by their internal tool key, e.g. tech_stack_probe) are fully supported: they validate, round-trip, and can be configured here. Columns running internal tools that are NOT enabled for your account can still be renamed, reordered, converted, or deleted — but their configuration cannot be edited through this endpoint.

This endpoint updates configuration only — it does not run the enrichment. Use /run_enrichment afterward.

Update one column's prompt and contexts:

{
  "output": {
    "CEO": {
      "prompt": "Find the current CEO of this company using recent news and filings",
      "contexts": ["Company Name", "Website"]
    }
  }
}

Update another column's format and tools:

{
  "output": {
    "Industry": {
      "format": "tag",
      "format_details": {
        "options": ["SaaS", "Fintech", "Healthcare", "Other"],
        "allow_multiple": false
      },
      "tools": ["web_search", "scrape"]
    }
  }
}

Update multiple columns in one request:

{
  "output": {
    "CEO": {
      "prompt": "Find the current CEO of this company using recent news and filings",
      "contexts": ["Company Name", "Website"]
    },
    "Industry": {
      "prompt": "What industry is this company in?",
      "contexts": ["Company Name"],
      "format": "tag",
      "format_details": {
        "options": ["SaaS", "Fintech", "Healthcare", "Other"]
      },
      "tools": ["web_search", "scrape"]
    }
  }
}

Rename a column (optionally updating it at the same time):

{
  "output": {
    "CEO": {
      "rename": "Chief Executive",
      "prompt": "Find the current CEO of this company"
    }
  }
}

Freeze an output column as source data / make an input column enrichable:

{
  "output": {
    "CEO": { "column_type": "input" },
    "Website": {
      "column_type": "output",
      "prompt": "Find the official website for this company",
      "contexts": ["Company Name"],
      "format": "url"
    }
  }
}

Reorder columns (list every column, inputs first is not required):

{
  "column_order": ["Company Name", "Website", "CEO", "Industry"]
}

Add a new output column:

{
  "output": {
    "Annual Revenue": {
      "prompt": "Find the latest annual revenue for this company",
      "contexts": ["Company Name", "Website"]
    }
  }
}

Delete an output column:

{
  "output": {
    "CEO": {
      "delete": true
    }
  }
}

The output wrapper is optional for direct HTTP calls — the same column maps are accepted unwrapped at the top level of the body (beside column_order).

Query parameters

enrichment_uuidstring uuidrequired

UUID of the enrichment to update (project_uuid is also accepted)

Request bodyrequired

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
column_orderarray of string

Full ordered list of every column header (inputs and outputs) to reorder columns

Responses

200Enrichment updated successfully
request_statusstringrequired
One of success error
messagestringrequired
enrichment_uuidstring uuid
enrichment_namestring
namestring
uuidstring uuid
app_urlstring
statusstring
inputarray of string

Names of input (source data) columns

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
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
404Resource not found
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