---
title: "Export report as CSV"
method: GET
path: "/api/v1/reports/{id}/export/csv"
tags: ["Reports"]
---

# Export report as CSV

`GET /api/v1/reports/{id}/export/csv`

## Request

- Base URL: `https://api.dmarc-examiner.com`
- URL: `https://api.dmarc-examiner.com/api/v1/reports/{id}/export/csv`
- Auth: API key in header `X-API-Key`

Downloads the report records as a CSV file. Columns: Source IP, Count, Disposition, DKIM Result, SPF Result, Header From, Envelope From, DKIM Domain, SPF Domain, Country, ASN Org.

## Path parameters

- `id` string, uuid, required

## Response `200`

CSV file download

## Other responses

- `401`: Authentication failed. Two shapes are possible depending on cause: - **Invalid or revoked key** — body is `{"message": "..."}` only. - **Missing `X-API-Key` header** — body adds an `error: "unauthorized"` machine-readable code. Clients should treat both as the same outcome and read `message` for display.
- `403`: The organization's current plan does not include the feature required by this endpoint (e.g. `apiAccess`, `forensicReports`, `advancedAlerts`). Distinct from `PlanLimitExceeded` (HTTP 402), which signals a *quota* exhausted on a feature the plan does include. If a customer downgrades to Free, all `/api/v1/*` requests will start returning this response.
- `404`: Resource not found.
- `429`: Rate limit exceeded.
- `500`: Internal server error.

---

[API](https://skmtc.dev/dmarc-examiner/apis/dmarc-examiner-api.md) · [All operations](https://skmtc.dev/dmarc-examiner/apis/dmarc-examiner-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dmarc-examiner/apis/dmarc-examiner-api/revisions/92f3f57969f5?raw)
