OTP service · SMS & WhatsApp

OTP SMS API for verification codes

Send one-time passwords to your users in Jordan by SMS or WhatsApp, and verify them with a second call. Built for sign-up, login, password reset and payment confirmation.

A complete OTP service, not just an SMS

Send and verify

Robocast creates the code, sends it and checks what the user typed. You don’t need to store codes yourself.

SMS or WhatsApp

Send the code by SMS, or by WhatsApp using an approved Authentication template, in Arabic or English.

Your rules

Codes of 4 to 8 digits (6 by default) that expire after 1 to 15 minutes (5 by default).

Bring your own code

Already generate codes in your system? Pass your own code and Robocast just delivers it.

Templates you control

The message text, sender name and expiry come from an OTP template in your workspace, so changing the wording needs no code release.

Delivery visibility

Every code sent shows up in your delivery reports, so you can see when a user didn’t receive it.

How to add OTP to your app

  1. Create an API key

    Sign up, create an API key and set up an OTP template.

  2. Send the code

    Call the send endpoint with the user’s phone number.

  3. Verify it

    Call the verify endpoint with the code the user typed and act on the result.

Two calls: send, then verify

Send a code by SMS (or WhatsApp at /otp/whatsapp/send), then verify what the user entered. The response tells you when the code expires.

POST /api/v1/broadcast/otp/sms/send
Authorization: Bearer rk_live_••••

{
  "encTemplateId": "tpl_••••",
  "phoneNumber": "+96279•••••••",
  "codeLength": 6,
  "expirySeconds": 300
}

200 { "channel": "SMS", "expiresInSeconds": 300 }

POST /api/v1/broadcast/otp/sms/tpl_••••/verify
{ "phoneNumber": "+96279•••••••", "code": "482913" }

Frequently asked questions

What is an OTP SMS API?

An OTP (one-time password) SMS API lets your app send a short code to a user’s phone to confirm it is really them, for example at sign-up, login or before a payment. Robocast sends the code and checks it for you.

How long is an OTP code valid?

5 minutes by default. You can set any expiry from 60 seconds to 15 minutes per request.

Can I send OTP codes by WhatsApp instead of SMS?

Yes. Robocast sends OTP codes by SMS or by WhatsApp. WhatsApp codes use an Authentication template approved by Meta on your WhatsApp Business account.

Can I use codes generated by my own system?

Yes. Pass a 4 to 8 digit code in the request and Robocast delivers it. If you don’t, Robocast generates a random code for you.

Does Robocast work for numbers in Jordan?

Yes. Robocast is built by Robotack for businesses in Jordan, with Arabic messages, approved sender names and pricing in Jordanian dinars.

Add OTP verification today

Create an account and start sending, or talk to our team about volume pricing.