Get a download link for a ready export
On this page
POST
/v1/subscriber-exports/{export_id}/downloadcreate_subscriber_export_download| Risk | export |
| Authentication | API key or OAuth access token |
| Scopes | subscribers:export |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | not applicable |
| Success status | 200 |
| Response type | application/json |
What it does#
- Use when: An export is ready and you want the file; the link works for 2 minutes and each call counts as one of 5 downloads.
- Do not use when: the export is not ready yet (call get_subscriber_export) or the key was made by a non-owner.
- Side effects: Counts one download and writes an audit entry.
- Reversible: No.
- Required scope: subscribers:export.
- Idempotency: safe to repeat (same result).
- Typical next step: GET the url right away and store the file safely; it holds every matching reader's address.
Scopes#
subscribers:export: Download the whole subscriber list as a CSV file.
Side effects#
- Counts one download and writes an audit entry
Request#
Path parameters#
| Field | Type | Description |
|---|---|---|
export_id | string |
Query parameters#
None.
Response#
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | A link that works for 2 minutes. Fetch it with GET; it returns the CSV as an attachment. |
expires_at | string | yes | |
row_count | integer, min 0, max 9007199254740991 | yes | |
downloads_remaining | integer, min 0, max 9007199254740991 | yes |
Examples#
link#
Request:
curl -X POST 'https://api.seemly.com/v1/subscriber-exports/exp_0123456789abcdefghjkmnpq/download' \
-H "Authorization: Bearer $SEEMLY_API_KEY"const response = await fetch("https://api.seemly.com/v1/subscriber-exports/exp_0123456789abcdefghjkmnpq/download", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.SEEMLY_API_KEY}`,
},
});
const result = await response.json();
console.log(response.status, result);import os
import requests
response = requests.post(
"https://api.seemly.com/v1/subscriber-exports/exp_0123456789abcdefghjkmnpq/download",
headers={
"Authorization": f"Bearer {os.environ['SEEMLY_API_KEY']}",
},
)
print(response.status_code, response.json())Response: 200:
{
"url": "https://edge.example.com/export-download?t=ed1.k1.payload.signature",
"expires_at": "2026-02-01T10:02:00Z",
"row_count": 1200,
"downloads_remaining": 4
}Errors#
Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.