Skip to main content
POST

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
course_id
number
required

The conversation (a positive number).

assistantId
string | null

The assistant that answers this conversation from its next message on. null (or omitted) goes back to the default Digital Twin.

institution
string | null

The Digital Twin the conversation belongs to: its id, null for a personal conversation, or omitted for your current Digital Twin. You must be a member of it.

Response

Stored (success true), or nothing to store yet (success false, code CONVERSATION_EMPTY).

success
boolean
code
enum<string>

Only with success false: the conversation has no saved messages yet, so nothing was stored; its next message carries the assistant.

Available options:
CONVERSATION_EMPTY
message
string
assistant
object · null · null

The stored assistant ({_id, name, picture_url}), or null for the default Digital Twin.

cleared
boolean

true when the conversation went back to the default Digital Twin.