Add SMS Config
Endpoints
1. Add SMS Configuration
Endpoint
POST /api/sms-config/add
Description
This endpoint allows adding a new SMS configuration for a client.
Headers
Key | Value |
---|---|
Content-Type | application/json |
secretKey | Your secret key |
Request Body
{
"providerName": "ExampleSMS",
"providerUrl": "https://portal.examplesms.com/",
"username": "[email protected]",
"password": "password123",
"senderId": "ExampleID",
"smsType": "Transactional",
"smsApi": "https://api.examplesms.com/sendsms",
"apiKey": "your_api_key",
"balanceUrl": "https://api.examplesms.com/user/balance",
"balance": 5000,
"perSmsCost": 0.5,
"isActive": true,
"clientId": 1
}
Response
Success Response
{
"status": 200,
"results": {
"verifyApiKey": "k7KxjLmFp6r0PKedDvtYF+cd7zRcd5VBlMvOd3PWXXcqgYxhPzwAFE92cdZOfoE0TkhQYAMuHNqoXo+J19LVe9uZCb5YzqhTvBKokyvkEMhDEcBqwJtWRLQlwBbWy6gjHdMmpmS4rcnkatEV7p/i6HspspVLvRv4SmJhBOIns0NHzkfR+UH+Z8AYVQGfP39Q"
}
}