OTP sign-in flow
- The patient enters the phone number recorded during registration.
- Call Request OTP. The response is intentionally generic so callers cannot discover whether a phone number exists.
- Call Verify OTP with the phone number and code. If a phone number is shared by more than one patient, also provide the patient number and date of birth to identify the correct record.
- Store the returned Sanctum bearer token in the operating system’s secure credential storage.
- Send the token as
Authorization: Bearer <token>on protected requests. - Call Sign out to revoke the current device token.
Endpoint coverage
Token abilities
Patient tokens use a separate, narrow ability namespace:patient:readpatient:profilepatient:appointmentspatient:recordspatient:billing