Lewati ke konten

POST /v1/otp/{otp_id}/send Resends an existing OTP code to the recipient.

POST
/v1/otp/{otp_id}/send
curl --request POST \
--url https://example.com/v1/otp/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/send \
--header 'Authorization: Bearer <token>'
otp_id
required
string format: uuid

OTP transaction ID to resend

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