Request a patient OTP
curl --request POST \
--url https://jaliprohmis.derrickmugabwa.dev/api/v1/patient/auth/otp/request \
--header 'Content-Type: application/json' \
--data '
{
"phone": "+254712345678"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone: '+254712345678'})
};
fetch('https://jaliprohmis.derrickmugabwa.dev/api/v1/patient/auth/otp/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://jaliprohmis.derrickmugabwa.dev/api/v1/patient/auth/otp/request"
payload = { "phone": "+254712345678" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>",
"challenge_id": "<string>",
"expires_in": 123
}Patient authentication
Request a patient OTP
Sends a short-lived OTP to the normalized registration phone. The response does not reveal whether the phone is registered.
POST
/
patient
/
auth
/
otp
/
request
Request a patient OTP
curl --request POST \
--url https://jaliprohmis.derrickmugabwa.dev/api/v1/patient/auth/otp/request \
--header 'Content-Type: application/json' \
--data '
{
"phone": "+254712345678"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone: '+254712345678'})
};
fetch('https://jaliprohmis.derrickmugabwa.dev/api/v1/patient/auth/otp/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://jaliprohmis.derrickmugabwa.dev/api/v1/patient/auth/otp/request"
payload = { "phone": "+254712345678" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>",
"challenge_id": "<string>",
"expires_in": 123
}