Skip to main content
POST
/
chat_sessions
Starts a new chat session
curl --request POST \
  --url https://api.osvi.ai/chat_sessions \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_uuid": "agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og",
  "metadata": {
    "person_name": "Xyz"
  }
}
'
{
  "success": true,
  "data": {
    "success": true,
    "session_id": "4718a326-417b-4dda-90d0-21fd65a11cb8",
    "agent_name": "Testing New Agent",
    "started_at": "2025-12-31T11:40:25.690486",
    "welcome_message": "Hi Bro"
  }
}

Authorizations

API-Token
string
header
required

Body

application/json
agent_uuid
string
required
Example:

"agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og"

metadata
object

Response

200 - application/json

Successful response

success
boolean
Example:

true

data
object