Endpoint
Authentication
Bearer token required.Request Body
string
required
A descriptive name for the workflow.
string
required
JavaScript or TypeScript source code to execute when triggered.
string[]
required
List of events that trigger this workflow. At least one event is required. Same event types as webhooks.
string
Scope the workflow to a specific room. If omitted, the workflow triggers for events in all rooms.
Available Events
Worker Bindings
Your workflow code has access to these bindings:Response
WorkflowRegistration
The created workflow. See
WorkflowRegistration.Example
Response (201)