Actions31
- Contact Actions
- Deposit Actions
- Device Actions
- Message Actions
- OTP Actions
- Package Actions
- User Actions
- WABA Actions
OTP → Generate OTP (V1)
AI-generatedSummary
Generates an OTP and sends it to a phone number through the specified Kirimi WhatsApp device. Choose the OTP length and character type, and optionally customize the message and typing effect.
Inputs
- Device ID (required) — WhatsApp device ID used to send the OTP.
- Phone Number (required) — Recipient number in a supported format such as 08xxx, 62xxx, or +62xxx.
- OTP Length — Requested OTP length; defaults to 8 (the UI describes a range of 4–20).
- OTP Type — Character set: Numeric (default), Alphabetic, or Alphanumeric.
- Custom OTP Message — Optional message template; the UI says it must contain {otp}.
- Custom OTP Text — Optional short prefix appended to the generated OTP text; the UI describes a maximum of 20 characters.
- Enable Typing Effect — When enabled, asks the API to simulate typing before sending; defaults to false.
- Typing Speed (Ms) — Typing speed sent when the typing effect is enabled; defaults to 350 ms (the UI describes a range of 100–800).
Output shape
A list of items containing the API response for each input item.
The node makes a POST request to the Kirimi V1 generate-OTP endpoint, adding Kirimi credentials to the request. Typing speed is only included when the typing effect is enabled. API errors are thrown unless Continue On Fail is enabled, in which case an item with an error field is returned.
Examples
Example 1: Generate and send a default numeric OTP
Provide a device ID and recipient phone number; leave OTP Length at 8 and OTP Type at Numeric.
Example 2: Send an OTP with a custom message
Provide a message template containing {otp}; optionally add a custom prefix.