Skip to content

Workflow Triggers

List of valid attributes:

AttributeDescriptionSpecifics
account_idID of an account a trigger belongs toCannot be set
created_atTimestamp of creationCannot be set
eventThe action that triggers the workflowRequired. Currently only create is supported
item_typeThe type of entity that the event applies toRequired. Currently only user is supported

Create

Example request:

{
"data": {
"type": "workflow_event_trigger",
"attributes": {
"event": "create",
"item_type": "user"
}
}
}

Example response:

{
"data": {
"id": "85579c3b-22ea-43b8-ab79-d60d05680be5",
"type": "workflow_event_trigger",
"attributes": {
...
}
}
}

This endpoint creates a new trigger for a workflow.

HTTP Request

POST /api/v1/workflows/:workflow_id/trigger

URL Parameters

ParameterDescription
workflow_idThe ID of the workflow that the trigger belongs to