List rows
/datasets/{id}/rowsThe dataset's rows in position order, each with its input values, its cells by output column name (value, state, sources), and the credits spent on it. Page with limit (max 1,000) and cursor; updated_since returns only rows changed since then.
Two parameters make a read small enough to take a whole dataset in a few calls: columns (comma-separated names) keeps only those columns in input and cells, and compact=true answers the values-only shape (CompactDatasetRow: position, input, cells as { "<column>": value }, a cell without a value null). A 1,000-row page of one column in that shape is a few tens of kilobytes. For counts over a column, GET /datasets/{id}/summary needs no rows at all.
Path parameters
idstringrequiredThe dataset id (ds_...)
Query parameters
limitintegercursorintegerThe next_cursor of the previous page
updated_sincestring date-timeOnly rows updated at or after this time (ISO 8601)
columnsstringColumn names, comma-separated (input or output columns; Company,CEO). Only those columns are answered. Absent: every column. An unknown name is a 400 that lists the dataset's columns.
compactbooleantrue answers the values-only row shape: position, input, and cells as { "<column>": value } (no id, states, sources, credits, or timestamps).
Responses
200One page of rows
rowsarray of one ofAttributes
DatasetRow model →
idstringrow_...
positionintegerInsertion order, from 1 (the row number a user sees); stable, and the paging cursor
inputmap of stringInput values by column name
cellsmap of DatasetCellCells by output column name (every output column is present; in a run's
output.rows, only the columns the fill covered)Attributes
valueanynullableThe cell value (a string, or structured JSON when the column has an output_schema); null until filled or when nothing was found
statestringpending = never filled; running = a fill is on it; ok / not_found / failed = the last fill's result (a failed cell never finished — the next fill re-runs it without force; a not_found cell is an answer and stays); manual = set by hand (PATCH rows/{row_id}); stale = filled before the column's prompt or schema changed (the next fill re-runs it)
reasonstringFailed cells only. credit_limit = the account's credit limit refused the row's charge; provider = the model provider answered with an error or did not answer (run it again); internal = something went wrong on Riveter's side (run it again). A stopped run leaves no failed cells: its recorded values land as ok, the rest stay as they were.
errorstringFailed cells only. One fixed sentence for the
reason, fit to show a usersourcesarray of stringURLs the agent cited, when present
creditsnumberCredits fills have charged for this row so far (each row run counted once)
not_found_reasonstringnullableThe agent's one sentence on what it could not find on this row and why, from its last successful run; null when it found every column or has not run
created_atstring date-timeupdated_atstring date-timeCompactDatasetRow model →
positionintegerInsertion order, from 1
inputmap of stringInput values by column name (the
columnsnamed, else every input column)cellsmap of anyCell values by output column name (the
columnsnamed, else every output column)
next_cursorintegernullablePass back as cursor for the next page; null on the last page
row_countinteger400The 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.