Create a draft campaign
Access: an API key (or an org-wide key naming the workspace) with manage on campaigns.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
name*string1 <= length <= 200Default Response
application/json- response
campaign*curl -X POST 'https://api.tryzen.co/v1/campaigns' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "campaign": { "id": "string", "name": "string", "status": "draft", "revision": 0, "listId": "string", "excludeListId": "string", "exclusions": { "otherCampaigns": false, "otherSenderConversations": false, "sameSenderOtherCampaigns": false, "blacklistLeads": true, "blacklistCompanies": true }, "senderIds": [ "string" ], "schedule": { "tz": "string", "days": [ "mon" ], "from": "string", "to": "string", "startDate": "string", "endDate": "string" }, "sequence": { "rootId": "string", "nodes": { "property1": { "type": "if_connected", "config": {}, "delay": { "value": 0, "unit": "hours" }, "branches": { "yes": "string", "no": "string" } }, "property2": { "type": "if_connected", "config": {}, "delay": { "value": 0, "unit": "hours" }, "branches": { "yes": "string", "no": "string" } } } }, "sequenceVersion": 1, "launchedAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}Campaigns in this workspace, newest change first GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`. Filters: `search` (part of the name, case-insensitive), `status` (repeat the key for several), `senderId` (campaigns this sender is in), `leadId` (campaigns this lead is enrolled in). Keyset paging: up to `limit` (≤ 100, default 100) rows; pass `nextCursor` back as `cursor` for the next page (null on the last). A malformed cursor is 400 `invalid_cursor`.
Lead lists the wizard can pick, with their custom fields GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`.