Create Trigger
Create a new trigger.
Creates a new trigger with the specified configuration. The trigger will be validated and, if it's a cron trigger, automatically scheduled.
If channel_credentials are provided, they are stored encrypted in the secret store under key channel_cred:{webhook_type}:{trigger_id}.
Args: payload: Trigger creation DTO (single source of truth shared with MCP toolset). user_context: Authentication context. trigger_service: Injected trigger service. secret_manager: Injected secret manager for credential storage. secret_catalog: Workspace-scoped catalog for selected credential references. webhook_service: Injected service that registers the channel webhook.
Returns: The created trigger.
Raises: HTTPException: If validation fails or creation errors occur.
Path parameters
Slug of the workspace the request acts in
Slug of the workspace the request acts in
Request body
Response
Successful Response