Send OTP/PIN by SMS Request
TelecomHow 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