TryzenAPI
Campaigns

Launch a draft

POST
/v1/campaigns/{campaignId}/launch

Access: an API key (or an org-wide key naming the workspace) with manage on campaigns. A key also needs the launchCampaigns permission, which is off unless ticked when the key is made.

Re-checks every precondition on the server, in the same transaction as the status flip: lead list exists and is ready, senders connected, schedule, and the sequence (with the list's custom fields as variables). Rejections list every issue (status 200). A concurrent change is 409 campaign_changed. launch-check answers the same without launching. An API key needs the launchCampaigns permission (403 api_key_not_allowed without it); keys made before it existed have it when they hold manage on campaigns.

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
status*"launched"
Value in"launched"
campaignStatus*string
Value in"draft""scheduled""starting""in_progress""paused""finished""canceled""failed"
launchedAt*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
sequenceVersionId*string
Match^[0-9a-f]{24}$
warnings*array<>
Example Request
curl -X POST 'https://api.tryzen.co/v1/campaigns/string/launch'
Example Response
{  "status": "launched",  "campaignStatus": "draft",  "launchedAt": "2019-08-24T14:15:22Z",  "sequenceVersionId": "string",  "warnings": [    {      "code": "not_draft",      "severity": "error",      "field": "status",      "message": "string"    }  ]}