Workflow Triggers

Create a workflow trigger

Create a trigger that fires when the source workflow emits an event. The target must share the source ownership scope (same team for team workflows, or the same user for personal workflows) and must not be a realtime workflow. Superadmins are subject to the same scope check on the public endpoint.

post/v4/workflows/{workflowId}/triggers

Request

  • Base URL: https://api.kadoa.com
  • URL: https://api.kadoa.com/v4/workflows/{workflowId}/triggers
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

workflowIdstring required

ID of the source workflow

Headers

x-api-keystring
Authorizationstring

Request body

targetWorkflowIdstring required

ID of the workflow to trigger

eventType'workflow_started' | 'workflow_finished' | 'workflow_export_completed' | 'workflow_failed' | 'workflow_recovered' | 'workflow_sample_finished' | 'workflow_data_change' | 'workflow_data_quality_change' | 'workflow_health_degraded' required

Event type that triggers the target workflow

enabledboolean

Whether the trigger is enabled

Response

Trigger created successfully

Changes

No recorded changes to this operation across all 1 revision of this API.