Skip to main content
PATCH
Update a chat session
Send summary to replace the session’s summary, for example with notes from a system that handled part of the conversation. Send null to clear it. A summary-only update leaves the status unchanged. When the same request closes the session with generate_summary_and_sentiment_on_resolve, the summary you send is kept instead of the generated one.

AI outcome on close

Closing a session as closed_resolved while the AI agent owns it outside assist mode records the AI outcome assumed_resolved, provided the AI agent replied and no teammate replied or took the session over. The outcome counts toward the AI resolutions in your impact report and is passed to ticket-resolved workflows. Voice and internal sessions are left unchanged. A closed_unresolved close never records an AI outcome, reclosing or retrying a close keeps the outcome already on the session, and a session closed as unresolved is not marked as an AI resolution when it is later changed to resolved. Each close is written to the audit log with the API key that made it.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

The unique identifier of the chat session

Body

application/json
status
enum<string>
Available options:
open,
closed_resolved,
closed_unresolved
generate_summary_and_sentiment_on_resolve
boolean
reflect_status_change_for_integration
boolean
session_closed_payload
summary
string | null

Replace the session summary, or null to clear it. Takes precedence over a summary generated on resolve.

Required string length: 1 - 10000

Response

Default Response