Skip to content

API reference

Read a custom dataset Sheet schedule and its delivery status

GET
/v1/dataset-sheet/schedules/{scheduleId}

Requires query:read. Returns the schedule with its dataset, saved query and personal opt-in, its destination, the latest export of the schedule’s CURRENT destination and the last delivered one. No tokens, grant envelopes, provider errors or arbitrary internal fields are returned. Unknown stored error text becomes automation_unavailable. Times are epoch milliseconds.

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

Read a custom dataset Sheet schedule and its delivery status.

Times are epoch milliseconds. latest and lastDelivered are of the schedule’s current destination only, so right after a destination change latest is the pre-move export until the planner plans the first one on the new destination. latest.id is the exportId accepted by redrive.

object
schedule
required
object
id
required
string
/^[A-Za-z0-9_-]{1,128}$/
revision
required
integer
>= 1 <= 9007199254740991
enabled
required
boolean
destinationId
required
string
/^[A-Za-z0-9_-]{1,128}$/
datasetId
required
string
/^[A-Za-z0-9_-]{1,128}$/
query
required

The saved query, in the shape of the body of POST /v1/datasets/{datasetId}/query, with a limit of at most 2,000 rows (the Sheet’s page; 2,000 when omitted). It is at most 8,192 characters in JSON. Columns are named by their stable identifiers. It is validated against the dataset’s columns when the schedule is created or changed and again at every export.

object
metrics
Array<object>
<= 10 items
object
group_by
Array<object>
<= 3 items
object
filters
Array<object>
<= 10 items
object
limit
integer
>= 1 <= 2000
allow_percent_sum
boolean
personalOptIn
required
boolean
minIntervalMinutes
required
integer
>= 5 <= 44640
nextDueAt
required
integer
<= 9007199254740991
lastErrorCode
required

Fixed operational diagnosis, or null. Unknown stored text is replaced with automation_unavailable. These fields are not HTTP status codes.

string | null
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict ordinal_conflict lease_lost invalid_provider_request sheet_invalid_generation sheet_generation_conflict retry_after_exceeds_policy attempts_exhausted dataset_not_ready custom_dataset_export_unavailable custom_dataset_export_superseded custom_dataset_export_unexpected custom_dataset_export_invalid custom_dataset_export_forbidden custom_dataset_export_too_large custom_dataset_export_evidence_missing custom_dataset_export_integrity_failure
destination
required
Any of:
object
id
required
string
/^[A-Za-z0-9_-]{1,128}$/
state
required
string
Allowed values: unconfigured active paused revoked
nextOrdinal
required
integer
>= 1 <= 9007199254740991
capacity
required
integer
>= 1 <= 40
latest
required
Any of:
object
id
required
string
/^[A-Za-z0-9_-]{1,128}$/
scheduleRevision
required
integer
>= 1 <= 9007199254740991
destinationOrdinal
required
integer
>= 1 <= 9007199254740991
state
required
string
Allowed values: pending running succeeded superseded failed cancelled
attempts
required
integer
<= 9007199254740991
nextAttemptAt
required
integer
<= 9007199254740991
errorCode
required

Fixed operational diagnosis, or null. Unknown stored text is replaced with automation_unavailable. These fields are not HTTP status codes.

string | null
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict ordinal_conflict lease_lost invalid_provider_request sheet_invalid_generation sheet_generation_conflict retry_after_exceeds_policy attempts_exhausted dataset_not_ready custom_dataset_export_unavailable custom_dataset_export_superseded custom_dataset_export_unexpected custom_dataset_export_invalid custom_dataset_export_forbidden custom_dataset_export_too_large custom_dataset_export_evidence_missing custom_dataset_export_integrity_failure
visibleOrdinal
required
integer | null
>= 1 <= 9007199254740991
lastDelivered
required
Any of:
object
exportId
required
string
/^[A-Za-z0-9_-]{1,128}$/
destinationOrdinal
required
integer
>= 1 <= 9007199254740991
visibleOrdinal
required
integer
>= 1 <= 9007199254740991
completedAt
required
integer
<= 9007199254740991

invalid_request.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: invalid_request invalid_json invalid_schedule
error
object
code
Allowed values: invalid_request unauthorized forbidden schedule_not_found method_not_allowed automation_unavailable

unauthorized.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed value: unauthorized
error
object
code
Allowed values: invalid_request unauthorized forbidden schedule_not_found method_not_allowed automation_unavailable
WWW-Authenticate
required
string
Allowed value: Bearer

forbidden.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: forbidden destination_permission_required schedule_inactive workspace_paused subscription_lapsed
error
object
code
Allowed values: invalid_request unauthorized forbidden schedule_not_found method_not_allowed automation_unavailable

schedule_not_found.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: destination_not_found dataset_unavailable schedule_not_found export_not_found not_found
error
object
code
Allowed values: invalid_request unauthorized forbidden schedule_not_found method_not_allowed automation_unavailable

method_not_allowed.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed value: method_not_allowed
error
object
code
Allowed values: invalid_request unauthorized forbidden schedule_not_found method_not_allowed automation_unavailable
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]*$/

automation_unavailable.

object
error
required
object
code
required
string
Allowed values: not_found invalid_request invalid_json unauthorized forbidden destination_permission_required workspace_paused subscription_lapsed destination_not_found method_not_allowed destination_conflict destination_creation_unconfirmed sheet_layout_conflict sheet_verification_failed request_too_large unsupported_media_type unsupported_encoding provider_auth_failed provider_unavailable credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable invalid_schedule dataset_unavailable destination_unavailable schedule_conflict schedule_not_found schedule_inactive export_not_found redrive_conflict
message
required
string
error
object
code
Allowed values: credential_configuration_unavailable credential_unavailable credential_busy provider_rate_limited automation_unavailable
error
object
code
Allowed values: invalid_request unauthorized forbidden schedule_not_found method_not_allowed automation_unavailable