Skip to main content
POST
cURL

Authorizations

x-api-key
string
header
required

API key for authentication. Contact support@verahealth.ai to obtain your API key.

Body

application/json
prompt
string
required

The medical question to answer.

Example:

"What is the first-line treatment for hypertension in a 55-year-old male with diabetes?"

traceId
string

Optional unique identifier for request tracing. Auto-generated if not provided.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Server-Sent Events stream (Content-Type: text/event-stream). Each frame is data: {JSON_OBJECT} and every event has type and content fields. The stream terminates with data: [DONE].

Event types

Example events

Server-Sent Events stream containing JSON objects. Each event has a type and content field. See the endpoint description for detailed event type documentation.