> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leads-siren.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download File

Download the enriched CSV file using a temporary token generated by the `/generate-download-url` endpoint. This is a **public** endpoint — no API key is required.

## Path Parameters

<ParamField path="token" type="string" required>
  The one-time download token returned by the `/generate-download-url` endpoint. Tokens expire after a set period.
</ParamField>

## Response

Returns a CSV file as a binary download with `Content-Type: text/csv`.

<RequestExample>
  ```bash cURL theme={null}
  curl -O https://search.leads-siren.com/enrichment-service/download/abc123token
  ```

  ```python Python theme={null}
  import requests

  resp = requests.get(
      "https://search.leads-siren.com/enrichment-service/download/abc123token"
  )

  with open("enriched_data.csv", "wb") as f:
      f.write(resp.content)
  ```
</RequestExample>

<ResponseExample>
  ```text 200 theme={null}
  full_name,company,siren,phone,email
  Jean Dupont,Example SARL,123456789,+33 1 23 45 67 89,jean.dupont@example.com
  Marie Martin,Test SAS,987654321,+33 6 12 34 56 78,marie.martin@example.com
  ```

  ```json 404 theme={null}
  {
    "detail": "Link expired"
  }
  ```
</ResponseExample>
