# create_subscriber_export_download

Get a download link for a ready export

`POST /v1/subscriber-exports/{export_id}/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:

```bash
curl -X POST 'https://api.seemly.com/v1/subscriber-exports/exp_0123456789abcdefghjkmnpq/download' \
  -H "Authorization: Bearer $SEEMLY_API_KEY"
```

Response: `200`:

```json
{
  "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

| Status | Codes |
| --- | --- |
| 400 | [`validation_failed`](/developers/md/errors/validation_failed) |
| 401 | [`unauthenticated`](/developers/md/errors/unauthenticated), [`credential_revoked`](/developers/md/errors/credential_revoked), [`credential_expired`](/developers/md/errors/credential_expired) |
| 403 | [`insufficient_scope`](/developers/md/errors/insufficient_scope), [`plan_does_not_include`](/developers/md/errors/plan_does_not_include), [`workspace_paused`](/developers/md/errors/workspace_paused), [`api_suspended`](/developers/md/errors/api_suspended), [`consent_required`](/developers/md/errors/consent_required) |
| 404 | [`not_found`](/developers/md/errors/not_found) |
| 409 | [`conflict`](/developers/md/errors/conflict) |
| 429 | [`rate_limited`](/developers/md/errors/rate_limited), [`quota_exceeded`](/developers/md/errors/quota_exceeded) |
| 503 | [`service_unavailable`](/developers/md/errors/service_unavailable) |

Every error is an `application/problem+json` body with a `code`, a `fix` sentence and `next_actions`. See [reading a problem response](/developers/md/guides/agents#reading-a-problem-response).

## Typical next steps

- [`get_subscriber_export`](/developers/md/operations/get_subscriber_export)

## Related

- [OpenAPI document](https://api.seemly.com/v1/openapi.json)
- [Agent guide](/developers/md/guides/agents)
