1. Get an API key
Contact support@verahealth.ai to request credentials.2. Send your first request
Send aPOST 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: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.