Bulk Export Schema Overview
Authentication & onboarding
- Access is limited to Enterprise tier customers. Contact a Hatch Account Manager to enable the Bulk Export API for the organization.
- A Manager must create a reporting API key in Settings → API Keys.
- Every request must include the key in an
Authorization: Bearer <api-key>header.
How it works
The Bulk Export API is asynchronous. A client submits an export job, then polls for its status until the file is ready to download:1
Submit an export job
Send the dataset and date range. The response returns a
task_id.2
Poll for status
Request the job by its
task_id until the status is completed (or failed).3
Download the export
On completion, the response includes
file.url, a short-lived presigned download URL for a compressed file. Fetch it before it expires.Filtering and incremental loads
Each dataset is filtered on one timestamp column. The date range you submit selects rows whose filter column falls inside it, inclusive, in UTC.
A daily pull of yesterday’s range therefore returns new rows and changed rows.
Do not treat it as “created yesterday.”
updated_at moves only when one of the row’s own timestamps moves. When Hatch
changes how a derived field is calculated, existing rows are recomputed in
place without a new updated_at. Hatch announces every such change; re-pull
the affected history after an announcement rather than relying on the daily
increment.
Rate limits & constraints
- Data is refreshed nightly and is complete through the previous UTC day. Schedule pulls after 10:00 UTC.
- Date ranges may not exceed 180 days.
- Each dataset supports one export per organization in any rolling 24
hours, counted from the accepted submission: one each for
contact_history,contact_history_v2,conversation_items,leadsandattributions. A job that endsfailedreleases the slot immediately. Re-submitting the identical request returns the original job rather than starting a new one. To load history, run one 180-day job per dataset at least 24 hours apart. - The job submission endpoint is limited to 10 requests per minute and 100 requests per day, per organization.
- The job retrieval endpoint is limited to 1 request per second and 300 requests per day, per job.
- Retention:
contact_historyholds one year of history;contact_history_v2andleadshold two years;conversation_itemsandattributionshold full history.
Rate-limit headers
Every authenticated response from the export-job endpoints includes the current limit state. The values reflect the tightest active window (the one with the fewest remaining requests). The headers are absent on401
responses.
Errors
Every error response carries a JSON body of the form{"detail": "<message>"}. Validation failures (422) carry FastAPI’s
field-level detail list instead of a single string.
Step 1 — Submit an export job
Method & Path:POST /api/v2/exports/export-jobs
Submit a JSON body describing the dataset, date range, and output format. The
endpoint is idempotent: an identical request returns the existing job instead of
creating a duplicate.
Request body
Example request
Response
Step 2 — Poll for status
Method & Path:GET /api/v2/exports/export-jobs/{task_id}
Poll this endpoint until the job reaches completed or failed. The endpoint
allows at most one request per second and 300 requests per day per job. When
the job is completed, the response includes file.url, a presigned download
URL.
Example request
Example response (completed)
Response fields
Status values
Step 3 — Download the export
file.url points to a gzip-compressed file
(Content-Type: application/gzip): a CSV file (.csv.gz) by default, or
newline-delimited JSON (.json.gz) when output_format is json.
File format
- CSV: UTF-8, header row, RFC 4180 quoting. Timestamp columns are
RFC 3339 / ISO 8601 in UTC with six fractional digits,
YYYY-MM-DDTHH:MM:SS.ffffffZ. Date columns are ISO 8601YYYY-MM-DD. Booleans aretrue/false. Nulls are empty cells. An export with no matching rows produces an empty file with no header row. - JSON (newline-delimited): one object per line. Timestamps and dates as
above. Booleans
true/false. Nullsnull.
Operational guidance
- Review the schema overview to inspect columns before mapping the export into a warehouse.
- Submit a job once, then poll
GET /api/v2/exports/export-jobs/{task_id}with the returnedtask_iduntil the status iscompletedorfailed. - Plan for one export per dataset in any rolling 24 hours, and schedule pulls after 10:00 UTC.
Deprecated: GET /api/v1/export-data
Legacy synchronous endpoint (deprecated; use the v2 flow above)
Legacy synchronous endpoint (deprecated; use the v2 flow above)
The original v1 endpoint returned the export synchronously as a ZIP archive. It is deprecated and will be disabled on January 15, 2027; new integrations should use the asynchronous v2 flow above. It remains documented here for existing integrations until then.
v1 supportscontact_history and conversation_items only. contact_history_v2,
leads and attributions are v2-only.Method & Path: GET https://bulk-export-api.usehatchapp.com/api/v1/export-dataQuery parameters: data_source (required), start_date (required),
end_date (required), and output_format (optional; defaults to json on v1).{data_source}_{start_date}_{end_date}.csv (or .json for newline-delimited JSON).v1 file format differs from v2. v1 CSV booleans are True / False, and
v1 timestamps use a +00:00 offset with fractional seconds present only when
non-zero. Consumers moving from v1 CSV to v2 CSV should expect both to change.Next steps
- Review the Bulk Export schema overview for the available export columns.
- Request the Bulk Export API to be enabled for the organization through the Hatch Account Team.
- Confirm API keys exist under Settings → API Keys.
- Submit an export job, poll for completion, and download the export, planning for one export per dataset in any rolling 24 hours.