---
title: "Export leaks from a notification run to CSV/TXT/JSON"
method: GET
path: "/notification_runs/{run_id}/export"
tags: ["Notifications Runs"]
---

# Export leaks from a notification run to CSV/TXT/JSON

`GET /notification_runs/{run_id}/export`

Queue an export of leaks associated with a specific notification run. Optional `search` and `is_email` filters apply. The job runs asynchronously and the file will appear in the Exports section when ready.

**Limits**
- You can have at most 5 exports with status PENDING or IN_PROGRESS.

**Query parameters**
- `format` optional output format: `csv` (default), `txt`, or `json`.

**Response**
`ExportResponse` with `status`, `message`, and `export_id`.

**Errors**
- 400 Too many exports in progress.
- 401 Authentication required, or invalid/expired API key.
- 404 Run not found.
- 422 Request validation error.

## Path parameters

- `run_id` integer, required — ID of the notification run.

## Query parameters

- `search` string, nullable — Optional free-text filter on URL or username.
- `is_email` boolean, nullable — Filter by identifier type: true=emails, false=usernames, null=both.
- `format` 'csv' | 'txt' | 'json'

## Response `200`

Export queued successfully.

- ExportResponse
  - `status` string, required — Export job status: 'queued', 'processing', 'completed', or 'failed'.
  - `message` string, required — Human-readable status message.
  - `export_id` integer, required — ID of the export job. Use this to check status or download the result.

## Other responses

- `400` — Too many exports in progress.
- `401` — Authentication required.
- `404` — Run not found.
- `422` — Validation Error

---

[API](https://skmtc.dev/leakradar/apis/leakradar-io-api.md) · [All operations](https://skmtc.dev/leakradar/apis/leakradar-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leakradar/leakradar-io-api/revisions/eb219e94d077/schema)
