Everything you need to send verification codes on WhatsApp, Telegram and SMS, verify them, and send SMS to every Iraqi network. One REST API, JSON in and out.
REST + JSONBearer API keyExamples in cURL, PHP, Node.js, Python
A missing key returns 1002, a wrong key 1101. Each key is linked to the Sender IDs on your account (1106 if a Sender ID isn’t yours).
Send an OTP
POST /v5/otp/send
Sends a one-time code on WhatsApp, Telegram or SMS. With "message": "auto" we generate a secure 6-digit code, write the message in your user’s language and store it for verification.
Parameter
Required
Description
recipient
required
Phone number in international format without +, e.g. 9647701234567.
sender_id
required
Your registered Sender ID (app or brand name).
channel
required
whatsapp, telegram or sms.
fallback
required
sms, telegram or none. A fallback is only used with channel: whatsapp.
{"status":"success"}: the code is correct. Log the user in.
400
1512: wrong code. After 5 wrong attempts the code is locked.
410
1507: expired or locked. Ask the user to request a new code.
Fallback & languages
A code that always arrives, in the right language
Automatic fallback
Send with channel: whatsapp and fallback: sms (or telegram). If WhatsApp can’t deliver, for example because the number has no WhatsApp account, the same code goes out on the fallback channel. Your verify call does not change.
Your appPOST /v5/otp/send
WhatsApptried first
Deliveredaround 9 in 10 codes
Not on WhatsAppnot charged
SMS or Telegramsame code, delivered
fallback
What happens if WhatsApp fails
You pay
sms
The code is sent by SMS to any Iraqi network. Recommended: reaches every phone.
SMS price only
telegram
The code is sent on Telegram. Lowest cost, but only reaches Telegram users.
Telegram price only
none
No second attempt. Your app can offer “Send by SMS” itself.
Nothing
Billing: a failed WhatsApp attempt is never charged. You pay only for the message that was delivered. fallback works only with channel: whatsapp; other channels return error 1218.
Languages
Set lang and use message: "auto" to send the code in your user’s language. Arabic, Kurdish and Persian messages are written right-to-left automatically.
enEnglishDefault
arالعربيةArabic
kuکوردیKurdish (Sorani)
faفارسیPersian
Send an SMS
POST /v5/sms/send
Sends a text message: order updates, alerts, reminders or campaigns. Write in any language: the API detects English (GSM, 160 characters per part) or Arabic/Kurdish (Unicode, 70 characters per part) by itself and tells you how many parts were charged.
Parameter
Required
Description
recipient
required
Phone number, e.g. 9647701234567.
sender_id
required
Your registered Sender ID.
message
required
The text of your message.
cURL
curl -X POST https://gateway.standingtech.com/api/v5/sms/send \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipient": "9647701234567",
"sender_id": "YourBrand",
"message": "Your order 578687237 from YourShop arrives today at 2:30 PM."
}'