Skip to main content
POST
Send Message

Send Message

Sends a message to the chatbot and receives a response.

Headers

Request Body

Responses

Sample Request

Sample Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Represents a message in the chat system with user identification and model selection.

Attributes: text: The content of the message user_id: Identifier for the user sending the message user_type: The role of the user (Patient, Doctor, Coach, or Researcher) model_id: The AI model to use for generating responses

text
string
required
user_id
enum<string>
default:User1
Available options:
User1,
User2,
User3,
User4,
User5,
User6,
User7,
User8,
User9,
User10,
User11,
User12,
User13,
User14,
User15,
User16,
User17,
User18,
User19,
User20
user_type
enum<string>
default:Patient
Available options:
Patient,
Doctor,
Coach,
Researcher
model_id
enum<string>
default:openai
Available options:
openai,
gemini

Response

Successful Response