Conversations
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
POST | |
PATCH | |
GET | |
POST | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET |
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
- is_sandboxbooleanDefault:
false - 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
List all conversations tickets
List tickets with person data attached.
Required API key scopes
ticket:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /conversations /ticketsExample response
Status 200
RESPONSE
Create conversations tickets
Required API key scopes
ticket:writePath parameters
- project_idstring
Request parameters
- status
- priority
- anonymous_traits
- ai_resolvedboolean
- escalation_reasonstring
- sla_due_atstring
- tagsarray
Response
Example request
POST /api /projects /:project_id /conversations /ticketsExample response
Status 201
RESPONSE
Retrieve conversations tickets
Get single ticket and mark as read by team.
Required API key scopes
ticket:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /conversations /tickets /:idExample response
Status 200
RESPONSE
Update conversations tickets
Required API key scopes
ticket:writePath parameters
- idstring
- project_idstring
Request parameters
- status
- priority
- anonymous_traits
- ai_resolvedboolean
- escalation_reasonstring
- sla_due_atstring
- tagsarray
Response
Example request
PATCH /api /projects /:project_id /conversations /tickets /:idExample response
Status 200
RESPONSE
Delete conversations tickets
Required API key scopes
ticket:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /projects /:project_id /conversations /tickets /:idExample response
Status 204 No response body
Create conversations tickets suggest reply
Path parameters
- idstring
- project_idstring
Response
Example request
POST /api /projects /:project_id /conversations /tickets /:id /suggest_replyExample response
Status 200
RESPONSE
Status 400
RESPONSE
Status 403
RESPONSE
Status 500
RESPONSE
Retrieve conversations tickets unread count
Get total unread ticket count for the team.
Returns the sum of unread_team_count for all non-resolved tickets. Cached in Redis for 30 seconds, invalidated on changes.
Path parameters
- project_idstring
Response
Example request
GET /api /projects /:project_id /conversations /tickets /unread_countExample response
Status 200
RESPONSE