API referenceSequences
Create a sequence
POST
/sequencesCreates a draft. The step graph is checked: every referenced step, template and list exists, every step is reachable, every loop passes a delay or wait, and conditions compile.
Authorization
apiKey AuthorizationBearer <token>
A project API key: Authorization: Bearer s0_…
In: header
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/sequences" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "trigger": { "type": "event", "event": "string" }, "steps": { "entry": "string", "steps": { "property1": { "type": "delay", "next": "string" }, "property2": { "type": "delay", "next": "string" } } } }'{ "object": "sequence", "id": "string", "name": "string", "description": "string", "status": "draft", "trigger": { "type": "event", "event": "string" }, "steps": { "entry": "string", "steps": { "property1": { "type": "delay", "duration": { "amount": 1, "unit": "minutes" }, "until_time": { "weekdays": [ "mon" ], "time": "string", "timezone": "string" }, "until_date": { "property": "string", "offset": { "amount": 1, "unit": "minutes", "direction": "before" }, "time": "string", "timezone": "string" }, "next": "string" }, "property2": { "type": "delay", "duration": { "amount": 1, "unit": "minutes" }, "until_time": { "weekdays": [ "mon" ], "time": "string", "timezone": "string" }, "until_date": { "property": "string", "offset": { "amount": 1, "unit": "minutes", "direction": "before" }, "time": "string", "timezone": "string" }, "next": "string" } } }, "graph_version": 1, "from": "string", "reply_to": [ "string" ], "allow_reentry": true, "stats": { "active": 0, "completed": 0, "exited": 0 }, "activated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}