Send OTP code
send_otpSend a one-time password to a recipient via SMS, WhatsApp, or email with configurable code length and lifetime.
Instructions
Send a one-time password (OTP) to a recipient over SMS, WhatsApp, or email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient phone number or email, depending on channel. | |
| ttl | No | Code lifetime in seconds. Defaults to 300. | |
| length | No | Code length (4-8). Defaults to 6. | |
| channel | No | Delivery channel. Defaults to 'sms'. 'auto' picks based on the recipient. |