Create a brief

View as Markdown

Creates a brief from free-form intent and dispatches a shaping turn. Returns the brief id and a WebSocket ticket for the shaping-log stream. Requires playbook:start on the project.

Authentication

AuthorizationBearer

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

Path parameters

projectIdstringRequired

Request

This endpoint expects an object.
textstringRequired1-10000 characters
attachedFileIdslist of stringsOptionalDefaults to []

Response

The created brief id and shaping WebSocket ticket.
briefIdstring
wsTicketstring

Signed ticket for the shaping-log WebSocket.

Errors

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