POSThttps://sms-notification.montymobile.com/api/v2/sms/send-otp
Send OTP API
Overview
The Send OTP API is used to deliver One-Time Password (OTP) messages to a mobile number. This API is designed for authentication and verification scenarios.
Request Headers
text
Tenant: {Tenant_ID}
api-key: {API_KEY}
Content-Type: application/json
Request Body
json
{
"Source": "MontyTest",
"Message": "test message",
"Destination": "{Destination}"
}
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Source | String | Yes | Sender ID displayed to the recipient |
| Message | String | Yes | OTP message content |
| Destination | String | Yes | Recipient mobile number |
cURL Example
bash
curl -X POST "https://sms-notification.montymobile.com/api/v2/sms/send-otp" \
-H "Tenant: {Tenant_ID}" \
-H "api-key: {API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"Source": "MontyTest",
"Message": "test message",
"Destination": "{Destination}"
}'
Success Response
json
{
"message": "Success",
"code": "8_10_200",
"success": true,
"data": {
"messageId": "xxx",
"errorCode": 0,
"description": null,
"destination": "xxx"
},
"version": "2"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| message | String | Human-readable status message (e.g. "Success") |
| code | String | Internal response code returned by the platform |
| success | Boolean | Indicates whether the request was processed successfully |
| data.messageId | String | Unique identifier assigned to the sent message |
| data.errorCode | Integer | 0 indicates no error; a non-zero value indicates a specific failure reason |
| data.description | String | Additional detail about the result; null when there is no error |
| data.destination | String | Recipient mobile number the response corresponds to |
| version | String | API version that generated the response |