Skip to main content
POST
/
chat_sessions
/
{id}
/
close_session
End a chat session
curl --request POST \
  --url https://api.osvi.ai/chat_sessions/{id}/close_session \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_uuid": "agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og"
}
'
{
  "success": true,
  "data": {
    "session_id": "4718a326-417b-4dda-90d0-21fd65a11cb8",
    "summary": "The user asked about business hours. The agent confirmed hours are Monday–Friday 9 AM–6 PM IST."
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.osvi.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

API-Token
string
header
required

16-character API token associated with your OSVI account. Find it in your dashboard under Settings → API.

Path Parameters

id
string
required

The session ID to close.

Example:

"4718a326-417b-4dda-90d0-21fd65a11cb8"

Body

application/json
agent_uuid
string
required

Unique identifier of the agent handling the session.

Example:

"agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og"

Response

Session closed

success
boolean
Example:

true

data
object