Start OTP
otp_startStart a WhatsApp OTP session to send a one-time code to a phone number. Optionally set OTP length, country code, and message template.
Instructions
Start a LoginWA OTP session: send a one-time code to a WhatsApp phone number via a connected device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | Recipient phone (E.164 or digits, e.g. 6281234567890) | |
| device_id | No | Optional device to send from | |
| otp_length | No | OTP length 4..8 (default 6) | |
| country_code | No | Optional country code digits, e.g. 62 | |
| message_template | No | Optional message template; use {{otp}} placeholder if customizing |