Skip to main content
POST
/
api
/
analytics
/
chat-messages
Send a message to the AI assistant
curl --request POST \
  --url https://api.propops.app/api/analytics/chat-messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "session_id": "session_001",
  "message": "What is the recall rate for Branch_001 this month?",
  "csrf_token": "abc123def456"
}
'
{
  "success": true,
  "message": "Operation completed successfully",
  "reply": "The recall rate for Branch_001 this month is 2.1%."
}

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Authorization: Bearer a1b2c3d4e5f6...

Body

application/json
session_id
string
required
Example:

"session_001"

message
string
required
Example:

"What is the recall rate for Branch_001 this month?"

csrf_token
string
required
Example:

"abc123def456"

Response

AI response

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"

reply
string
Example:

"The recall rate for Branch_001 this month is 2.1%."