Access
Generate a one-time password (OTP)
Generates a one-time password for a given email, with an optional expiration time, and sends it via email.
POST
/
v1
/
access
/
otp
Authorizations
x-api-key
string
headerrequiredThe API key required for accessing protected routes. It should be included in the request headers as x-api-key
.
Body
application/json
email
string
requiredThe email address for which to generate the OTP.
expires
integer
Optional. The expiration time of the OTP in seconds.
Required range:
x > 1
Response
201 - application/json
id
string
The ID of the generated OTP record.
message
string
Confirmation message that the OTP has been sent.
email
string
The email to which the OTP was sent.