Skip to main content

Export dataset

POST /datasets/{dataset_id}/exports

Request an authorized JSONL export. Poll the job for a download URL and its expiry. Rows are tagged as item or event and preserve the dataset schema.

Use the variables supplied at onboarding.

curl --fail-with-body -X POST "$JEAN_BASE_URL/datasets/$JEAN_DATASET_ID/exports" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY" \
-H "Content-Type: application/json" \
-d '{"format":"jsonl"}'

Body

FieldTypeRequiredNotes
formatjsonlnoDefault: "jsonl".

Response · 202

{
"id": "job_demo",
"kind": "dataset_export",
"status": "queued",
"request_id": "req_demo"
}

Poll Get job with the returned id. Errors and retries · Complete schemas