Endpoint
Authentication
Bearer token required.Request Body
A descriptive name for the workflow.
JavaScript or TypeScript source code to execute when triggered.
List of events that trigger this workflow. At least one event is required. Same event types as webhooks.
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
The created workflow. See
WorkflowRegistration.Example
Response (201)