POST
/
v1
/
access
/
otp

Authorizations

x-api-key
string
headerrequired

The API key required for accessing protected routes. It should be included in the request headers as x-api-key.

Body

application/json
email
string
required

The email address for which to generate the OTP.

expires
integer

Optional. The expiration time of the OTP in seconds.

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.