Generate and send a one-time password (OTP) to a recipient via SMS
POST /v1/external/generate/otp
{code} - Will be replaced with the generated OTP code{amount} - Will be replaced with expiry amount{duration} - Will be replaced with expiry durationmaxAmountOfValidationRetries).API Key for authentication
API Secret for authentication
API version header (required for full JSON response)
2025-08-01 Recipient phone number (without + prefix)
"0559400612"
Sender ID or name
"PHCCU"
OTP message template with {code}, {amount}, and {duration} placeholders
"Your verification code is {code}, it expires in {amount} {duration}"
Length of the OTP code
4 <= x <= 104
Type of OTP code
NUMERIC, ALPHANUMERIC, ALPHABETIC "NUMERIC"
Maximum number of validation attempts allowed
x >= 13
OTP generated and sent successfully
HTTP status code
"200"
Status message
"OTP successfully sent to your device"
Unique transaction identifier
"ec1fb725-3e86-47dc-bf0c-82b7776080e8"
Sequence number
"01K6NA4F7KJKSR6JM912JMY4NV"
ISO 8601 timestamp
"2025-10-03T15:13:03.227Z"