NewBulkSMSIraq is now an official Meta Tech Partner for WhatsApp in Iraq.Read the news

OTP API documentation

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
Try every request in PostmanReady-made OTP and SMS requests for WhatsApp, Telegram and SMS. Open the collection, add your API key and press Send. Open in Postman
Quick start

Send your first OTP in three steps

  1. 1

    Get your API key

    Sign in to the portal, or create your account from the same page. Your API key is in your account.

  2. 2

    Send a code

    POST /v5/otp/send with the number, channel and fallback.

  3. 3

    Verify it

    POST /v5/otp/verify with the id and the code the user typed.

Base URLhttps://gateway.standingtech.com/api
FormatJSON (UTF-8)
AuthBearer API key
Numbers9647XXXXXXXXX
Authentication

Bearer API key

Send your API key in the Authorization header of every request. Keep it on your server: never put it in a mobile app or in browser JavaScript.

Headers
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: application/json

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.

ParameterRequiredDescription
recipientrequiredPhone number in international format without +, e.g. 9647701234567.
sender_idrequiredYour registered Sender ID (app or brand name).
channelrequiredwhatsapp, telegram or sms.
fallbackrequiredsms, telegram or none. A fallback is only used with channel: whatsapp.
messageoptionalauto (recommended) or your own numeric code.
langoptionalen (default), ar, ku or fa.
curl -X POST https://gateway.standingtech.com/api/v5/otp/send \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
  "recipient": "9647701234567",
  "sender_id": "YourApp",
  "channel":   "whatsapp",
  "fallback":  "sms",
  "message":   "auto",
  "lang":      "en"
}'
Verify an OTP

POST /v5/otp/verify

Checks the code your user typed against the code you sent. Use the id from the send response.

ParameterRequiredDescription
idrequiredThe id returned by /v5/otp/send.
coderequiredThe code the user entered.
expireoptionalCodes expire after 30 minutes. Send no to turn expiry off.
cURL
curl -X POST https://gateway.standingtech.com/api/v5/otp/verify \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "id": "6745f1c2a9e3b", "code": "482915" }'
200

{"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
Deliveredaround 9 in 10 codes
Not on WhatsAppnot charged
SMS or Telegramsame code, delivered
fallbackWhat happens if WhatsApp failsYou pay
smsThe code is sent by SMS to any Iraqi network. Recommended: reaches every phone.SMS price only
telegramThe code is sent on Telegram. Lowest cost, but only reaches Telegram users.Telegram price only
noneNo 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.

ParameterRequiredDescription
recipientrequiredPhone number, e.g. 9647701234567.
sender_idrequiredYour registered Sender ID.
messagerequiredThe 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."
  }'
200 Response
{
  "status":  "success",
  "message": "Your message was accepted",
  "id":      "6745f1c2a9e3b",
  "data": {
    "status":    "accepted",
    "from":      "YourBrand",
    "to":        "9647701234567",
    "sms_type":  "plain",
    "sms_count": 1,
    "cost":      0.09
  }
}
Responses

Success and error format

Every response is JSON. Check status first; on failure, error.code tells you exactly what happened.

200 Success
{
  "status":  "success",
  "message": "Your message was accepted",
  "id":      "6745f1c2a9e3b"
}
400 Error
{
  "status": "failed",
  "error": {
    "code":    "1216",
    "message": "Invalid Phone Number for Iraq"
  }
}
Limits & protection

Built-in protection against SMS pumping

  • Up to 2 OTP requests per phone number in 30 seconds (1907).
  • Hourly and daily limits per number (1906, 1905); ask us to whitelist test numbers.
  • A code is locked after 5 wrong attempts (1507).
  • Invalid Iraqi numbers are rejected before sending (1216), so you never pay for them.
  • Too many requests from one key return 1008 or 1300 with HTTP 429. Retry after a short pause.
Error codes

All error codes

88 codes, grouped by type. Type a code or a word to filter.

10xx · Request

CodeHTTPMeaning
1000400Bad Request - The request could not be understood
1001400Invalid Request - Check the API Endpoint
1002401Unauthorized - No API Key found
1003400Invalid format
1004400Missing SenderID
1005403Forbidden - Access denied
1006404Resource not found
1007200Request method not allowed
1008429Too many requests - Rate limit exceeded
1009500Internal Server Error
1010400Bad Request - Do not use Auto here
1011400Invalid format of WhatsApp Request
1012400Bad Request - type or Channel was empty or Invalid
1013400Bad Request - Fallback was empty or Invalid use only (none, whatsapp, telegram)

11xx · Authentication & account

CodeHTTPMeaning
1100401Authentication required
1101401Invalid API Key
1102401Expired API Key
1103401Invalid or missing token
1104403Access denied - Insufficient permissions
1105403Account suspended or blocked
1106403Not allowed to use this SenderID for the given API KEY
1107403Your account has been disabled please contact admin

12xx · Parameters

CodeHTTPMeaning
1200400Missing required parameter(s)
1201400Invalid parameter value
1202400Invalid JSON format
1203400Message body cannot be empty
1204400Invalid phone number format
1205400Sender ID contains invalid characters
1206400Sender ID is too long
1207400Receiver number is required
1208400Receiver number is blacklisted
1209400Please set your SenderID in the sender_id parameter!
1210400Pricing Error for Given SenderID please contact admin now
1211400International numbers disabled or Invalid Number
1212400Invalid Parameters - code must be set to Auto
1213400Invalid Parameters - Param2 is missing
1214400Invalid Parameters - Param3 is missing
1215400Invalid or missing template ID
1216400Invalid Phone Number for Iraq
1217400Invalid Type
1218400Only sms/telegram allowed as fallback for WhatsApp
1219400Message Format was invalid

13xx · Rate limits & quotas

CodeHTTPMeaning
1300429Too many requests - Slow down
1301429Daily quota exceeded
1302429Monthly quota exceeded
1303429Message sending limit reached

14xx · Data

CodeHTTPMeaning
1400500Database connection error
1401500Database query failed
1402404Record not found
1403409Duplicate entry - Already exists

15xx · Messages & OTP

CodeHTTPMeaning
1500400Invalid SMS content
1501400SMS message too long
1502400SMS sending failed
1503402Insufficient balance to send message
1504503SMS gateway unavailable
1505503SMS delivery failed
1506400Invalid OTP request
1507410expired
1508400OTP already used
1509400Missing (Code or ID) parameter
1510400Invalid ID in the request
1511400Invalid Phone number in the request
1512400failed
1513400Invalid Format - Message or Param is missing

16xx · API

CodeHTTPMeaning
1600404API endpoint not found
1601405Unsupported API version
1602415Unsupported media type
1603502Bad gateway - Third-party service issue

17xx · Payment

CodeHTTPMeaning
1700402Payment required
1701402Invalid payment method
1702402Payment failed
1703402Subscription expired
1704402Transaction declined

18xx · Server

CodeHTTPMeaning
1800500Unexpected server error
1801500Service temporarily unavailable
1802500Configuration error
1803503Server under maintenance
1804503Unknown Error, Please contact admin
1805503Unknown Route please contact admin

19xx · Security & abuse protection

CodeHTTPMeaning
1900403Suspicious activity detected
1901403Account flagged for fraud
1902403API abuse detected
1903403IP address blacklisted
1904403Access denied due to country restrictions
1905403Daily Limit Exceeded please contact admin to whitelist required numbers
1906403Hourly Limit Exceeded please contact admin to whitelist required numbers
1907403Only Two OTP request allowed in 30 seconds
1908403Only 3 OTP requests allowed in 30 seconds
FAQ

Developer questions

Still have questions?

Our team in Erbil answers on WhatsApp and by phone.

Saturday – Thursday9 AM – 9 PM

or email info@bulksmsiraq.com

4.9from 219 Google reviews
Where do I get an API key?

Sign in to the customer portal at portal.verifyway.com, or create an account from its sign-in page. Your API key is in your account.

Which phone number format should I use?

International format without + or 00, for example 9647701234567. Invalid Iraqi numbers are rejected with error 1216 before anything is sent.

Do I need to store the OTP myself?

No. With "message": "auto" we generate and store the code; you only keep the id from the send response and call verify.

Am I charged when WhatsApp fails and SMS is used?

You pay only for the SMS. A failed WhatsApp attempt is never charged.

Is there a test or sandbox mode?

Ask our team for test credit when your account is created, and send to your own number while you integrate.