Workflow Triggers
Trigger workflow
Changed onTriggers a workflow with the given key, actor, recipients, and optional data.
post/v1/notify
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/notify
- Auth: HTTP bearer
Request body
Example request
{
"actor": "user_123",
"cancellation_key": "comment_123",
"data": {
"comment": "Great work on this feature!",
"url": "https://example.com/projects/123/comments/456"
},
"name": "new-comment",
"recipients": [
"user_456",
{
"collection": "projects",
"id": "project_789"
}
]
}Response
OK
Example response
{
"result_id": "wf_1234567890abcdef"
}Changes
- info
api operation id
triggerWorkflowremoved and replaced withtriggerWorkflow (2)
- info