Skip to content

Get started

AI Medical Intake API

Run AI voice intake interviews and ambient visit documentation inside your own product, and receive the transcript, clinical summary, decision support and diagnosis code suggestions over a REST API.

Products

The API offers two products. Both produce a session that you create, feed and read in the same way.

Products
ProductModeWhat happensWhat you receive
Voice intake interviewintakeAn AI assistant interviews the patient by voice, in the patient’s language, before the visit. It asks one question at a time, under your name and your instructions.The transcript with speakers and timestamps, a clinical summary, decision support for the clinician and diagnosis code suggestions.
Ambient visit documentationambientThe conversation between clinician and patient is transcribed live during the visit.A drafted clinical note (subjective, objective, assessment, plan) in which every statement cites utterances of the transcript for the clinician to check, a patient summary and code suggestions.

How it works

Every integration follows the same five steps. Your secret key is used only from your server; the patient’s device receives short-lived, single-purpose credentials.

  1. Create a sessionYour serverCall POST /sessions with your own reference and a language. You receive the session, call credentials and a single-use upload token.
  2. Run the callYour interfaceYour kiosk, web or mobile interface opens the realtime connection with those credentials and holds the conversation. The screen and the experience stay yours.
  3. Submit the transcriptYour interface or serverWhen the call ends, send the transcript. Processing starts immediately.
  4. Receive the webhookYour serverA signed session.completed event tells you the result is ready. It carries the session id and the mode, and no transcript or result text.
  5. Fetch the resultYour serverRead the transcript, summary, decision support and code suggestions with GET /sessions/{id}/result, and store them in your own system.

How data flows

Knowing where each kind of data travels helps you complete your own security and privacy review.

Data flow
DataPathStored by AI Medical Intake
Interview audioDirectly from the patient’s browser to the realtime voice provider (xAI), over a WebSocket opened with a short-lived secret that we issue. It does not pass through your servers or ours.Not stored by AI Medical Intake
Visit audio (ambient)From the browser to our streaming endpoint, which transcribes it with our speech-to-text provider and returns live text on the same connection. The provider is instructed not to retain it for model training.Not stored by AI Medical Intake
TranscriptSubmitted by your client to the API, then processed by our language providers to produce the summary, decision support, note and code suggestions.Yes, until you delete the session or its retention period ends
ResultsReturned to your server over the API, on request.Yes, for the same period
Webhook eventsSent to your HTTPS endpoint. They contain the session id, the event type and a time, plus the mode, the failure code or the fact of an erasure. No transcript or result text.Delivery records only
Call metadataPseudonymous operational data about each call, with no health content. See Call metadata.Yes, for 13 months

Data is stored in the United States. Processing uses the subprocessors listed in your agreement (Google Gemini, Voyage AI, Deepgram, and the voice provider, xAI). Requests are encrypted in transit, and no response is cacheable. The Security page lists the controls in full.

Base URL and versioning

Base URL
https://api.aimedintake.com/v1

The version is part of the path. This documentation describes v1.0. Within /v1 we only make backwards-compatible changes, such as adding endpoints, optional parameters, response fields, enum values in responses and event types. A breaking change would be released under a new path. The changelog records every change.

Live and test traffic use the same base URL; the key decides the environment. See Test and live.

Conventions

  • Transport. HTTPS only. Request and response bodies are JSON in UTF-8. Send Content-Type: application/json; a request body may be at most 1 MiB.
  • Authentication. A bearer key in the Authorization header. See Authentication and keys.
  • Times. RFC 3339 timestamps, always in UTC with the Z suffix, for example 2027-01-12T13:09:40Z. They can carry fractional seconds: parse them as instants and never compare them as text.
  • Ids. Opaque strings with a type prefix: ses_ sessions, utt_ utterances, evt_ events, usg_ usage records. Do not parse them.
  • Unknown fields. Ignore fields you do not recognise, so that additions never break your client.
  • Caching. Every response carries Cache-Control: no-store.
  • Errors. application/problem+json with a stable code. See Errors.
  • Idempotency. Creating a session is idempotent on your external_ref, submitting a transcript is idempotent on its content, and deleting is idempotent. All three are safe to retry.

Next steps