Skip to main content
POST
/
api
/
v1
/
verification
Retrieve an OTP code to verify a Phone Number
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({phoneNumber: '+555599998888'})
};

fetch('https://api.valox.co/api/v1/verification', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
phoneNumber
string
required
Example:

"+555599998888"

Response

OTP was sent.

ok
boolean
Example:

true