POST /projects/{project}/export/table/{table}
curl --request POST \
--url https://api-zangtable.com/projects/{project}/export/table/{table} \
--header 'Authorization: <authorization>'import requests
url = "https://api-zangtable.com/projects/{project}/export/table/{table}"
headers = {"Authorization": "<authorization>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<authorization>'}};
fetch('https://api-zangtable.com/projects/{project}/export/table/{table}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-zangtable.com/projects/{project}/export/table/{table}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-zangtable.com/projects/{project}/export/table/{table}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-zangtable.com/projects/{project}/export/table/{table}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-zangtable.com/projects/{project}/export/table/{table}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {},
"error": {},
"request_id": "<string>"
}Exports
POST /projects/{project}/export/table/{table}
Creates a table export manifest and artifact.
POST
https://api-zangtable.com
/
projects
/
{project}
/
export
/
table
/
{table}
POST /projects/{project}/export/table/{table}
curl --request POST \
--url https://api-zangtable.com/projects/{project}/export/table/{table} \
--header 'Authorization: <authorization>'import requests
url = "https://api-zangtable.com/projects/{project}/export/table/{table}"
headers = {"Authorization": "<authorization>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<authorization>'}};
fetch('https://api-zangtable.com/projects/{project}/export/table/{table}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-zangtable.com/projects/{project}/export/table/{table}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-zangtable.com/projects/{project}/export/table/{table}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-zangtable.com/projects/{project}/export/table/{table}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-zangtable.com/projects/{project}/export/table/{table}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {},
"error": {},
"request_id": "<string>"
}Creates a table export manifest and artifact.
Full request:
UTC date range for an ISO-8601 text column:
Error or alternate response:
Endpoint details
string
required
Bearer
pat_... (Project API Token). Keep this token on your backend/server.string
required
Project slug. This acts as the Project ID in API paths.
string
required
Table name inside the project.
boolean
required
true for a successful response and false for an error response.object | null
Endpoint-specific response data when
ok is true; null on errors.object | null
Error code and message when
ok is false; null on success.string
required
Request identifier you can use when troubleshooting a specific API call.
Authentication
Project API Token.Parameters
Path:table required. Body optional: format csv or json, default csv; columns optional array; filters optional where/filter shape; sort optional column; order optional asc/desc; limit optional, clamped by server export max; offset optional; file_name optional.
For a date range, select the timestamp column and use two filters conditions: >= for the inclusive UTC start and < for the exclusive UTC end. The values must match the column’s stored representation, such as UTC ISO-8601 text or Unix epoch milliseconds. A row extract remains bounded by limit (5,000 by default, 40,000 maximum by default). If row_count reaches your limit, there may be additional matching rows; use another bounded slice or a narrower range. CSV and JSON table artifacts are written row by row during creation.
Request examples
Basic request:curl -X POST "$BASE_URL/projects/{project}/export/table/{table}" \
-H 'Authorization: Bearer pat_PROJECT_TOKEN' \
-H 'Content-Type: application/json' \
--data '{}'
curl -X POST "$BASE_URL/projects/{project}/export/table/{table}" \
-H 'Authorization: Bearer pat_PROJECT_TOKEN' \
-H 'Content-Type: application/json' \
-H 'X-Operation-Key: edit-profile-email' \
-H 'X-Operation-Run-Id: oprun_client_20260602_001' \
--data '{"format":"json","columns":["id","email","status"],"filters":[{"column":"status","op":"=","value":"active"}],"sort":"id","order":"desc","limit":5000,"offset":0,"file_name":"active_contacts"}'
{"format":"csv","filters":[{"column":"created_at","op":">=","value":"2026-09-01T00:00:00Z"},{"column":"created_at","op":"<","value":"2026-10-01T00:00:00Z"}],"sort":"created_at","order":"asc","limit":5000}
Response examples
Success:{
"ok": true,
"data": {
"export": {
"id": "exp_20260601_182345_a1b2c3d4e5",
"kind": "table_export",
"scope": "project",
"project": "example_project",
"table": "contacts",
"format": "csv",
"download_name": "contacts.csv",
"download_url": "/projects/example_project/export/download/exp_20260601_182345_a1b2c3d4e5",
"storage_backend": "local",
"content_type": "text/csv; charset=utf-8",
"row_count": 25,
"table_count": null,
"size_bytes": 2048,
"sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"status": "ready",
"status_reason": null,
"missing_at": null,
"created_at": "2026-06-02T01:23:45Z",
"expires_at": "2026-06-03T01:23:45Z"
}
},
"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"
}
}
{
"ok": false,
"data": null,
"error": {
"code": "invalid_export_format",
"message": "format must be csv or json for table exports."
},
"request_id": "req_20260602T012345_123456Z_abc123def456",
"meta": {
"generated_at": "2026-06-02T01:23:45Z"
}
}