curl --request POST \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/{queryId}/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"format": "CSV",
"columns": [
"id",
"created",
"amount"
]
}
'{
"id": "4c9fcb44-126a-45f8-99a0-f1d245083d78",
"status": "PENDING"
}Export Query (async)
Submits an async export of a saved query as CSV or JSONL. Returns immediately with a job id; poll the status endpoint for the download URLs.
curl --request POST \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/{queryId}/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"format": "CSV",
"columns": [
"id",
"created",
"amount"
]
}
'{
"id": "4c9fcb44-126a-45f8-99a0-f1d245083d78",
"status": "PENDING"
}

Authorizations
Use the Authorization header with the value 'Bearer ' to authenticate. Partner API Keys have full access; Project API Keys are limited to their project scope. Learn more: https://docs.peaka.com/api-reference/authentication
Body
Export options
Async export request. The job is accepted (202) and runs in the background; the result is downloaded via presigned URLs returned by the status endpoint.
Output format
CSV, JSONL "CSV"
Row limit; clamped to [1, 1000000]
100000
CSV formatting options (ignored for JSONL exports)
Show child attributes
Show child attributes
When false, Peaka system columns (_id, _version, …) are excluded. Cache plumbing columns (q, cache) are always dropped.
true
Explicit column selection; an unknown name yields 400. Omit to export all columns.
Explicit column selection; an unknown name yields 400. Omit to export all columns.
["id", "created", "amount"]
Output compression; with GZIP every artifact is a gzip stream carrying a .gz suffix
NONE, GZIP "NONE"