Create a patient-driven pre-visit session
POST /v1/sessions/previsit/patient
Sugar alias for POST /v1/sessions with type=pre-consult and ui_type=patient.
Use when the patient fills the pre-visit form before arriving (SMS / WhatsApp link).
Identical request and response to the generic endpoint, except type must NOT
be sent in the body — it’s pinned to pre-consult by this route. Response
ui_type is always patient.
Authorizations
Parameters
Header Parameters
Optional UUID to deduplicate retries. 24h TTL.
Request Body required
object
Patient name + phone; pre-fills form intro
object
Doctor + display_name; shown on form + in share URL
object
E.g. previsit_anc_v1 for ANC
Your appointment ID, echoed in webhooks
enMax 10080 (7 days)
object
{ "patient": { "name": "Priya S", "phone": "+919876543210" }, "clinic": { "doctor": "Dr. Padmavathi", "display_name": "Sunrise Clinic" }}Responses
201
Session created (ui_type=patient)
object
Opaque public token used in patient-facing URLs
Server-side aliases:
emergency-summary → emergency,
pre-anc-visit → pre-consult.
obstetricshttps://previsit.summary.to/obstetrics/bRJIY1oc8BgtMCucjWfPJk3PHint for which UI mode the link is intended for
400
Validation error
object
Invalid link1003401
Invalid API key
object
Invalid link1003409
Idempotency-Key body mismatch
object
Invalid link1003429
Rate limit / quota exceeded
object
Invalid link1003