Export Contacts
Import & Export
Export Contacts
Download contacts as CSV for analytics and backup purposes
GET
Export Contacts
Request
Returns a CSV file of contacts matching the query. Use for analytics exports, backups, or migrating data out of LeadLex. The response is streamed withContent-Type: text/csv; charset=utf-8.
Query Parameters
Maximum rows to return. Maximum 50,000 per request. For larger exports, paginate by
created_after / created_before.ISO 8601 lower bound on
created_at.ISO 8601 upper bound on
created_at.Filter by list membership.
Filter to contacts carrying the given tag. Repeat to require multiple tags.
Comma-separated list of fields to include. Defaults to the standard export set (
id, full_name, email, phone, job_title, company_name, linkedin_url, tags, created_at).Headers
Response
The body is a CSV document. Responses includeX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID, and Content-Disposition: attachment; filename="contacts-export.csv". The first row is always the header.
Example Response
Errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | limit exceeds 50,000 or invalid filter value |
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing read:contacts permission |
| 429 | rate_limited | Export is rate-limited to 10 calls per hour per workspace |