Follow-up is the outbound flow: you enroll a patient in a protocol and OlivIA calls them to complete the questionnaire, applying the scheduling and retries defined in the protocol.
1. Find the protocol
You need the protocol’s protocol_key (or id) to enroll into it.
2. Enroll the patient
POST /v1/enrollments/enroll-patient creates (or reuses) the patient by phone, enrolls them in the protocol, and schedules the first outbound call.
Body fields:
201 response:
enroll-patient is idempotent by design: if the patient already has an equivalent active enrollment it is reused; if the data changes, the previous enrollment is cascade-replaced. No idempotency header is needed.
3. Schedule additional questionnaires (optional)
To launch another questionnaire within an existing enrollment:
4. Check the enrollment
Returns the enrollment and its protocol_runs (each with its questionnaire_status). To read answers, transcript, and recording for each call, see Results.
Scheduling (freq_config)
Call cadence is defined by the protocol via freq_config: base cadence, retry window and count, allowed slots/hours, date range, and time zone. You can override it per enrollment by sending a partial freq_config in enroll-patient. OlivIA computes the first call and reschedules retries automatically.