Javascript
const url = 'https://api.gnosispay.com/api/v1/auth/signup/otp'; const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"jsmith@example.com"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "ok": true }
This endpoint generates and sends a one-time password (OTP) to the provided email address for verification purposes.
OTP was sent successfully
The response is of type object.
object