Nimba SMS icon

Nimba SMS

Send SMS, manage campaigns, and track delivery reports using the Nimba SMS API with ease.

Actions9

Message → Verification OTP

AI-generated

Overview

This node operation sends a One-Time Password (OTP) verification SMS to a specified phone number using the Nimba SMS API. It is useful for scenarios requiring user verification, such as login authentication, transaction confirmation, or account recovery. The node allows customization of the sender name, message template with an OTP placeholder, and additional settings like OTP expiry time, number of attempts, and code length.

Use Case Examples

  1. Sending an OTP to a user's phone number for two-factor authentication.
  2. Verifying a user's phone number during account registration by sending a custom OTP message.

Properties

Name Meaning
Sender Name Select the sender name from available options to identify the sender of the OTP message.
Phone Number The recipient's phone number to which the OTP verification message will be sent.
Message The message template containing the <1234> placeholder where the OTP code will be inserted.
Additional Fields Optional settings for OTP such as expiry time in minutes, number of allowed attempts, and OTP code length.

Output

JSON

  • to - Formatted recipient phone number receiving the OTP.
  • message - The OTP message sent, including the OTP code in place of the <1234> placeholder.
  • sender_name - The sender name used for sending the OTP message.
  • expiry_time - Optional expiry time for the OTP in minutes.
  • attempts - Optional number of allowed attempts for OTP verification.
  • code_length - Optional length of the OTP code sent.
  • status - Status of the OTP verification request returned by the API.

Dependencies

  • Nimba SMS API
  • An API key credential for authentication

Troubleshooting

  • Invalid phone number error: Ensure the phone number is correctly formatted and valid.
  • Message must contain <1234> placeholder: The message template must include the <1234> placeholder for the OTP code.
  • Message length limit exceeded: OTP verification messages must not exceed 153 characters.
  • API request failures: Check API credentials and network connectivity.

Discussion