---
title: "Export Csv"
method: GET
path: "/api/admin/mailing/export.csv"
tags: ["mailing"]
---

# Export Csv

`GET /api/admin/mailing/export.csv`

## Request

- Base URL: `https://api.getcheapgames.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getcheapgames.com/api/admin/mailing/export.csv`
- Auth: none declared

The list as a spreadsheet: subscribed addresses unless asked otherwise.
The same columns for either list; `alerts_sent` is the row's
`alertsSent`, so on the weekly deals the digests it was sent.

UTF-8, RFC 4180 (CRLF, fields quoted where they need it), formula-safe.
Streamed from a server-side cursor, so a large list is never held in
memory whole. The query runs before the answer starts, so a failure is
still a plain 500 rather than a cut-off file.

## Query parameters

- `status` 'all' | 'subscribed' | 'pending' | 'unsubscribed'
- `list` 'giveaways' | 'sales' | 'news'

## Headers

- `authorization` string

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getcheapgames/apis/getcheapgames-api.md) · [All operations](https://skmtc.dev/getcheapgames/apis/getcheapgames-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getcheapgames/apis/getcheapgames-api/revisions/57333a690301?raw)
