Skip to content

API reference

List the workspace's custom-source datasets

GET
/v1/datasets

The datasets this workspace’s custom sources (Google Sheets first) have published, by name, at most 200. A dataset that was never published is listed with headGeneration and readAt of null and cannot be queried yet. A draft or a deleted dataset is not listed. The workspace is the key’s own; no path, header or query parameter can name another. API-key authorization is checked again before the buffered answer is released.

The datasets, and whether more than the listed 200 exist.

object
datasets
required
Array<object>
<= 200 items
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
truncated
required

True when the workspace has more datasets than the 200 listed.

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

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