Sends a message to the chatbot and receives a response.
| Parameter | Type | Required | Description |
|---|---|---|---|
| authorization | string | Yes | API authorization token (Bearer token) |
| Property | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | The message text to send |
| user_id | string | No | User identifier, one of: “User1” through “User20”. Default: User1 |
| user_type | string | No | The type of user (Patient, Doctor, Coach, Researcher). Default: Patient |
| model_id | string | No | The AI model to use (openai, gemini). Default: openai |
| Status | Description | Content Type |
|---|---|---|
| 200 | Successful Response | application/json |
| 422 | Validation Error | application/json |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
User1, User2, User3, User4, User5, User6, User7, User8, User9, User10, User11, User12, User13, User14, User15, User16, User17, User18, User19, User20 Patient, Doctor, Coach, Researcher openai, gemini Successful Response