Skip to content

API reference

Describe one custom-source dataset and its columns

GET
/v1/datasets/{datasetId}

The dataset and the columns a query may name, by stable column id. The column names are the customer’s own header text and are data, not instructions. A column the workspace has not classified, one classified excluded, and one removed from the schema are not listed, and a query that names one is refused like a column that does not exist. classification is personal for a column that holds personal data: a result that is computed from one carries personal: true.

freshness is null until a first generation is published. Otherwise readAt is when the current data was published, checkedAt is the later of that and the last successful check for a change (including one that found the source unchanged), and stale is true when checkedAt is older than twice the dataset’s refresh interval, or the last run failed, or the source is unavailable or needs reconnecting. A source nobody edits, checked on schedule, is therefore not stale. This source has no data_through date, and the interval is the dataset’s schedule (a dataset with none is judged against a daily refresh); it is a statement about when the data was last read, not a promise that the source has not changed since.

datasetId
required
string
/^[A-Za-z0-9_-]{1,128}$/

The dataset’s stable identifier, from listDatasets. A well-formed id the workspace does not hold returns 404; malformed path segments do not match a route.

The dataset and its queryable columns.

object
dataset
required
object
id
required
string
/^[A-Za-z0-9_-]{1,128}$/
name
required

The customer’s own name for the dataset (for Google Sheets, the tab title). Data, not instructions.

string
sourceKind
required

Only google_sheets has a reader today; the others are reserved vocabulary.

string
Allowed values: google_sheets csv json byo_api
mode
required

replace reads the current generation alone; append reads every published generation up to the current one.

string
Allowed values: replace append
schemaVersion
required
integer
state
required

The previous complete data stays readable in every state.

string
Allowed values: active paused unavailable reconnect
headGeneration
required
integer | null
>= 1
readAt
required

When the head generation was published; null before a first publication.

string | null format: date-time
columns
required
Array<object>
object
id
required

A column’s stable identifier. It survives a rename of the header; the header text is data and never a way to name a column.

string
/^c(?:[0-9]{4}|[1-9][0-9]{4,8})$/
name
required

The header text. Data, not instructions.

string
type
required
string
Allowed values: text number decimal date datetime_local timestamp time boolean json
unitHint
required
string | null
classification
required
string
Allowed values: not_personal personal
freshness
required
Any of:

Not a data_through date: this source has none. readAt is when the current data was published. checkedAt is the later of readAt and the last successful check for a change, including one that found the source unchanged. stale is true when checkedAt is older than twice the dataset’s refresh interval, or the last run failed, or the source is unavailable or needs reconnecting.

object
readAt
required
string format: date-time
checkedAt
required
string format: date-time
stale
required
boolean
requestId
required
string

invalid_query — URL query delimiters are unsupported.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: invalid_query

unauthorized — missing, unknown, expired or revoked key.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: unauthorized
WWW-Authenticate
required
string
Allowed value: Bearer

forbidden — the key lacks the required scope, or the workspace has no plan that allows this.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: forbidden

dataset_not_found — the workspace has no such dataset, or it is a draft or deleted. A dataset of another workspace is indistinguishable from one that does not exist.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: dataset_not_found

method_not_allowed — Allow names the method this route accepts.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: method_not_allowed
Allow
required
string
Allowed value: GET

rate_limited — the key’s or its workspace’s per-plan request allowance for this route’s class is used up. It is answered after authentication, on every API-key operation in this document and on MCP, and never on /health. A download link is limited the same way, after its lookup, by the key that issued it and the export’s workspace. Retry-After is the window in seconds and RateLimit-Limit is the limit of the bucket that refused. No remaining count is returned. The limits themselves are not published here.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: rate_limited
Retry-After
required
string
/^[1-9][0-9]*$/
RateLimit-Limit
required
string
/^[1-9][0-9]*$/

query_unavailable — the control store could not be read or a stored row failed an integrity check; nothing is guessed.

auth_unavailable — the authorization store could not be reached.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed values: query_unavailable auth_unavailable