Generate more rows
/datasets/{id}/rows/buildAsk the list generator for count more rows of an existing dataset. Requires a index_column on the dataset (set one with PATCH /datasets/{id}); the generator is told the existing rows and skips them, and anything it still repeats is dropped on the index column. prompt says what to find; when omitted, the prompt of the dataset's latest build is reused. The generator may find fewer rows than count: when the run finishes, its progress reports requested_rows, generated_rows, added_rows, skipped_duplicate_rows. auto_fill: true fills the new rows' output columns when they land (a second paid run). The response is the dataset plus run (the generation run); poll it with GET /runs/{id} or pass webhook_url.
Path parameters
idstringrequiredThe dataset id (ds_...)
Request bodyrequired
promptstringWhat the rows are. Default: the prompt of the dataset's latest build.
countintegerrequiredHow many rows to generate. Capped per account.
budgetListBuildBudgetParamMost credits the build may spend (default 50 + 1.5 per row). A deposit of the expected spend is charged at kickoff; the rest is charged as it runs, up to this budget. A low budget means fewer rows.
auto_fillbooleanFill the new rows' output columns when they land (needs an enrichment on the dataset)
webhook_urlstring uriPOSTed the generation run when it finishes
fill_webhook_urlstring uriWith auto_fill — POSTed the fill run when it finishes
estimate_costEstimateCostParamValidate and price the request without running or charging anything; the 200 response is the credit estimate (EstimateCostResult).
max_creditsMaxCreditsParamCredit ceiling. Refused with 422 credit_cap_exceeded (nothing charged) when the estimate's maximum exceeds it.
Responses
200estimate_cost only — the credit estimate; nothing was started
estimate_costbooleanrequiredtypestringrequiredWhat would have been charged for (monitor = one scheduled run of the monitor)
The estimate made at kickoff next to what has been charged so far. estimate is null for runs
started before estimates existed. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CreditEstimate model →
minimumnumberrequiredLeast the run can cost
expectednumberLikely cost from past runs of the same config; absent without history
typicalobjectRecent p25–p75 settled range for builds of this size; absent without a dataset build estimate
Attributes
lownumberrequiredhighnumberrequiredmaximumnumberrequiredMost the run can cost
upfrontnumberCredits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes
charged_upfrontbooleanrequiredtrue when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes
- null
credits_usednumberrequiredCredits charged so far (same value as the top-level credits_used)
credits_remainingnumberAccount balance. Only on estimates and credit errors.
sufficient_creditsbooleanWhether the balance covers estimate.maximum. Only on estimates and credit errors.
201The dataset with run (the generation run)
idstringds_...
namestringnullableinput_columnsarray of stringInput column names, in order (row identity)
index_columnstringnullableThe input column rows are unique on
enrichment_idstringnullableThe bound enrichment (its output columns are the dataset's)
output_columnsarray of stringOutput column names, in order (from the bound enrichment; [] without one). Prompts and schemas are on GET /enrichments/{enrichment_id}
row_countintegerrows_expiredbooleanTrue once the rows were removed by retention; the structure stays
import_in_progressbooleanA CSV import accepted with 202 has not landed yet
runsarray of DatasetRunSummaryThe five newest runs on the dataset
Attributes
idstringrun_...
typestringdataset_build = list generation; enrichment = a fill
statusstringcreated_atstring date-timefinished_atstring date-timenullablecreated_atstring date-timeupdated_atstring date-timerunRunThe uniform shape for every run, returned by kickoff endpoints and all /runs endpoints. Related resource ids (enrichment_id, dataset_id, extraction_id, monitor_id) appear when they apply to the run; kickoff responses may add a few endpoint-specific fields.
Attributes
idstringrequiredThe run id (run_...)
typestringrequiredWhat kind of run this is
statusstringrequiredCompletion estimate. Cell-based runs (enrichment, quick_search) also report cell counts; dataset fills report row counts; builds on a dataset report what landed.
Attributes
percent_completenumbernullableestimated_seconds_remainingnumbernullableelapsed_secondsnumbernullablecompleted_cellsintegerCell-based runs only
total_cells_expectedintegerCell-based runs only
not_found_cellsintegernullableCell-based runs only. Null while a run over 5,000 rows is in progress; set when it finishes.
total_rowsintegerDataset fills only. Rows in the fill's scope
completed_rowsintegerDataset fills only. Rows finished (ok, not found, or failed)
running_rowsintegerDataset fills only. Rows an agent is working on right now
requested_rowsintegerBuilds on a dataset only. The count asked for
generated_rowsintegerBuilds on a dataset only. Rows the generator found; set when the run finishes
added_rowsintegerBuilds on a dataset only. Rows that landed in the dataset; set when the run finishes
skipped_duplicate_rowsintegerBuilds on a dataset only. Generated rows dropped as duplicates on the index column; set when the run finishes
credits_usednumberCredits consumed so far
The estimate made at kickoff next to what has been charged so far. estimate is null for runs
started before estimates existed. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CreditEstimate model →
minimumnumberrequiredLeast the run can cost
expectednumberLikely cost from past runs of the same config; absent without history
typicalobjectRecent p25–p75 settled range for builds of this size; absent without a dataset build estimate
Attributes
lownumberrequiredhighnumberrequiredmaximumnumberrequiredMost the run can cost
upfrontnumberCredits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes
charged_upfrontbooleanrequiredtrue when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes
- null
credits_usednumberrequiredCredits charged so far (same value as the top-level credits_used)
credits_remainingnumberAccount balance. Only on estimates and credit errors.
sufficient_creditsbooleanWhether the balance covers estimate.maximum. Only on estimates and credit errors.
app_urlstring uriLink to view this run in the Riveter app
result_urlstring urirequiredWhere to fetch the run's output
started_atstring date-timenullablefinished_atstring date-timenullableerrorobjectnullableNull unless the run hit an error
Attributes
typestringmessagestringstopped_reasonStoppedReasonWhy 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.
enrichment_idstringPresent when the run belongs to an enrichment
enrichment_namestringdataset_idstringPresent on dataset-build runs
extraction_idstringPresent on extraction runs
monitor_idstringPresent on monitor-scheduled runs
webhook_urlstring uriPresent when the run has a webhook configured
400The request is malformed or names a conflicting parameter combination
errorobjectrequiredAttributes
typestringrequiredMachine-readable error type (bad_request, not_found, forbidden, feature_not_enabled, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented, ...)
messagestringrequiredHuman-readable explanation
detailsanyOptional extra context (e.g. per-field validation errors)
credit_detailCreditDetailThe estimate made at kickoff next to what has been charged so far. estimate is null for runs
started before estimates existed. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CreditEstimate model →
minimumnumberrequiredLeast the run can cost
expectednumberLikely cost from past runs of the same config; absent without history
typicalobjectRecent p25–p75 settled range for builds of this size; absent without a dataset build estimate
Attributes
lownumberrequiredhighnumberrequiredmaximumnumberrequiredMost the run can cost
upfrontnumberCredits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes
charged_upfrontbooleanrequiredtrue when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes
- null
credits_usednumberrequiredCredits charged so far (same value as the top-level credits_used)
credits_remainingnumberAccount balance. Only on estimates and credit errors.
sufficient_creditsbooleanWhether the balance covers estimate.maximum. Only on estimates and credit errors.
401Missing or invalid API key (request_status body — see the AuthError schema)
request_statusstringmessagestringerror_typestring403The API key's account may not access this resource or endpoint (forbidden), or the account has not migrated to Datasets yet (feature_not_enabled — open Datasets in the app and click "Migrate to Datasets")
errorobjectrequiredAttributes
typestringrequiredMachine-readable error type (bad_request, not_found, forbidden, feature_not_enabled, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented, ...)
messagestringrequiredHuman-readable explanation
detailsanyOptional extra context (e.g. per-field validation errors)
credit_detailCreditDetailThe estimate made at kickoff next to what has been charged so far. estimate is null for runs
started before estimates existed. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CreditEstimate model →
minimumnumberrequiredLeast the run can cost
expectednumberLikely cost from past runs of the same config; absent without history
typicalobjectRecent p25–p75 settled range for builds of this size; absent without a dataset build estimate
Attributes
lownumberrequiredhighnumberrequiredmaximumnumberrequiredMost the run can cost
upfrontnumberCredits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes
charged_upfrontbooleanrequiredtrue when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes
- null
credits_usednumberrequiredCredits charged so far (same value as the top-level credits_used)
credits_remainingnumberAccount balance. Only on estimates and credit errors.
sufficient_creditsbooleanWhether the balance covers estimate.maximum. Only on estimates and credit errors.
404No resource with that id on this account
errorobjectrequiredAttributes
typestringrequiredMachine-readable error type (bad_request, not_found, forbidden, feature_not_enabled, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented, ...)
messagestringrequiredHuman-readable explanation
detailsanyOptional extra context (e.g. per-field validation errors)
credit_detailCreditDetailThe estimate made at kickoff next to what has been charged so far. estimate is null for runs
started before estimates existed. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CreditEstimate model →
minimumnumberrequiredLeast the run can cost
expectednumberLikely cost from past runs of the same config; absent without history
typicalobjectRecent p25–p75 settled range for builds of this size; absent without a dataset build estimate
Attributes
lownumberrequiredhighnumberrequiredmaximumnumberrequiredMost the run can cost
upfrontnumberCredits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes
charged_upfrontbooleanrequiredtrue when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes
- null
credits_usednumberrequiredCredits charged so far (same value as the top-level credits_used)
credits_remainingnumberAccount balance. Only on estimates and credit errors.
sufficient_creditsbooleanWhether the balance covers estimate.maximum. Only on estimates and credit errors.
409Duplicate run_key or a run already in progress
errorobjectrequiredAttributes
typestringrequiredMachine-readable error type (bad_request, not_found, forbidden, feature_not_enabled, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented, ...)
messagestringrequiredHuman-readable explanation
detailsanyOptional extra context (e.g. per-field validation errors)
credit_detailCreditDetailThe estimate made at kickoff next to what has been charged so far. estimate is null for runs
started before estimates existed. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CreditEstimate model →
minimumnumberrequiredLeast the run can cost
expectednumberLikely cost from past runs of the same config; absent without history
typicalobjectRecent p25–p75 settled range for builds of this size; absent without a dataset build estimate
Attributes
lownumberrequiredhighnumberrequiredmaximumnumberrequiredMost the run can cost
upfrontnumberCredits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes
charged_upfrontbooleanrequiredtrue when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes
- null
credits_usednumberrequiredCredits charged so far (same value as the top-level credits_used)
credits_remainingnumberAccount balance. Only on estimates and credit errors.
sufficient_creditsbooleanWhether the balance covers estimate.maximum. Only on estimates and credit errors.
422The request is valid but can't be executed (e.g. insufficient_credits, credit_cap_exceeded when max_credits is set, validation failure)
errorobjectrequiredAttributes
typestringrequiredMachine-readable error type (bad_request, not_found, forbidden, feature_not_enabled, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented, ...)
messagestringrequiredHuman-readable explanation
detailsanyOptional extra context (e.g. per-field validation errors)
credit_detailCreditDetailThe estimate made at kickoff next to what has been charged so far. estimate is null for runs
started before estimates existed. Estimates and credit errors add credits_remaining and sufficient_credits.
Attributes
estimateone ofrequiredAttributes
CreditEstimate model →
minimumnumberrequiredLeast the run can cost
expectednumberLikely cost from past runs of the same config; absent without history
typicalobjectRecent p25–p75 settled range for builds of this size; absent without a dataset build estimate
Attributes
lownumberrequiredhighnumberrequiredmaximumnumberrequiredMost the run can cost
upfrontnumberCredits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes
charged_upfrontbooleanrequiredtrue when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes
- null
credits_usednumberrequiredCredits charged so far (same value as the top-level credits_used)
credits_remainingnumberAccount balance. Only on estimates and credit errors.
sufficient_creditsbooleanWhether the balance covers estimate.maximum. Only on estimates and credit errors.