Send OTP/PIN by SMS

Telecom
POST /api/v1/aws/send_otp-pin Bearer

Send a transactional OTP or PIN SMS to a mobile number worldwide via Text SMS. Supports strict purpose and share_with validation.

Availability

🌍 Global — Available worldwide

What Send OTP/PIN by SMS Is Used For

Login and transaction OTP

Send a one-time code to confirm a login, a payment or a profile change.

Account recovery

Deliver a reset PIN to a verified mobile number during password recovery.

Phone number ownership

Prove a user controls the number they entered before you attach it to an account.

International delivery

Send transactional codes to mobile numbers worldwide from one endpoint.

Quick Start

1. Copy your API key from Dashboard → API Keys
2. Send a POST request to /api/v1/aws/send_otp-pin
3. Pass the key as Authorization: Bearer <key>
4. Read the result from the data object in the JSON response

cURL

curl -X POST https://app.way2api.com/api/v1/aws/send_otp-pin \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":"5289","number":"919876543210","content":"OTP","purpose":"login","share_with":"no_one"}'
🚀 Send Request
✓ Key saved

🔑 Remember API Key

One-click convenience for testing & troubleshooting — no account needed.

1

What it doesSaves your API key in this browser only using localStorage. Next time you open a docs page, the Try It panel is pre-filled automatically.

2

Auto-updatesIf you type a different key into any Try It field, the saved key is replaced instantly — only the most recent key is ever stored.

3

Uncheck to forgetUnchecking “Remember API Key” immediately deletes the stored key and clears the field. While unchecked, nothing is saved even if you type a new key.

4

Re-check to save againChecking the box again saves whatever key is currently in the Try It field.

⚠ Security note: Your key is stored only in your browser and is never sent to any server except as part of the actual API call you send. Do not use this feature on shared or public computers.