Skip to content
Documentation
Hosted platformREST API reference

Assistant

The support assistant: answers product questions from the documentation through the platform's own models with cited sources, keeps the conversation and hands over a ticket draft when a person is needed; no API key required.

API version 1.2.0openapi.json

The support assistant: answers product questions from the documentation through the platform's own models with cited sources, keeps the conversation and hands over a ticket draft when a person is needed; no API key required.

post/api/v1/assistant/chat

Chat

Ask the assistant. Plain JSON by default; `stream: true answers as server-sent events (meta with the conversation id, delta per token, done` with the same JSON the plain call returns).

Requires an API key.

Request bodyChatIn

FieldTypeDefaultDescription
conversation_idstring | null
message(required)string
pagestring | null
streambooleanfalse

Responses

200Successful Response
422Validation ErrorHTTPValidationError
401Missing, invalid or revoked API key
Requestbash
curl -s -X POST "$OSR_URL/api/v1/assistant/chat" \
  -H "Authorization: Bearer $OSR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "message": "string" }'
Bodyjson
{
  "message": "string"
}

get/api/v1/assistant/conversations/{conversation_id}

Conversation

Requires an API key.

Parameters

NameInTypeDefaultDescription
conversation_id(required)pathstring

Responses

200Successful Response
422Validation ErrorHTTPValidationError
401Missing, invalid or revoked API key
Requestbash
curl -s "$OSR_URL/api/v1/assistant/conversations/<conversation_id>" \
  -H "Authorization: Bearer $OSR_API_KEY"

get/api/v1/assistant/status

Status

Whether the assistant answers with a model or from the documentation alone, and how much it has indexed.

No authentication.

Responses

200Successful Response
Requestbash
curl -s "$OSR_URL/api/v1/assistant/status"