TryzenAPI
Campaigns

Delete a campaign

DELETE
/v1/campaigns/{campaignId}

Access: an API key (or an org-wide key naming the workspace) with manage on campaigns.

Drafts and finished, canceled or failed campaigns. A scheduled, starting, running or paused campaign is 409 campaign_not_deletable: cancel it first. Right after a cancel, while its leads are still being stopped, 409 campaign_still_stopping: try again in a minute. The campaign and its sequence versions are deleted; its leads' history (actions, stats, lead rows) stays, so exclusion rules still see who it reached and workspace totals stay true. Webhooks filtered on it lose it from their filter; one filtered on it alone is deactivated rather than widened to all campaigns (webhooks counts both).

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

campaignId*string
Match^[0-9a-f]{24}$

Response Body

Default Response

application/json
  1. response
ok*boolean
webhooks*
Example Request
curl -X DELETE 'https://api.tryzen.co/v1/campaigns/string'
Example Response
{  "ok": true,  "webhooks": {    "narrowed": 0,    "deactivated": 0  }}