v50

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-06-16122182589.7 KB
2FA

Resend a code

Resends the OTP for the verification identified by session_id over the specified channel. Previously sent codes are invalidated.

post/v1/two-fa/verification/{session_id}

Path parameters

session_idstring required
Example:2953d4308f2e11ecb75fcdafd6d2d687

The unique ID of the 2FA verification session.

Request body

channel'sms' | 'voice' required

Channel used to resend the verification code. One of sms (sent as a text message) or voice (read aloud over a phone call).

Example request

{
  "channel": "voice"
}

Response

Returns the resend result, including the channel used.

successboolean required

Indicates whether the verification code was successfully sent

channelstring required

Indicates whether the code was sent via an SMS or a voice call

destinationstring required

The destination phone number the code was sent to

created_atstring date-time required

Date and time the code was sent

Example response

{
  "success": true,
  "channel": "voice",
  "destination": "447919433768",
  "created_at": "2022-02-16T13:41:38.000Z"
}