Workflows::Trigger
Create Trigger
Add a new trigger to a workflow. The event_type_key must be a valid workflow trigger event key — an invalid value returns 422. All condition FK fields accept the integer id or obfuscated public_id of a referenced resource in the same workspace/team scope.
post/workflows/{workflow_id}/triggers
Path parameters
workflow_idstring required
Integer id or obfuscated public_id of the workflow.
Request body
Example request
{
"workflows_trigger": {
"event_type_key": "$contact.tag_applied",
"active": true,
"contacts_tag_id": 7001
}
}Response
Created
Example response
{
"id": 11,
"public_id": "TrXxYy",
"workflow_id": 101,
"event_type_key": "$contact.tag_applied",
"event_type_name": "Contact tag applied",
"active": true,
"allow_anonymous_contacts": false,
"subscription_cancelation_reason": null,
"contacts_tag_id": 7001,
"funnel_id": null,
"page_id": null,
"product_id": null,
"cancellation_product_id": null,
"product_variant_id": null,
"cancellation_product_variant_id": null,
"subscription_variant_to_id": null,
"sales_pipelines_id": null,
"current_sales_pipelines_stage_id": null,
"appointments_calendar_id": null,
"appointments_event_type_id": null,
"course_id": null,
"courses_lesson_id": null,
"courses_section_id": null,
"community_id": null,
"communities_space_id": null,
"communities_space_group_id": null,
"emails_broadcasts_id": null,
"calendar_event_id": null,
"survey_workflow_id": null,
"workflows_step_id": null,
"created_at": "2025-06-01T00:00:00.000Z",
"updated_at": "2025-06-01T00:00:00.000Z"
}