v1
protected
triggers
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.
Returns: The created trigger.
Raises: HTTPException: If validation fails or creation errors occur.
post/v1/triggers/
Request body
Response
Successful Response