Skip to main content
POST
Submit a message and start (or continue) an agent turn

Authorizations

Authorization
string
header
required

Clerk session token, Authorization: Bearer <token> — the first-party browser app's own auth. Used only by this internal /api/v1/* surface, never by /api/public/v1/*.

Path Parameters

chatId
string
required
Minimum string length: 1

Body

application/json
content
object[]
required
attachments
object[]
Maximum array length: 10
model
string
Minimum string length: 1

Response

Message persisted and turn dispatched.

chatId
string
required
message
object
required
run
object
required
realtime
object
required