SDK Explorer

Resend the OTP email.

Parameters
input
object
Required

Represents the input parameters for resending the OTP.

option 1:
userId
string
Required

Unique system-generated identifier for the user.

deviceId
string
Required

Get the device id from SDK, and the deviceToken is bound with this device id.

email
string
Required

Sends OTP email to the destination address.

otpToken
string
Required

The OTP is bound on a user and purpose, and uses this value to identify the request.

idempotencyKey
string

The optional idempotency key. An idempotency key is a unique identifier used to identify and handle duplicate requests in order to ensure idempotent behavior, where multiple identical requests have the same effect as a single request.

We will generate one if you do not provide it.

option 2:
userToken
string
Required

The JSON Web Token (JWT) representing the user.

deviceId
string
Required

Get the device id from SDK, and the deviceToken is bound with this device id.

email
string
Required

Sends OTP email to the destination address.

otpToken
string
Required

The OTP is bound on a user and purpose, and uses this value to identify the request.

idempotencyKey
string

The optional idempotency key. An idempotency key is a unique identifier used to identify and handle duplicate requests in order to ensure idempotent behavior, where multiple identical requests have the same effect as a single request.

We will generate one if you do not provide it.

Responses
Example
1const response = await client.resendOTP({
2  userToken: "dummy-user-token",
3  email: "[email protected]",
4  otpToken: "otp-token",
5  deviceId: "device-id",
6})
7console.log(response.data)
ResponseChoose an example
1{
2  "data": {
3    "otpToken": "eyJhbGciOiJS...-F8EFYDYjAxIUw"
4  }
5}
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.