Skip to content

Cancel a queued or running export

On this page
POST/v1/subscriber-exports/{export_id}/cancelcancel_subscriber_export
Riskwrite
AuthenticationAPI key or OAuth access token
Scopessubscribers:export
Idempotencynatural: repeating the call gives the same result
Dry runnot applicable
Success status200
Response typeapplication/json

What it does#

  • Use when: You started an export by mistake; the build stops and its partial file is deleted.
  • Do not use when: it is already ready (it expires on its own after 24 hours).
  • Side effects: Stops the build; the build still counts against your daily limit.
  • Reversible: No.
  • Required scope: subscribers:export.
  • Idempotency: safe to repeat (same result).
  • Typical next step: call create_subscriber_export when you are ready to try again.

Scopes#

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

Side effects#

  • Stops the build; the build still counts against your daily limit

Request#

Path parameters#

FieldTypeDescription
export_idstring

Query parameters#

None.

Response#

FieldTypeRequiredDescription
idstringyes
stateone of "queued", "running", "ready", "failed", "expired", "canceled"yes
reusedbooleanyestrue when an identical export built in the last 15 minutes was returned instead of building a new one.
filterobjectyesThe normalized filter this export was built from.
columnsone of "standard", "with_consent"yes
estimated_rowsinteger, min -9007199254740991, max 9007199254740991 or nullyes
row_countinteger, min -9007199254740991, max 9007199254740991 or nullyesSet when the export is ready.
created_atstringyes
finished_atstring or nullyes
expires_atstring or nullyesThe export and its file are deleted at this time.
downloads_remaininginteger, min 0, max 9007199254740991yes
problemobject or nullyesWhy a build failed, in words that name no reader.
poll_after_secondsinteger, max 9007199254740991 or nullyes

Examples#

canceled#

Request:

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

Response: 200:

JSON
{
  "id": "exp_0123456789abcdefghjkmnpq",
  "state": "canceled",
  "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": "2026-02-01T10:00:20Z",
  "expires_at": null,
  "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.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.