androidapi_send_otp
Send a one-time password to a phone number via SMS or WhatsApp. Use {{otp}} in the message to embed the generated code automatically.
Instructions
Send a one-time password (OTP) to a phone number via SMS or WhatsApp. Use {{otp}} in the message body to embed the generated code automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sim | No | [SMS, devices mode] SIM slot number. | |
| mode | No | [SMS only] 'devices' = linked Android device; 'credits' = gateway balance. | |
| type | Yes | Delivery channel. | |
| phone | Yes | Recipient phone number in E.164 format (e.g. +923012345678). | |
| device | No | [SMS, devices mode] Linked device unique ID. | |
| expire | No | OTP expiry in seconds (default 300 = 5 min). | |
| account | No | [WhatsApp only] WhatsApp account unique ID. | |
| gateway | No | [SMS, credits mode] Gateway ID or partner device ID. | |
| message | Yes | OTP message text. Must contain {{otp}} where the code should appear. | |
| priority | No | [WhatsApp only] 1 = send immediately, 2 = normal queue. |