# Download Batch Enrichment CSV (Recommended)

Download the enriched CSV dataset via a temporary presigned URL. This is the recommended endpoint for downloading CSV results.

Compared to the direct download endpoint, this returns a short-lived URL that lets you download the file directly from storage — faster and more reliable for large files.

Requirements
- Batch must be in finished status
- Results file must have been generated

Output format
- CSV only — for JSON output, use the direct download endpoint (GET /public/v1/enrichment/batch/{batch_id}/) with ?format=json

Response
- download_url — temporary URL (valid for a limited time)
- expires_in — seconds until the URL expires
- expires_at — expiration timestamp

Error Responses
- 400 Bad Request — batch not completed yet or no results file available
- 404 Not Found — invalid batch ID or batch does not belong to client

Credits
- 0 credits (download only)

Endpoint: GET /public/v1/enrichment/batch/{batch_id}/download/
Version: 1.0.0
Security: Bearer

## Path parameters:

  - `batch_id` (string, required)
    Unique batch identifier returned when creating the enrichment batch

## Response 200 fields (application/json):

  - `download_url` (string, required)
    Temporary presigned S3 download URL

  - `filename` (string, required)
    Suggested filename for the download

  - `expires_in` (integer, required)
    URL expiration time in seconds

  - `expires_at` (string, required)
    ISO 8601 timestamp when the URL expires

  - `batch_id` (string, required)
    Unique identifier for the batch enrichment job

  - `total_results` (integer, required)
    Number of enriched results in the file

  - `invalid_records` (integer, required)
    Number of invalid records in the batch


## Response 400 fields

## Response 401 fields

## Response 422 fields
