otp_send_sms
Send a one-time password via SMS to a phone number. Customize the message template with <%otp_code%>, set expiry in minutes and digit length.
Instructions
Send an OTP (One-Time Password) via SMS. CRITICAL: The message parameter MUST contain the exact placeholder <%otp_code%>. If this placeholder is missing, the API call will fail with a 422 error. :param phone_number: Recipient phone number (e.g. '0541000000'). :param message: Message template containing <%otp_code%> (e.g. 'Your verification code is: <%otp_code%>'). :param expiry: OTP validity duration in minutes (default 5). :param length: Digit length of the OTP (default 4).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expiry | No | OTP validity duration in minutes (default 5). | |
| length | No | Digit length of the OTP (default 4). | |
| message | Yes | Message template containing `<%otp_code%>` (e.g. 'Your verification code is: <%otp_code%>'). | |
| phone_number | Yes | Recipient phone number (e.g. '0541000000'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||