Max
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
POST | |
PATCH | |
GET | |
POST | |
PATCH | |
DELETE | |
POST |
List all conversations
Required API key scopes
conversation:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /conversationsExample response
Status 200
RESPONSE
Create conversations
Unified endpoint that handles both conversation creation and streaming.
- If message is provided: Start new conversation processing
- If no message: Stream from existing conversation
Required API key scopes
conversation:writePath parameters
- project_idstring
Request parameters
- contentstring
- conversationstring
- contextual_toolsobject
- ui_context
- billing_context
- trace_idstring
- session_idstring
- agent_mode
- resume_payload
Response
Example request
POST /api /environments /:project_id /conversationsExample response
Status 201
RESPONSE
Retrieve conversations
Required API key scopes
conversation:readPath parameters
- conversationstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /conversations /:conversationExample response
Status 200
RESPONSE
Create conversations append message
Appends a message to an existing conversation without triggering AI processing. This is used for client-side generated messages that need to be persisted (e.g., support ticket confirmation messages).
Path parameters
- conversationstring
- project_idstring
Request parameters
- contentstring
Response
Example request
POST /api /environments /:project_id /conversations /:conversation /append_messageExample response
Status 200
RESPONSE
Update conversations cancel
Path parameters
- conversationstring
- project_idstring
Request parameters
Response
Example request
PATCH /api /environments /:project_id /conversations /:conversation /cancelExample response
Status 200
RESPONSE
Retrieve conversations queue
Path parameters
- conversationstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /conversations /:conversation /queueExample response
Status 200
RESPONSE
Create conversations queue
Path parameters
- conversationstring
- project_idstring
Request parameters
Response
Example request
POST /api /environments /:project_id /conversations /:conversation /queueExample response
Status 200
RESPONSE
Update conversations queue
Path parameters
- conversationstring
- project_idstring
- queue_idstring
Request parameters
Response
Example request
PATCH /api /environments /:project_id /conversations /:conversation /queue /:queue_idExample response
Status 200
RESPONSE
Delete conversations queue
Path parameters
- conversationstring
- project_idstring
- queue_idstring
Example request
DELETE /api /environments /:project_id /conversations /:conversation /queue /:queue_idExample response
Status 204 No response body
Create conversations queue clear
Path parameters
- conversationstring
- project_idstring
Request parameters
Response
Example request
POST /api /environments /:project_id /conversations /:conversation /queue /clearExample response
Status 200
RESPONSE