Skip to main content
POST
Generate Patient Qa

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json

Request schema for answering patient questions.

context
PatientSummaryContext · object
required

Patient context from frontend

question
string
required

Question to answer

patientId
string
required

Patient ID

modelName
string
default:gemini-2.5-flash-lite

Model to use for generation

useStructuredOutput
boolean
default:false

Whether to request structured JSON output

conversationHistory
ConversationMessage · object[] | null

Previous conversation messages for context

files
FileAttachment · object[] | null

File attachments for the current request

chatId
string | null

Chat history ID (generated on frontend)

threadId
string | null

Thread ID for conversation grouping

Response

Successful Response