Export all leads (or a filtered subset) to CSV, JSON, or XLSX. Unlike the List endpoint, export returns all matching records in a single response — no pagination, no cursor. Use this for data backups, bulk processing, or feeding external tools.
GET /leads/export
format
csv
json
xlsx
filter
sort_by
sort_order
ASC
DESC
# Export all leads as CSVcurl -o leads.csv \ "https://api.klozeo.com/api/v1/leads/export?format=csv" \ -H "X-API-Key: sk_live_your_key" # Export Paris leads with rating ≥ 4, sorted by rating descendingcurl -o leads.xlsx \ "https://api.klozeo.com/api/v1/leads/export?format=xlsx&filter=and.eq.city.Paris&filter=and.gte.rating.4&sort_by=rating&sort_order=DESC" \ -H "X-API-Key: sk_live_your_key"
text/csv
application/json
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet