Export Leads
Start a CSV export of your leads as a background job.
https://api.foxreach.io/ api/ v1/ leads/ exportRequires an API key with the read scope.
Builds a CSV of up to 100,000 leads, newest first, in the background. The call returns a 202 with a lead_export job. When the job is completed, its result carries rows, downloadUrl and expiresInSeconds. Fetch the file with Download Lead Export using the same API key. The file is kept for one hour.
Custom fields become extra columns. Spreadsheet formulas in values are neutralised.
Body Parameters#
searchstringbodytagsstringbodyResponse#
dataobjectThe job (type lead_export, status pending). Once completed, result is { "rows": 4210, "downloadUrl": "/api/v1/leads/export/{job_id}/download", "expiresInSeconds": 3600 }.
Errors#
| Status | Description |
|---|---|
401 | Missing, invalid, revoked or expired API key |
403 | API key does not have the required scope: read |
Rate Limit#
- 100 requests per minute, shared by every
bulkcall in your workspace. Fixed 60-second window. - Every response includes
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset(unix epoch seconds) andX-RateLimit-Bucket(bulk). - A
429response includes aRetry-Afterheader (seconds until the bucket resets).
For client-side patterns (Retry-After, exponential backoff, monitoring X-RateLimit-Remaining), see Rate Limiting.