Enrichment → list build
/enrichments/{id}/datasetsLegacy. A list build shaped for an enrichment's input columns. For new work use POST /datasets/{id}/rows/build on the enrichment's dataset, or POST /datasets with prompt + count and the enrichment_id for a new dataset.
On a legacy enrichment the rows land there, not in a dataset. On a dataset's enrichment (an enr_... id from GET /datasets/{id}) the rows land in the one dataset bound to it; an enrichment bound to several datasets, or to none, answers 422 — build on the dataset itself instead.
Identifiers are derived from the enrichment's source-data columns automatically, so generated rows land as valid input rows. The build finds rows only; the enrichment's output columns are not researched until the enrichment runs. auto_run_enrichment: true runs it on the rows as soon as the build completes (a second paid run; on a legacy enrichment the kickoff response then carries enrichment_run_id; on a dataset the fill run appears under the dataset's runs when the build finishes).
Returns the list-build run, with legacy.
Path parameters
idstringrequiredThe enrichment id (enr_...)
Request bodyrequired
promptstringrequiredWhat rows to generate (e.g. "US-based fintech startups")
qualifiersarray of stringOptional constraints each row must satisfy (e.g. "B2B", "founded after 2015"). Max 10.
max_itemsintegerMax rows to generate (capped by your plan)
budgetnumberMost credits the build may spend (default 50 + 1.5 per row); charged at kickoff, settled to the agent's spend. A low budget means fewer rows.
dataset_webhook_urlstring uriURL to POST the dataset results to when the build completes
auto_run_enrichmentbooleanRun the enrichment automatically when the build completes
auto_run_enrichment_webhook_urlstring uriWebhook for the auto-run enrichment results
estimate_costCurrentEstimateCostParamValidate and price the request without running or charging anything; the 200 response is the credit estimate.
max_creditsCurrentMaxCreditsParamCredit ceiling. Refused with 422 credit_cap_exceeded (nothing charged) when the estimate's maximum exceeds it.
Responses
200estimate_cost only — the credit estimate (list-gen price plus the enrichment's upper bound when auto_run_enrichment is true); nothing was started
estimate_costbooleanrequiredtypestringrequiredThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
201List build started — the run plus dataset_id / enrichment_id / max_items (and enrichment_run_id when auto-running), with legacy
idstringrequiredThe run id (run_...)
typestringrequiredstatusstringrequiredCompletion estimate of a run in the current API's shape (the full shape is RunProgress in the current API docs).
Attributes
percent_completenumbernullableestimated_seconds_remainingnumbernullableelapsed_secondsnumbernullablecredits_usednumberThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanapp_urlstring uriresult_urlstring urirequiredstarted_atstring date-timenullablefinished_atstring date-timenullableerrorobjectnullableAttributes
typestringmessagestringstopped_reasonstringwebhook_urlstring uriCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
dataset_idstringenrichment_idstringmax_itemsintegerenrichment_run_idstringPresent when auto_run_enrichment is true
400The request is malformed or names a conflicting parameter combination (current API envelope)
errorobjectrequiredAttributes
typestringrequiredbad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...
messagestringrequireddetailsanyOptional extra context
credit_detailCurrentCreditDetailThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
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.
403The API key's account may not access this resource or endpoint (current API envelope)
errorobjectrequiredAttributes
typestringrequiredbad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...
messagestringrequireddetailsanyOptional extra context
credit_detailCurrentCreditDetailThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
404No resource with that id on this account (current API envelope)
errorobjectrequiredAttributes
typestringrequiredbad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...
messagestringrequireddetailsanyOptional extra context
credit_detailCurrentCreditDetailThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs
422The request is valid but can't be executed — insufficient_credits, credit_cap_exceeded when max_credits is set, validation (current API envelope)
errorobjectrequiredAttributes
typestringrequiredbad_request, not_found, forbidden, feature_not_enabled, insufficient_credits, credit_cap_exceeded, validation, ...
messagestringrequireddetailsanyOptional extra context
credit_detailCurrentCreditDetailThe estimate made at kickoff next to what has been charged so far. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CurrentCreditEstimate model →
minimumnumberrequiredmaximumnumberrequiredcharged_upfrontbooleanrequiredtrue when
maximumis taken at kickoff (list builds)- null
credits_usednumberrequiredcredits_remainingnumbersufficient_creditsbooleanlegacyLegacyNoticeCarried by every response of a retired resource endpoint and by the current API's paths when a request took a legacy mode. The response also has Deprecation: true and a Link header (rel="successor-version").
Attributes
noticestringrequiredWhat was legacy about the request and what to send instead
successorstringrequiredMETHOD /v1/path of the current operation to use
docsstring urirequiredThe successor's section of the current API docs