- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Verify OTP
Developing
POST
/api/service/v1/user/password/verify-otp
Request
Body Params application/json
otp_id
string
required
otp
string
required
Example
{
"otp_id" : "676d22e75ec2924d6be53ddc",
"otp" : "9888"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://afyahealth.doctodoor.com:5600/api/service/v1/user/password/verify-otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"otp_id" : "676d22e75ec2924d6be53ddc",
"otp" : "9888"
}'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
data
object
required
reset_token
string
required
Examples
{
"error": false,
"status_code": 200,
"data": {
"reset_token": "eyJhbGciOlkNjE3YmNjMCIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3NTk1OTZmMDkwN2Y0NDlkNjE3YmNjMCIsImlhdCI6MTczNTIwNTY4N.ywgjLrJm-a1O0Nm2JwAT42hDI2RnONkSoqDzys"
}
}