# create_subscriber_export

Start a subscriber export

`POST /v1/subscriber-exports`

| | |
| --- | --- |
| Risk | export |
| Authentication | API key or OAuth access token |
| Scopes | `subscribers:export` |
| Idempotency | supported: send an Idempotency-Key header to make retries safe |
| Dry run | not applicable |
| Success status | 202 |
| Response type | application/json |

## What it does

- Use when: You need a CSV of some or all readers; it builds in the background.
- Do not use when: you sync changes (call list_subscribers with updated_after) or only need counts (call estimate_audience).
- Side effects: Queues a background build that counts against your limits; Writes an audit entry.
- Reversible: Yes, call cancel_subscriber_export while it is queued or running.
- Required scope: subscribers:export.
- Idempotency: supported (Idempotency-Key header).
- Typical next step: poll get_subscriber_export until state is ready, then call create_subscriber_export_download.

## Scopes

- `subscribers:export`: Download the whole subscriber list as a CSV file.

## Side effects

- Queues a background build that counts against your limits
- Writes an audit entry

## Request

### Path parameters

None.

### Query parameters

None.

### Body (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `filter` | object | no | What to export. Omit for every confirmed reader. |
| `filter.statuses` | array of one of "confirmed", "pending", "unsubscribed", "suppressed" | no | Default: confirmed only. All four needs the owner's fresh sign-in in the dashboard. |
| `filter.lists` | array of string, max 20 items | no | Up to 20 list ids; a reader in any of them matches. |
| `filter.tags` | array of string, max 20 items | no | Up to 20 tag ids. |
| `filter.tag_match` | one of "any", "all" | no | Whether a reader needs any of the tags or all of them. Default any. |
| `filter.sources` | array of string, max 12 items | no | Where the reader came from, such as import, signup, manual or api. |
| `filter.confirmed_between` | object | no | UTC dates; matches readers who confirmed in the range. |
| `filter.confirmed_between.from` | string or null | no |  |
| `filter.confirmed_between.to` | string or null | no |  |
| `filter.created_between` | object | no | UTC dates; matches readers added in the range. |
| `filter.created_between.from` | string or null | no |  |
| `filter.created_between.to` | string or null | no |  |
| `filter.columns` | one of "standard", "with_consent" | no | standard: email, first name, status, source, lists, tags, confirmed at. with_consent adds the consent wording and version. |
| `build_new` | boolean | no | true skips reuse of an identical export built in the last 15 minutes and counts against your limits. |

## Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |
| `state` | one of "queued", "running", "ready", "failed", "expired", "canceled" | yes |  |
| `reused` | boolean | yes | true when an identical export built in the last 15 minutes was returned instead of building a new one. |
| `filter` | object | yes | The normalized filter this export was built from. |
| `columns` | one of "standard", "with_consent" | yes |  |
| `estimated_rows` | integer, min -9007199254740991, max 9007199254740991 or null | yes |  |
| `row_count` | integer, min -9007199254740991, max 9007199254740991 or null | yes | Set when the export is ready. |
| `created_at` | string | yes |  |
| `finished_at` | string or null | yes |  |
| `expires_at` | string or null | yes | The export and its file are deleted at this time. |
| `downloads_remaining` | integer, min 0, max 9007199254740991 | yes |  |
| `problem` | object or null | yes | Why a build failed, in words that name no reader. |
| `poll_after_seconds` | integer, max 9007199254740991 or null | yes |  |

## Examples

### confirmed readers who signed up

Request:

```bash
curl -X POST 'https://api.seemly.com/v1/subscriber-exports' \
  -H "Authorization: Bearer $SEEMLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "filter": {
    "sources": [
      "signup"
    ]
  }
}'
```

Response: `202`:

```json
{
  "id": "exp_0123456789abcdefghjkmnpq",
  "state": "queued",
  "reused": false,
  "filter": {
    "statuses": [
      "confirmed"
    ],
    "lists": [],
    "tags": [],
    "tag_match": "any",
    "sources": [],
    "confirmed_between": {
      "from": null,
      "to": null
    },
    "created_between": {
      "from": null,
      "to": null
    },
    "columns": "standard"
  },
  "columns": "standard",
  "estimated_rows": null,
  "row_count": null,
  "created_at": "2026-02-01T10:00:00Z",
  "finished_at": null,
  "expires_at": null,
  "downloads_remaining": 5,
  "problem": null,
  "poll_after_seconds": 5
}
```

## 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) |
| 409 | [`conflict`](/developers/md/errors/conflict), [`idempotency_key_reused`](/developers/md/errors/idempotency_key_reused), [`request_in_progress`](/developers/md/errors/request_in_progress) |
| 413 | [`payload_too_large`](/developers/md/errors/payload_too_large) |
| 415 | [`unsupported_media_type`](/developers/md/errors/unsupported_media_type) |
| 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)
- [`cancel_subscriber_export`](/developers/md/operations/cancel_subscriber_export)

## Related

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