Skip to main content
GET
https://api-zangtable.com
/
projects
/
{project}
/
export
/
download
/
{export_id}
GET /projects/{project}/export/download/{export_id}
curl --request GET \
  --url https://api-zangtable.com/projects/{project}/export/download/{export_id} \
  --header 'Authorization: <authorization>'
{
  "ok": true,
  "data": {},
  "error": {},
  "request_id": "<string>"
}
Downloads an export artifact.

Endpoint details

Authorization
string
required
Bearer pat_... (Project API Token). Keep this token on your backend/server.
project
string
required
Project slug. This acts as the Project ID in API paths.
export_id
string
required
Export id returned by an export creation or list response.
ok
boolean
required
true for a successful response and false for an error response.
data
object | null
Endpoint-specific response data when ok is true; null on errors.
error
object | null
Error code and message when ok is false; null on success.
request_id
string
required
Request identifier you can use when troubleshooting a specific API call.

Authentication

Table export downloads require record read access to the table. Database and schema export downloads require project admin access.

Parameters

Path: export_id required, format exp_....

Notes

Successful downloads are not wrapped in JSON. They return the artifact bytes with download headers.

Request examples

Basic request:
curl -X GET "$BASE_URL/projects/{project}/export/download/{export_id}" \
  -H 'Authorization: Bearer pat_PROJECT_TOKEN'
Full request:
curl -X GET "$BASE_URL/projects/{project}/export/download/{export_id}" \
  -H 'Authorization: Bearer pat_PROJECT_TOKEN' \
  -H 'X-Operation-Key: edit-profile-email' \
  -H 'X-Operation-Run-Id: oprun_client_20260602_001'

Response examples

Success:
{
  "ok": true,
  "data": {
    "download": "binary response",
    "headers": {
      "Content-Type": "text/csv; charset=utf-8",
      "Content-Disposition": "attachment; filename=\"contacts.csv\""
    }
  },
  "error": null,
  "request_id": "req_20260602T012345_123456Z_abc123def456",
  "operation_key": "edit-profile-email",
  "operation_run_id": "oprun_20260602T012300_000000Z_a1b2c3d4e5f6",
  "operation_grouping_status": "accepted_provided_run",
  "meta": {
    "generated_at": "2026-06-02T01:23:45Z"
  }
}
Error or alternate response:
{
  "ok": false,
  "data": null,
  "error": {
    "code": "export_expired",
    "message": "Export file has expired."
  },
  "request_id": "req_20260602T012345_123456Z_abc123def456",
  "meta": {
    "generated_at": "2026-06-02T01:23:45Z"
  }
}