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

ParameterTypeRequiredDescription
statusstringOptionalpendingprocessingcompleted (or failed).
download_urlstringOptionalSet once completed — points at GET /v3/suppressions/exports/{id}/download.
row_count / filename / expires_atmixedOptionalRows in the file, the suggested filename, and when the file is deleted.

Responses

StatusDescription
200The export job.
404No 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()