๐ฒSend Phone OTP
Send OTP
POST https://valifystage.com/api/v1/otp/send/
Headers
Name
Type
Description
Content-Type
string
application/json
Authorization
string
Bearer <access-token>
Request Body
Name
Type
Description
data
object
Object containing the parameters below:
{
phone_number: <str>,
bundle_key: <str>,
lang: <str>
}
Status Codes
{
'result': {
'success': true
},
'transaction_id': '<string>',
'trials_remaining': '<int>'
}{
"message": "Bad Request โ invalid request received (e.g. missing Bundle key, required parameters or invalid json) | Make sure all the required parameters are included"
}{
"message": "Unauthorized โ your Bundle key is invalid"
}{
"message": "Forbidden โ specified access_token could not be found"
}{
"message": "Not Found"
}{
"message": "Unsupported Media Type"
}Code Snippets
Last updated