Extend OTP expiry
extend_otpExtend the expiry time of an active OTP without sending a new one. Useful when the end user is taking longer than expected to enter the code (e.g., switched apps, dealing with carrier delivery delay). Adds duration seconds (60-14400) to the current expires_at. Requires the EXTEND_OTP entitlement (Business or Enterprise plan). Some destination countries don't allow extensions — the API will return 403 in that case. Cheaper and less spammy than calling generate_otp again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message_id": "<message_id>",
"duration": "<duration>"
},
"name": "extend_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | Yes | Additional seconds to add to the OTP's expiry. Range 60-14400 (1 minute to 4 hours). The new expiry will be the current expiry + this duration. | |
| message_id | Yes | The UUID returned by `generate_otp` — identifies the OTP you want to extend. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Status of the request. | |
| message | Yes | Message describing the result. | |
| expires_at | Yes | The new ISO 8601 expiry date-time. |