Exports
Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'
GET /v1/exports HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"paging": {
"next": {
"after": "text"
}
},
"data": [
{
"id": "text",
"reference_id": "text",
"name": "text",
"object": {
"id": "text",
"reference_id": {}
},
"format": "jsonl.gz",
"primary_key": [
"text"
],
"columns": [
{
"name": "text",
"type": "string",
"nullable": true
}
],
"schema_version": 1,
"schema_hash": "text",
"last_succeeded_run": {
"id": "text",
"completed_at": {}
}
}
]
}Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'
Public id of the export (expt_…), used in every path.
The export's reference id in Whaly.
Display name.
gzip-compressed JSON lines.
The output columns that identify a row. Rows are sorted by them.
Incremented on every change of the output schema.
sha256 of the public schema (names, types, nullability, order).
Unknown, or not granted to this service account.
GET /v1/exports/{exportId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"reference_id": "text",
"name": "text",
"object": {
"id": "text",
"reference_id": {}
},
"format": "jsonl.gz",
"primary_key": [
"text"
],
"columns": [
{
"name": "text",
"type": "string",
"nullable": true
}
],
"schema_version": 1,
"schema_hash": "text",
"last_succeeded_run": {
"id": "text",
"completed_at": {}
}
}Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'
GET /v1/exports/{exportId}/runs HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"paging": {
"next": {
"after": "text"
}
},
"data": [
{
"id": "text",
"status": "queued",
"trigger": "api",
"created_at": {},
"started_at": {},
"snapshot_at": {},
"completed_at": {},
"expires_at": {},
"row_count": {},
"size_bytes": {},
"schema_version": {},
"schema_hash": {},
"manifest": {
"url": "text",
"url_expires_at": "text"
},
"files": [
{
"name": "part-00000.jsonl.gz",
"row_count": 1,
"size_bytes": 1,
"sha256": "text",
"url": {},
"url_expires_at": {}
}
],
"error": {
"kind": "member_unavailable",
"message": "text",
"step": "plan"
}
}
]
}Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'
Public id of the run.
expired: succeeded, but its files were deleted (7 days after completion).
Every row reflects the data as of this instant.
When the files are deleted.
Unknown run, or export not granted.
The run expired: its files are gone.
GET /v1/exports/{exportId}/runs/{runId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"status": "queued",
"trigger": "api",
"created_at": {},
"started_at": {},
"snapshot_at": {},
"completed_at": {},
"expires_at": {},
"row_count": {},
"size_bytes": {},
"schema_version": {},
"schema_hash": {},
"manifest": {
"url": "text",
"url_expires_at": "text"
},
"files": [
{
"name": "part-00000.jsonl.gz",
"row_count": 1,
"size_bytes": 1,
"sha256": "text",
"url": {},
"url_expires_at": {}
}
],
"error": {
"kind": "member_unavailable",
"message": "text",
"step": "plan"
}
}Returns 202 with a new run, or 200 with the run already queued or running. One run per export at a time; runs of one organization execute one after the other.
Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'
The run already queued or running.
Public id of the run.
expired: succeeded, but its files were deleted (7 days after completion).
Every row reflects the data as of this instant.
When the files are deleted.
A new run, queued.
Unknown, or not granted to this service account.
The export can't run: the body names the column (a source deleted, a field not ready).
A daily run quota is used up: the body names which, and when it frees (retry_at, Retry-After).
POST /v1/exports/{exportId}/runs HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"status": "queued",
"trigger": "api",
"created_at": {},
"started_at": {},
"snapshot_at": {},
"completed_at": {},
"expires_at": {},
"row_count": {},
"size_bytes": {},
"schema_version": {},
"schema_hash": {},
"manifest": {
"url": "text",
"url_expires_at": "text"
},
"files": [
{
"name": "part-00000.jsonl.gz",
"row_count": 1,
"size_bytes": 1,
"sha256": "text",
"url": {},
"url_expires_at": {}
}
],
"error": {
"kind": "member_unavailable",
"message": "text",
"step": "plan"
}
}Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'
Public id of the run.
expired: succeeded, but its files were deleted (7 days after completion).
Every row reflects the data as of this instant.
When the files are deleted.
POST /v1/exports/{exportId}/runs/{runId}/cancel HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"status": "queued",
"trigger": "api",
"created_at": {},
"started_at": {},
"snapshot_at": {},
"completed_at": {},
"expires_at": {},
"row_count": {},
"size_bytes": {},
"schema_version": {},
"schema_hash": {},
"manifest": {
"url": "text",
"url_expires_at": "text"
},
"files": [
{
"name": "part-00000.jsonl.gz",
"row_count": 1,
"size_bytes": 1,
"sha256": "text",
"url": {},
"url_expires_at": {}
}
],
"error": {
"kind": "member_unavailable",
"message": "text",
"step": "plan"
}
}Last updated