Request
Returns a CSV file of companies (client companies only, not workspace rows) matching the query. Response is streamed with Content-Type: text/csv; charset=utf-8.
Query Parameters
Maximum rows per request. Maximum 50,000.
Filter by industry string.
Filter by size bucket (e.g. 11-50, 51-200).
ISO 3166-1 alpha-2 country code of the HQ location.
Filter by tag. Repeat to require multiple.
Comma-separated field whitelist. Defaults to id,name,domain,industry,size,founded_year,hq_location,linkedin_url,tags,created_at.
Authorization: Bearer wbk_your_api_key_here
Accept: text/csv
Response
CSV stream with Content-Disposition: attachment; filename="companies-export.csv". First row is headers. Responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
curl "https://data.leadlex.com/functions/v1/api-gateway/v1/companies/export?industry=Legal%20Services&limit=3000" \
-H "Authorization: Bearer wbk_your_api_key_here" \
-H "Accept: text/csv" \
-o companies-legal.csv
Example Response
id,name,domain,industry,size,founded_year,hq_location,linkedin_url,tags,created_at
co_01HY1,Acme Corp,acme.com,Legal Services,201-500,1998,"New York, NY, US",https://linkedin.com/company/acme,"priority",2026-02-11T09:00:00Z
co_02HY2,Beta LLP,beta.com,Legal Services,11-50,2014,"Berlin, DE",,"prospect",2026-03-02T10:15:00Z
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:companies permission |
| 429 | rate_limited | Export rate limit exceeded (10 per hour per workspace) |