Send OTP/PIN by SMS Request

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

How to call Send OTP/PIN by SMS — the endpoint, the headers it expects, and every request parameter with its type.

Endpoint

POST https://app.way2api.com/api/v1/aws/send_otp-pin

Headers

Authorization: Bearer your_api_key_here
Content-Type: application/json

Parameters (application/json)

Parameter Type Required Description
number string Required Country code + mobile number. Currently supported: +91 (India). Example: 919876543210.
content string Required Content type: "OTP" or "PIN".
value string Required The OTP/PIN code to send (4 to 8 digits only).
purpose string Required Purpose of the SMS. Allowed: login, registration, password_reset, transaction, account_verification, two_factor_auth, payment_confirmation, order_confirmation, profile_update, withdrawal.
share_with string Required Sharing instruction. Allowed: no_one, executive, manager, support_team, admin.

Request Body

{
    "value": "5289",
    "number": "919876543210",
    "content": "OTP",
    "purpose": "login",
    "share_with": "no_one"
}

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.