Skip to main content
Use the OTP API when your application needs phone verification by SMS. For WhatsApp plus SMS OTP, use Unified OTP.

Send OTP

Send response

Store pinId on your server. Ask the customer for the code, then call verify.

Verify OTP

Aliases accepted for the code: pin, otp, or code.

Logs

Billing

  • Sending an OTP consumes SMS balance after the gateway accepts the request.
  • Verification does not consume SMS balance.
  • Failed sends, incorrect PINs, and expired PINs are logged for debugging.

Best practices

  • Store pinId server-side.
  • Do not trust OTP verification done in browser-only code.
  • Rate limit signup/login forms before calling the OTP API.
  • Do not expose the OTP token in mobile apps.