Skip to main content
POST
This endpoint accepts a personal access token only. For modes, answering questions, continuing a conversation and handling the event stream, see the Wren API guide.

Authorizations

X-API-KEY
string
header
required

A personal access token, or for the recommendations endpoints a workspace API key. Include it in a header parameter called X-API-KEY.

Body

application/json
prompt
string
required

What you're asking Wren to do. Must contain some text.

context
object
required
sessionId
string<uuid>

Continue an existing conversation. Omit to start a new one; the new conversation's ID is on every event in the stream.

Response

The run, as a server-sent event stream. Each data: line is one JSON event carrying type and sessionId. Keep the connection open and read events as they arrive.

The response is of type string.

Last modified on December 1, 2026