Skip to content
API reference/Campaigns

Close a campaign

Stop listener entries now while retaining the campaign, entries and reporting history.

POST/api/v1/campaigns/{token}/close

Authentication

Send your workspace key as xi-api-key or Authorization: Bearer.

campaigns:writedestructive

Parameters

Named placeholders belong in the path. Other arguments use a JSON body.

tokenRequired
string

Response

JSON response with status 200.

Requests and errors →
Illustrative arguments
{
  "token": "YOUR_VALUE"
}
Input schema
{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[a-zA-Z0-9_-]+$"
    }
  },
  "required": [
    "token"
  ],
  "additionalProperties": false
}
Response schema
{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "ok"
  ],
  "additionalProperties": false
}