send_otp
Send a one-time password to any phone number via WhatsApp. Pick an official provider, your own connected device, or a Business API template to control cost and setup.
Instructions
Send a one-time password. Pick the method deliberately: "whatsapp" uses the official Kirimi provider and costs Rp 595 per delivered OTP with no setup; "device" sends through your own connected device and is free; "waba_user" sends through your own WhatsApp Business API template and is free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | Phone number in international format without + (e.g. 6281234567890) — the OTP recipient | |
| method | No | Delivery channel. Default "whatsapp". Requires device_id when "device", and waba_id + template_name when "waba_user". | |
| waba_id | No | Required when method is "waba_user" | |
| app_name | No | Brand name shown in the message. Default "Kirimi.id". | |
| device_id | No | Required when method is "device" | |
| template_name | No | Required when method is "waba_user". Must be an APPROVED AUTHENTICATION category template. | |
| custom_message | No | Only for method "device". Must contain the {{otp}} placeholder and be 10-500 characters. |