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

build_dataset_from_dataset

POST/build_dataset_from_dataset

Legacy. Use POST /datasets/{id}/rows/build for new work. The same build on the resource path: POST /datasets/{id}/extend.

Build a new list seeded from a completed list build (the "source"). The source's rows are passed to the builder as context so it finds new rows only — use this to extend a list with more rows matching the same shape.

For example, if the source list was built with the prompt "Find tech companies in New York", you can extend it with the prompt "Find more companies, but in Seattle" — the agent will see the prior prompt, as well as the new one.

Inheritance rules:

  • Identifiers and attributes are always inherited from the source and cannot be overridden
  • prompt is optional — when provided it's combined with the source's prompt as an extension instruction; when omitted the source's prompt is reused
  • qualifiers are optional — when provided they replace the source's qualifiers; when omitted they are inherited
  • max_items is the maximum number of NEW rows to find; defaults to the source's max_items

The new build has its own run_key and lifecycle — the source build is not modified. Results contain only the newly found rows by default; pass include_rows_from_source=true to /dataset_build_data to get the combined set.

Note: Extensions can be chained (extending a build that is itself an extension), but after chaining 5 list builds the agent may lose the original context from the first prompt — beyond that depth, consider starting a fresh build instead, or re-adding information from the initial prompt.

Recommended: Pass dataset_webhook_url to receive results when complete — this is more efficient than polling. If you must poll, use /dataset_build_status (suggested interval: 5–10 seconds).

Query parameters

source_run_keystringrequired

The run_key of the completed list build to extend

Request body

promptstring

Extension instruction combined with the source's prompt (e.g. "also include European companies"). When omitted, the source's prompt is reused as-is.

qualifiersarray of string

Replaces the source's qualifiers when provided (max 10). Inherited from the source when omitted.

Max items 10
max_itemsinteger

Maximum number of NEW rows to find. Defaults to the source's max_items.

Min 1
budgetnumber

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

Min 10Max 5000
dataset_webhook_urlstring uri

URL to receive a POST when the list build completes.

Always pass URLs containing query strings (e.g. Power Automate / Azure Logic Apps SAS URLs) here in the body — never as a query parameter — so the & characters in the SAS token are preserved.

auto_run_enrichmentboolean

Automatically create and run an enrichment from the list when the build completes. When true, an auto_run_enrichment_run_key is returned immediately in the response that can be used to poll run_status / run_data.

Default false
auto_run_enrichment_webhook_urlstring uri

Webhook URL for the auto-run enrichment (requires auto_run_enrichment). Same body-only guidance applies.

Responses

200List build started
request_statusstringrequired
One of success
messagestringrequired
run_keystringrequired

Unique identifier for this list build (use with /dataset_build_status and /dataset_build_data)

max_itemsinteger
app_urlstring uri
auto_run_enrichment_run_keystring

Returned when auto_run_enrichment is true. Use with /run_status and /run_data to poll the enrichment run.

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