---
title: "Doctor Patient Chat"
method: POST
path: "/api/doctor/patients/{patient_id}/chat"
---

# Doctor Patient Chat

`POST /api/doctor/patients/{patient_id}/chat`

## 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/doctor/patients/{patient_id}/chat`
- Auth: HTTP bearer

## Path parameters

- `patient_id` integer, required

## Request body

- DoctorChatRequest
  - `message` string, required

## Response `200`

Successful Response

- DoctorChatResponse
  - `answer` string, required
  - `citations` DoctorChatCitation[]
    - `record_id` integer, nullable
    - `document_type` string, nullable
    - `record_created_at` string, date-time, nullable
    - `quote` string, nullable
  - `quality` DoctorChatQualitySignals, required
    - `used_patient_context` boolean, required
    - `missing_data` string[]

## 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)
