Get an export's state
On this page
GET
/v1/subscriber-exports/{export_id}get_subscriber_export| Risk | read |
| 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: You started an export and wait for it, or check how many downloads are left.
- Do not use when: you want the file (call create_subscriber_export_download once state is ready).
- Side effects: None.
- Reversible: Not applicable, nothing changes.
- Required scope: subscribers:export.
- Idempotency: safe to repeat.
- Typical next step: wait poll_after_seconds, or call create_subscriber_export_download when state is ready.
Scopes#
subscribers:export: Download the whole subscriber list as a CSV file.
Request#
Path parameters#
| Field | Type | Description |
|---|---|---|
export_id | string |
Query parameters#
None.
Every read also accepts fields=a,b,c to return only those top-level fields.
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#
ready#
Request:
curl 'https://api.seemly.com/v1/subscriber-exports/exp_0123456789abcdefghjkmnpq' \
-H "Authorization: Bearer $SEEMLY_API_KEY"const response = await fetch("https://api.seemly.com/v1/subscriber-exports/exp_0123456789abcdefghjkmnpq", {
headers: {
"Authorization": `Bearer ${process.env.SEEMLY_API_KEY}`,
},
});
const result = await response.json();
console.log(response.status, result);import os
import requests
response = requests.get(
"https://api.seemly.com/v1/subscriber-exports/exp_0123456789abcdefghjkmnpq",
headers={
"Authorization": f"Bearer {os.environ['SEEMLY_API_KEY']}",
},
)
print(response.status_code, response.json())Response: 200:
{
"id": "exp_0123456789abcdefghjkmnpq",
"state": "ready",
"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": 1200,
"created_at": "2026-02-01T10:00:00Z",
"finished_at": "2026-02-01T10:00:20Z",
"expires_at": "2026-02-02T10:00:20Z",
"downloads_remaining": 5,
"problem": null,
"poll_after_seconds": null
}Errors#
Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.