TryzenAPI
Campaigns

Would this draft launch now? Every problem, without launching

POST
/v1/campaigns/{campaignId}/launch-check

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

Runs exactly the launch's checks (lead list exists and is ready, senders connected, schedule, the sequence with the list's custom fields as variables) and changes nothing. ok with warnings only, or not ok with every issue, in the shapes launch rejects with: issues and sequenceIssues. wouldBecome is starting, or scheduled for a future start date. A campaign that isn't a draft answers ok: false with not_draft.

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
wouldBecome*|null
issues*array<>
sequenceIssues*array<>
Example Request
curl -X POST 'https://api.tryzen.co/v1/campaigns/string/launch-check'
Example Response
{  "ok": true,  "wouldBecome": "draft",  "issues": [    {      "code": "not_draft",      "severity": "error",      "field": "status",      "message": "string"    }  ],  "sequenceIssues": [    {      "code": "invalid_schema",      "severity": "error",      "nodeId": "string",      "path": [        "string"      ],      "message": "string"    }  ]}