Skip to main content
POST
/
api
/
v1
/
verification
/
check
Verify a Phone Number (with OTP Code)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({code: '<string>'})
};

fetch('https://api.valox.co/api/v1/verification/check', 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
code
string
required

Response

Phone was verified successfully

ok
boolean
Example:

true