Skip to main content
POST
/
v1
/
send_message
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Send Message

Sends a message to the chatbot and receives a response.

Headers

ParameterTypeRequiredDescription
authorizationstringYesAPI authorization token

Request Body

{
  "text": "string",
  "user_type": "Patient",
  "model_id": "openai"
}
PropertyTypeRequiredDescription
textstringYesThe message text to send
user_typestringNoThe type of user (Patient, Doctor, Coach). Default: Patient
model_idstringNoThe model ID (openai, gemini). Default: openai

Responses

StatusDescriptionContent Type
200Chatbot responseapplication/json
422Validation Errorapplication/json

Headers

authorization
string
required

Body

application/json
text
string
required
user_type
enum<string>
default:Patient
Available options:
Patient,
Doctor,
Coach
model_id
enum<string>
default:openai
Available options:
openai,
gemini

Response

Successful Response