Export leads
Exports formula-safe CSV using the same filters as list leads. Exports are capped at 10,000 matching leads per response; use the returned X-Export-Next-Cursor when X-Export-Truncated is true.
Bearer API key · Scope: leads.export
Endpoint
Query parameters9 parameters
sourcestring—
mediumstring—
campaignstring—
fromstring:date-timeInclusive updated_at lower bound for incremental sync.
tostring:date-timeInclusive updated_at upper bound for incremental sync.
status_stage_idstring—
searchstring—
cursorstringOpaque cursor returned by list/export responses. Send it back unchanged; malformed cursors return 400.
limitinteger—
Responses
200CSV export.
Headers
X-RateLimit-LimitMaximum requests allowed in the current window.X-RateLimit-RemainingRequests remaining in the current window.X-RateLimit-ResetISO timestamp when the current rate-limit window resets.Content-DispositionDocumented response headerX-Export-Truncatedtrue when additional matching rows remain after the CSV cap.X-Export-Next-CursorCursor to pass back to `/api/v1/leads/export` for the next export segment when truncated.
text/csv
string
400Request payload, query, or required header is invalid.
application/json
ErrorResponse401Missing, malformed, revoked, deleted, or unknown API key.
Headers
WWW-AuthenticateDocumented response header
application/json
ErrorResponse403API key lacks the required scope or the workspace is not active.
application/json
ErrorResponse429Rate limit exceeded for this key and endpoint or invalid-auth bucket.
Headers
X-RateLimit-LimitMaximum requests allowed in the current window.X-RateLimit-RemainingRequests remaining in the current window.X-RateLimit-ResetISO timestamp when the current rate-limit window resets.Retry-AfterSeconds until the caller should retry.
application/json
ErrorResponse500Internal authentication or server error.
application/json
ErrorResponse