API
Dataset CRUD

List rows

GET/datasets/{id}/rows

The 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

idstringrequired

The dataset id (ds_...)

Query parameters

limitinteger
Default 100Min 1Max 1000
cursorinteger

The next_cursor of the previous page

updated_sincestring date-time

Only rows updated at or after this time (ISO 8601)

columnsstring

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

compactboolean

true answers the values-only row shape: position, input, and cells as { "<column>": value } (no id, states, sources, credits, or timestamps).

Default false

Responses

200One page of rows
rowsarray of one of
Attributes
One of
  • DatasetRow model →
    idstring

    row_...

    positioninteger

    Insertion order, from 1 (the row number a user sees); stable, and the paging cursor

    inputmap of string

    Input values by column name

    cellsmap of DatasetCell

    Cells by output column name (every output column is present; in a run's output.rows, only the columns the fill covered)

    Attributes
    valueanynullable

    The cell value (a string, or structured JSON when the column has an output_schema); null until filled or when nothing was found

    statestring

    pending = 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)

    One of pending running ok not_found failed manual stale
    reasonstring

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

    One of credit_limit provider internal
    errorstring

    Failed cells only. One fixed sentence for the reason, fit to show a user

    sourcesarray of string

    URLs the agent cited, when present

    creditsnumber

    Credits fills have charged for this row so far (each row run counted once)

    not_found_reasonstringnullable

    The 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-time
    updated_atstring date-time
  • CompactDatasetRow model →
    positioninteger

    Insertion order, from 1

    inputmap of string

    Input values by column name (the columns named, else every input column)

    cellsmap of any

    Cell values by output column name (the columns named, else every output column)

next_cursorintegernullable

Pass back as cursor for the next page; null on the last page

row_countinteger
400The request is malformed or names a conflicting parameter combination
errorobjectrequired
Attributes
typestringrequired

Machine-readable error type (bad_request, not_found, forbidden, feature_not_enabled, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented, ...)

messagestringrequired

Human-readable explanation

detailsany

Optional extra context (e.g. per-field validation errors)

credit_detailCreditDetail

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 ofrequired
Attributes
One of
  • CreditEstimate model →
    minimumnumberrequired

    Least the run can cost

    expectednumber

    Likely cost from past runs of the same config; absent without history

    typicalobject

    Recent p25–p75 settled range for builds of this size; absent without a dataset build estimate

    Attributes
    lownumberrequired
    highnumberrequired
    maximumnumberrequired

    Most the run can cost

    upfrontnumber

    Credits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes

    charged_upfrontbooleanrequired

    true when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes

  • null
credits_usednumberrequired

Credits charged so far (same value as the top-level credits_used)

credits_remainingnumber

Account balance. Only on estimates and credit errors.

sufficient_creditsboolean

Whether the balance covers estimate.maximum. Only on estimates and credit errors.

401Missing or invalid API key (request_status body — see the AuthError schema)
request_statusstring
One of error
messagestring
error_typestring
One of unauthorized
403The 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")
errorobjectrequired
Attributes
typestringrequired

Machine-readable error type (bad_request, not_found, forbidden, feature_not_enabled, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented, ...)

messagestringrequired

Human-readable explanation

detailsany

Optional extra context (e.g. per-field validation errors)

credit_detailCreditDetail

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 ofrequired
Attributes
One of
  • CreditEstimate model →
    minimumnumberrequired

    Least the run can cost

    expectednumber

    Likely cost from past runs of the same config; absent without history

    typicalobject

    Recent p25–p75 settled range for builds of this size; absent without a dataset build estimate

    Attributes
    lownumberrequired
    highnumberrequired
    maximumnumberrequired

    Most the run can cost

    upfrontnumber

    Credits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes

    charged_upfrontbooleanrequired

    true when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes

  • null
credits_usednumberrequired

Credits charged so far (same value as the top-level credits_used)

credits_remainingnumber

Account balance. Only on estimates and credit errors.

sufficient_creditsboolean

Whether the balance covers estimate.maximum. Only on estimates and credit errors.

404No resource with that id on this account
errorobjectrequired
Attributes
typestringrequired

Machine-readable error type (bad_request, not_found, forbidden, feature_not_enabled, duplicate_run_key, insufficient_credits, credit_cap_exceeded, validation, not_implemented, ...)

messagestringrequired

Human-readable explanation

detailsany

Optional extra context (e.g. per-field validation errors)

credit_detailCreditDetail

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 ofrequired
Attributes
One of
  • CreditEstimate model →
    minimumnumberrequired

    Least the run can cost

    expectednumber

    Likely cost from past runs of the same config; absent without history

    typicalobject

    Recent p25–p75 settled range for builds of this size; absent without a dataset build estimate

    Attributes
    lownumberrequired
    highnumberrequired
    maximumnumberrequired

    Most the run can cost

    upfrontnumber

    Credits taken at kickoff when charged_upfront is true; 0 when the charge accrues as work completes

    charged_upfrontbooleanrequired

    true when a deposit is taken at kickoff (dataset builds, extractions); false when credits accrue as work completes

  • null
credits_usednumberrequired

Credits charged so far (same value as the top-level credits_used)

credits_remainingnumber

Account balance. Only on estimates and credit errors.

sufficient_creditsboolean

Whether the balance covers estimate.maximum. Only on estimates and credit errors.