Country code +98

Send OTP codes to Iran

Deliver one-time passwords and verification codes to mobile numbers in Iran (+98) through our REST API or from your dashboard. One flat price for every destination, known upfront — top up once, pay only for what you send.

€0.05

per message

No setup fee, no monthly minimum, credits never expire.

The same price in all 235 countries →
5cotp OTP delivery to Iran: a phone receives a one-time verification code in front of the Si-o-se-pol bridge in Isfahan
The Si-o-se-pol bridge in Isfahan — a one-time code delivered by 5cotp to a phone in Iran (+98).

Mobile numbers in Iran

Country code
+98
Example mobile number
+98 912 345 6789
National format
0912 345 6789
In the API (E.164)
+989123456789
Mobile number length
10 digits after +98
Domestic prefix
0, dialled only within the country
Standard time
UTC+03:30
ISO 3166 code
IR
Mobile country code (MCC)
432
Numbering zone
Zone 9 — mostly Western, Central and South Asia
Mobile networks
MCI/TCI, TKC/KFZO, Mobile Telecommunications Company of Esfahan JV-PJS (MTCE), Taliya, MTN/IranCell

Send an OTP to Iran with the API

One request sends one code. With generate_otp we create the code, put it in place of {otp} and return it in the response; the destination country is detected from the number.

curl -X POST https://5cotp.com/api/v1/messages \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sender": "YourBrand",
    "to": "+989123456789",
    "text": "Your verification code is {otp}",
    "generate_otp": true,
    "otp_length": 6
  }'

# 201 Created
{ "ok": true, "sms_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "accepted": 1, "invalid": 0,
  "mode": "live", "total_cost": "0.0500", "currency": "EUR", "otp_code": "482913" }
API documentation →

Questions about OTP delivery to Iran

How much does it cost to send an OTP to Iran?

€0.05 per message — the same flat price as for every other destination. No setup fee, no monthly minimum, credits never expire: you top up a prepaid balance and pay only for what you send. One message is up to 160 Latin or 70 non-Latin characters; a longer text goes out in several parts, each billed as one message.

How do I write a number from Iran for the API?

Use the international format: +98, then the number without the domestic prefix 0 — for example +98 912 345 6789. Spaces, dashes and brackets are ignored. Mobile numbers in Iran have 10 digits after +98.

Do I have to tell the API that the number is from Iran?

No. The destination country is detected from the number: +98 is Iran. You can still pass "country": "Iran" to state it explicitly.

How do I start sending OTPs to Iran?

Create an account and confirm your email address and mobile number — that unlocks your free test messages. Then create an API key in the dashboard and send POST /api/v1/messages with the number in the international format, such as +98 912 345 6789. You can also send an OTP from the dashboard without writing code.

How do I know the OTP reached the number in Iran?

Every send returns an sms_id. GET /api/v1/messages/<sms_id> shows its delivery status, a webhook can report each final status to your server, and the reports in your dashboard list every message with its status.

Nearby country codes

Start sending OTPs to Iran

Create an account, add an API key and pay €0.05 per message — no monthly fee.

Create account →