SMS Balance & Delivery Logs
Check SMS Balance
GET /api/v1/sms/balance
Returns the current SMS credit balance in BDT.
bash
curl -X GET "https://pingoline.com/api/v1/sms/balance" \
-H "Authorization: Bearer YOUR_API_TOKEN_HERE"Response
json
{
"success": true,
"data": {
"balance": 450.50,
"currency": "BDT"
}
}Query SMS Logs
GET /api/v1/sms/logs
Retrieve historical SMS records with delivery status.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
phone | string | Filter by recipient phone number |
status | string | sent, delivered, failed |
per_page | integer | Results per page (default: 25) |
bash
curl -X GET "https://pingoline.com/api/v1/sms/logs?status=delivered&per_page=10" \
-H "Authorization: Bearer YOUR_API_TOKEN_HERE"