Javascript
const url = 'https://api.gnosispay.com/api/v1/verification'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"phoneNumber":555599998888}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "ok": true }
This call replaces the existing phone number for a user if it exists, whether it’s verified or not.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OTP was sent.
The response is of type object.
object