TryzenAPI
Campaigns

Export the current sequence version as JSON

GET
/v1/campaigns/{campaignId}/sequence/export

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

A versioned document (format: notreach.sequence, v: 1) that POST …/sequence/import reads in any workspace. Not for draft or scheduled campaigns (409 sequence_not_exportable).

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
format*string
v*number
exportedAt*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))$
Formatdate-time
source?
tree*
Example Request
curl -X GET 'https://api.tryzen.co/v1/campaigns/string/sequence/export'
Example Response
{  "format": "notreach.sequence",  "v": 1,  "exportedAt": "2019-08-24T14:15:22Z",  "source": {    "campaignName": "string",    "version": 1  },  "tree": {    "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"        }      }    }  }}