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"
}Data -- Exports
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.
POST
/
data
/
projects
/
{projectId}
/
queries
/
{queryId}
/
exports
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
application/json
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.