Start a playbook run

View as Markdown

Starts a new run of a project-scoped playbook and returns the live run plus a WebSocket-upgrade ticket.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired

Request

This endpoint expects an object.
playbookIdstringRequired>=1 character
startDatamap from strings to anyOptionalDefaults to {}
taskAssignmentsmap from strings to stringsOptionalDefaults to {}
attachedFileIdslist of stringsOptionalDefaults to []

Response

The newly started run.
runmap from strings to any
A playbook run projection.
wsTicketstring
Signed ticket for the run's WebSocket upgrade.
wsUrlstring

WebSocket URL with the ticket pre-applied.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error