Phone Number Verification
The goal of this process is to verify User’s mobile number. If successful, Client acquires a first authentication factor allowing him to access onboarding APIs (including Get User State).
The verification shall start before onboarding and consists of two stages:
1. Request sending a one time password (OTP) via SMS to User's phone
The request must include the full phone number and channel: sms
Request OTP
POST
https://api.kavoon.io/otp
Request Body
phone*
Full mobile number e.g. "447401101801"
channel*
String
Sending channel. Use "sms"
2. Verify OTP and receive authentication token
Verify OTP
POST
https://api.kavoon.io/auth/token
In case of successful verification, Client gets an access_token
Request Body
grant_type*
String
Request type. Pass "password"
username*
String
Full mobile number e.g. "447401101801"
password*
String
Received OTP e.g. "5757"
channel*
String
Sending channel. Use "sms"
If success, Client will retrieve the first authentication factor and will be able to call the User State to start onboarding to find out what is the first step. If the password does not match, Client will receive the respective error.
Last updated