Testing OTP API

Live at: https://otp.mortezah.ir Status: UP

Important: To receive OTP codes, you must start the bot first:

Start @otptestapibot now

the OTP-Codes will be sent to you by this bot!

POST /request-otp

chatId requiredapp_name optional • length optional (4–8, default 6)

curl -X POST https://otp.mortezah.ir/request-otp \
  -H "Content-Type: application/json" \
  -d '{"chatId": "123456789", "app_name": "My App", "length": 6}'

POST /verify-otp

curl -X POST https://otp.mortezah.ir/verify-otp \
  -H "Content-Type: application/json" \
  -d '{"chatId": "123456789", "otp": "483920"}'