POST /v1/otp/{otp_id}/send Resends an existing OTP code to the recipient.
POST
/v1/otp/{otp_id}/send
const url = 'https://example.com/v1/otp/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/send';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/otp/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/send \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” otp_id
required
string format: uuid
OTP transaction ID to resend
Responses
Section titled “ Responses ”OTP resent successfully
Media type application/json
Response returned upon successful OTP generation and delivery dispatch.
object
expires_at
required
Expiration timestamp in UTC ISO-8601 format.
string format: date-time
otp_id
required
Unique OTP transaction identifier.
string format: uuid
ttl_seconds
required
Expiration validity window in seconds.
integer format: int32
Example
{ "ttl_seconds": 60}OTP not found or max resends reached
Unauthorized - Invalid API Key
Resend rate limit exceeded
Internal server error