Skip to content

Platform

Data retention, deletion and call metadata

What is stored, for how long, how deletion works, and the call metadata AI Medical Intake retains.

This page states what AI Medical Intake stores about your sessions, how long it is kept, how you delete it, and what is retained afterwards. It is written to be quoted in your own privacy documentation.

What is stored

Stored data
DataContainsKept until
Clinical dataThe transcript you submit and the results produced from it: summary, decision support, code suggestions, clinical note.You delete the session, or its purge_at, whichever comes first.
Session recordStatus, timestamps, mode, language, device type, your external_ref and tags, and the end reason.The reference, tags and end reason are cleared on deletion. The remaining tombstone is removed 90 days later.
Usage recordSession id, mode, completion time, units, whether it is billable and, if not, a general reason. No clinical content and no end reason.Kept as the billing record.
Call metadataPseudonymous operational data about the call, with no health content. See below.13 months.
Webhook deliveriesEvent ids, statuses and delivery outcomes. No clinical content.Pending deliveries are removed when the session is deleted.

Audio is not stored by AI Medical Intake. Interview audio goes from the patient’s device directly to the realtime voice provider, and visit audio is transcribed as it streams; our speech-to-text provider is instructed not to retain it for model training. What each subprocessor retains is set out in your agreement with us.

Transcript and result text is excluded from our application logs and metrics. Problem responses and webhook events carry none either.

Retention

When a transcript is accepted, the session’s purge_at is set to the acceptance time plus your organization’s retention period: 30 days by default. That deadline holds whatever happens to the session afterwards. At purge_at the clinical data is deleted automatically, the session becomes deleted with deleted.reason: "retention", and the result endpoint answers 410 purged.

  • Purges run hourly, so deletion happens within about an hour after purge_at.
  • A purge sends no webhook. It appears as a tombstone when you list sessions.
  • The retention period is an organization setting. Ask your AI Medical Intake contact to change it.

The API is a processing service, not a system of record. Fetch each result when it completes and keep it in your own system, under your own retention rules. A purge on our side is not an instruction to delete your records.

Deleting a session

DELETE/v1/sessions/{id}

Delete a session to erase its clinical data from the API before the retention period ends, for example as one step of your process for a patient’s erasure request.

Delete a session
curl -X DELETE "https://api.aimedintake.com/v1/sessions/$SESSION_ID" \
  -H "Authorization: Bearer $AIMEDINTAKE_API_KEY"
Response · 202
{
  "id": "ses_01JDK8Z3Q4",
  "object": "session",
  "external_ref": null,
  "status": "deleted",
  "mode": "intake",
  "language": "en",
  "device_type": "kiosk",
  "tags": {},
  "created_at": "2027-01-12T13:02:11Z",
  "upload_expires_at": "2027-01-13T13:02:11Z",
  "accepted_at": "2027-01-12T13:09:02Z",
  "completed_at": "2027-01-12T13:09:40Z",
  "updated_at": "2027-01-19T09:15:00Z",
  "purge_at": "2027-02-11T13:09:02Z",
  "end_reason": null,
  "error": null,
  "deleted": {
    "at": "2027-01-19T09:15:00Z",
    "reason": "erasure"
  }
}

In a single transaction, deletion:

  • erases the stored transcript and every result;
  • clears external_ref, tags and end_reason from the session;
  • revokes the upload token and cancels pending webhook deliveries for the session;
  • stops any processing in flight, so that no result can be published afterwards;
  • sets the status to deleted and sends a session.deleted event.

Deletion is idempotent and can be requested in any status. It takes effect immediately: by the time you receive the 202, the clinical data is gone from the live database and the result endpoint answers 410 deleted.

What remains after deletion

Data remaining after deletion
KeptContainsFor how long
TombstoneSession id, status, timestamps, mode, language, device type and the deletion notice. No reference, no tags, no end reason. Readable through the list and GET /sessions/{id}.90 days, then removed.
Reference digestA keyed hash of your external_ref, kept with the tombstone so that a repeated create request for the same reference is recognised instead of starting a new session. The reference itself cannot be read back from it.90 days, removed with the tombstone.
Usage recordSession id, mode, completion time, units, billable and not_billable_reason.Kept as the billing record.
Call metadataThe pseudonymous row described below. It has no link to the session.13 months from the call.
Erasure recordAn audit entry containing the session id and the time of erasure only.400 days.

Call metadata

The record is limited to the fields below. The list is fixed: each field accepts only the values shown, and there is no free-text field.

Call metadata fields
FieldValues
idA random identifier for the row. Not the session id.
org_idYour organization.
program_idAn identifier for the version of your additional instructions. Never the text.
modeintake or ambient
languageOne of the nine language codes.
device_typekiosk, web, mobile or other
countryYour organization’s country (ISO 3166-1 alpha-2), from its settings. Not the patient’s location.
started_onThe UTC date of the call. No time of day.
duration_bucketUnder 2 min, 2 to 5, 5 to 10, 10 to 20, or 20 min and over.
turns_bucket0 to 5, 6 to 15, 16 to 30, or more than 30 turns.
statuscompleted, failed, expired or deleted_before_completion
error_codeA session error code, or empty.
latency_msProcessing time per stage and in total, rounded to 100 ms.
model_idsIdentifiers of the model versions used.
attempts1 to 3.
billableTrue or false.
asr_confidenceAmbient only. Mean speech recognition confidence, rounded to 0.05.

What is deliberately left out: any transcript or result text, any code or diagnosis, your external_ref and tags, the session id, exact times, and the end reason.

Although it holds no direct identifiers, this metadata can still be personal data under laws such as the GDPR and Brazil’s LGPD, because it relates to a person’s call. It is therefore named in our data processing agreement. Access to it is restricted to our operations staff; the application can write rows but not read them. Reports that leave operations omit any group of fewer than 10 calls.

Backups

Database backups are kept for a limited period for disaster recovery, and a deleted session can persist in a backup until that backup expires. Every erasure is recorded separately, and erasures are re-applied after any restore, before the restored database serves requests.

Keep identifiers out

The API never asks who the patient is, and it works best when it does not know. Keep it that way:

  • Use an opaque external_ref, such as your encounter id. Not a name, national id, medical record number or phone number.
  • Use tags for operational dimensions such as a site or department, never for anything about the person.
  • The transcript will contain whatever the patient says, which can include their name. That is clinical data, and it is deleted with the session.

Privacy notice for the API

Data you send through the API with a live key is production data. Its handling is governed by your agreement with us, which names the subprocessors and the data processing terms; this page describes the product behaviour that agreement relies on.

The privacy and security notices on aimedintake.com cover the public demo on that website. They do not describe the API.

See Security for how stored data is protected.