Skip to main content

1. Get an API key

Contact support@verahealth.ai to request credentials.
Keep your API key secret. Treat it like a password and never commit it to source control.

2. Send your first request

Send a POST request to /api/chat/v2 with your API key in the x-api-key header and a clinical question in the body. By default the response is a Server-Sent Events stream; set stream: false to receive a single JSON payload instead.

Request body

metadata fields

Any additional fields you include in metadata are returned unchanged on the non-streaming response — useful for your own correlation ids.

3. Parse the SSE stream

The response is a Server-Sent Events stream. Each frame is a single line:
Every event is a flat JSON object with a type field. The events you’ll care about most are: See the streaming guide for the full event catalog.

4. JavaScript example

5. Python example

Next steps

Streaming events

Full reference for every event type in the stream.

Reconnecting a stream

Resume a stream after a disconnect using the workflow run ID.

API reference

Endpoint schemas, request/response examples, and playgrounds.

Support

Email us for help integrating.