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

# Export Logs

> Export email logs, bounce reports, or delivery data as downloadable files.

Create an export job to download email delivery data in CSV format.

<ParamField body="type" type="string" required>
  Type of export: `email_logs`, `bounces`, `suppressions`, or `opens`.
</ParamField>

<ParamField body="from_date" type="string" required>
  Start date in ISO 8601 format.
</ParamField>

<ParamField body="to_date" type="string" required>
  End date in ISO 8601 format.
</ParamField>

<ParamField body="domain" type="string">
  Filter by sending domain. Optional.
</ParamField>

### Request

```bash cURL theme={null}
curl -X POST https://api.unosend.co/v1/exports \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "email_logs",
    "from_date": "2026-01-01T00:00:00Z",
    "to_date": "2026-01-31T23:59:59Z"
  }'
```

### Response

```json 202 theme={null}
{
  "message": "Export job created",
  "data": {
    "export_id": "exp_abc123",
    "type": "email_logs",
    "status": "processing",
    "created_at": "2026-01-15T10:30:00.000Z"
  }
}
```

***

## List Exports

<api>GET /v1/exports</api>

Fetch all export jobs and their statuses.

```bash cURL theme={null}
curl -X GET https://api.unosend.co/v1/exports \
  -H "Authorization: Bearer un_xxxxxxxxxx"
```

### Response

```json 200 theme={null}
{
  "data": [
    {
      "export_id": "exp_abc123",
      "type": "email_logs",
      "status": "completed",
      "download_url": "https://api.unosend.co/v1/exports/exp_abc123/download",
      "created_at": "2026-01-15T10:30:00.000Z",
      "expires_at": "2026-01-22T10:30:00.000Z"
    }
  ]
}
```

***

## Download Export

<api>GET /v1/exports/{export_id}/download</api>

Download a completed export file.

```bash cURL theme={null}
curl -X GET https://api.unosend.co/v1/exports/exp_abc123/download \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -o email_logs.csv
```

<Note>
  Export download links expire after **7 days**. Create a new export if the link has expired.
</Note>

***

## Delete Export

<api>DELETE /v1/exports</api>

Delete one or more completed exports.

```bash cURL theme={null}
curl -X DELETE "https://api.unosend.co/v1/exports?export_ids=exp_abc123,exp_def456" \
  -H "Authorization: Bearer un_xxxxxxxxxx"
```

### Response

```json 200 theme={null}
{
  "message": "Exports deleted",
  "deleted": ["exp_abc123", "exp_def456"]
}
```
