# Export leads to CSV from your code (/docs/leads/csv-export/api)

Authenticated with `?privateKey=YOUR_KEY` (see [Authentication](/docs/authentication)).

<Endpoints ops={["POST /v3/leads/export"]} />

<ApiPlayground
  ops={["POST /v3/leads/export"]}
  method="post"
  path="/v3/leads/export"
  tool="export_leads_csv"
  args={`{
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9",
  "dateFrom": "2026-10-01",
  "dateTo": "2026-10-30"
}`}
/>

## Use case: A monthly export [#use-case-a-monthly-export]

`POST /v3/leads/export` with the month as `dateFrom`/`dateTo`. The download link is emailed to you.
