Get export status
Poll a suppression export until its download link is ready.
Once the job completes, the response carries download_url and row_count. Exports expire 7 days after completion; expires_at tells you when.
GET /v3/suppressions/exports/{id}
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | Optional | pending → processing → completed (or failed). |
download_url | string | Optional | Set once completed — points at GET /v3/suppressions/exports/{id}/download. |
row_count / filename / expires_at | mixed | Optional | Rows in the file, the suggested filename, and when the file is deleted. |
Responses
| Status | Description |
|---|---|
200 | The export job. |
404 | No such export on your account. |
Code examples
cURL
curl https://api.wemail.io/v3/suppressions/exports/{id} \
-H "Authorization: Bearer afn_live_…"Node.js
const res = await fetch("https://api.wemail.io/v3/suppressions/exports/{id}", {
headers: {
Authorization: `Bearer ${process.env.WEMAIL_API_KEY}`,
},
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api.wemail.io/v3/suppressions/exports/{id}",
headers={"Authorization": f"Bearer {os.environ['WEMAIL_API_KEY']}"},
)
data = r.json()