API Documentation
SMS Spam System API - Chỉ dành cho người dùng đã mua gói
Base URL
https://www.spamsms.net.shbank.club/api.php
Authentication
API-Key: your_api_key_here
POST Send SMS
/api.php?action=send
Parameters:
phone
Số điện thoại (10 số, bắt đầu 0) *Required
amount
Số lượng SMS (mặc định: 1, tối đa: 10)
Example:
curl -X POST https://yourdomain.com/api.php?action=send \
-H "API-Key: your_api_key" \
-d "phone=0987654321&amount=1"
Response Success:
{
"success": true,
"message": "Gửi SMS thành công!",
"data": {
"phone": "0987654321",
"amount": 1,
"remaining": 99,
"total_sent": 10,
"http_code": 200,
"response": "OK"
}
}
Response Error:
{
"success": false,
"error": "Not enough SMS remaining. Còn: 0, Cần: 1"
}
GET Get Stats
/api.php?action=stats
Example:
curl -X GET https://yourdomain.com/api.php?action=stats \
-H "API-Key: your_api_key"
Response:
{
"success": true,
"data": {
"username": "your_username",
"package": "monthly",
"package_name": "Gói 30 Ngày",
"remaining": 3999,
"total_sent": 1,
"balance": 999999999,
"expiry": "2026-08-21 13:25:59"
}
}
Error Codes
401
Invalid API Key
403
Package required - Vui lòng mua gói để sử dụng API
400
Invalid parameters (phone, amount)
429
Not enough SMS remaining
500
Server error
Yêu cầu
API chỉ khả dụng cho người dùng đã mua gói dịch vụ.
Nếu bạn đang sử dụng gói Miễn phí, vui lòng nâng cấp để sử dụng API.
Số lượng SMS tối đa mỗi lần gọi: 10