Skip to main content
POST
/
chat_messages
/
send_message
Send a chat message
curl --request POST \
  --url https://api.osvi.ai/chat_messages/send_message \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_uuid": "agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og",
  "chat_session_id": "4718a326-417b-4dda-90d0-21fd65a11cb8",
  "message": "What are your business hours?"
}
'
{
  "success": true,
  "data": {
    "session_id": "4718a326-417b-4dda-90d0-21fd65a11cb8",
    "response": "We're open Monday to Friday, 9 AM to 6 PM IST.",
    "tool_calls": [
      "<unknown>"
    ],
    "tool_results": [
      "<unknown>"
    ],
    "current_state": null
  }
}

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.

Body

application/json
agent_uuid
string
required

Unique identifier of the agent handling the session.

Example:

"agent_IsZ3Q6Sf_60Eh26XQMGbz-R_og"

chat_session_id
string
required

Session ID returned by the Start Chat Session endpoint.

Example:

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

message
string
required

The user's message.

Example:

"What are your business hours?"

Response

Message sent and agent response returned

success
boolean
Example:

true

data
object