Appearance
Workflows
Endpoints of the public API tagged Workflows, generated from the API's OpenAPI document. Base URL: your API origin, for example https://api.example.com. See API overview and API keys and scopes.
List automation workflows (contacts can be added to published ones)
text
GET /api/v1/rest/workflows- Operation id:
listWorkflows - Scope:
workflows:enroll
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
name | string | yes | |
description | string | yes | |
status | string | yes | |
publishedVersion | number | yes | |
trigger | object | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Add a contact to a published workflow (it starts at the workflow's first step)
text
POST /api/v1/rest/workflows/{workflowId}/enrollments- Operation id:
addContactToWorkflow - Scope:
workflows:enroll
Parameters
| Name | In | Required | Type |
|---|---|---|---|
workflowId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
contactId | string | yes |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
runId | string | yes | |
workflowId | string | yes | |
version | number | yes | |
contactId | string | yes |
Take a contact out of a workflow (its runs exit)
text
DELETE /api/v1/rest/workflows/{workflowId}/enrollments/{contactId}- Operation id:
removeContactFromWorkflow - Scope:
workflows:enroll
Parameters
| Name | In | Required | Type |
|---|---|---|---|
workflowId | path | yes | string |
contactId | path | yes | string |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
workflowId | string | yes | |
contactId | string | yes | |
removed | array | yes |
Fire one of your app's declared triggers for a contact (by id, or by email: created when new); app tokens only
text
POST /api/v1/rest/apps/triggers/{triggerKey}- Operation id:
fireAppTrigger - Scope:
workflows:enroll
Parameters
| Name | In | Required | Type |
|---|---|---|---|
triggerKey | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
contactId | string | no | |
email | string | no | |
data | object | no |
Response (202): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
eventId | string | yes | |
contactId | string | yes | |
trigger | string | yes | |
contactCreated | boolean | yes |