Skip to main content
POST
/
v1
/
chat
/
session
/
{id}
/
inject_context
Inject context into a session
curl --request POST \
  --url https://api.osvi.ai/v1/chat/session/{id}/inject_context \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "context": "Earlier voice call: customer wants a refund and prefers WhatsApp follow-up."
}
'
{
  "success": true,
  "data": {
    "session_id": "4718a326-417b-4dda-90d0-21fd65a11cb8",
    "context": [
      "Initial context for this chat",
      "Earlier voice call: customer wants a refund and prefers WhatsApp follow-up."
    ]
  }
}

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 UUID.

Example:

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

Body

application/json
context
string
required

A single, non-empty context string to append to the session.

Example:

"Earlier voice call: customer wants a refund and prefers WhatsApp follow-up."

Response

Context appended.

success
boolean
Example:

true

data
object