---
title: "Send Chat Message"
method: POST
path: "/api/chat/send"
---

# Send Chat Message

`POST /api/chat/send`

## Request

- Base URL: `https://api.mednode.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mednode.in/api/chat/send`
- Auth: HTTP bearer

## Request body

- ChatSendRequest
  - `message` string, required
  - `language` string

## Response `200`

Successful Response

- ChatSendResponse
  - `reply` string, required
  - `translated_reply` string, nullable
  - `language` string
  - `messages` ChatMessageItem[], required
    - `id` integer, required
    - `role` string, required
    - `content` string, required
    - `display_content` string, nullable
    - `created_at` string, date-time, required
  - `sources` ChatSource[]
    - `record_id` integer, required
    - `document_type` string, nullable
    - `record_date` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mednode/apis/mednode-ai-api.md) · [All operations](https://skmtc.dev/mednode/apis/mednode-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mednode/apis/mednode-ai-api/revisions/7e0b84effd6e?raw)
