API Documentation
SMS Spam System API - Chỉ dành cho người dùng đã mua gói
Base URL
https://demo2.chauthebao.net/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)
amount
Số lượng SMS (yêu cầu: 1)
Example:
curl -X POST https://spamsms.net/api.php?action=send \
-H "API-Key: your_api_key" \
-d "phone=0987654321&amount=1"
Response:
{
"success": true,
"http_code": 200,
"response": "OK"
}
GET Get Stats
/api.php?action=stats
Example:
curl -X GET https://spamsms.net/api.php?action=stats \
-H "API-Key: your_api_key"
Response:
{
"success": true,
"data": {
"username": "your_username",
"package": "monthly",
"remaining": 3999,
"total_sent": 1,
"balance": 999999999
}
}
Error Codes
401
Invalid API Key
403
Package required - Vui lòng mua gói để sử dụng API
400
Invalid parameters
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.