| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 01/15/2026 | Initial Account API documentation (Credits and Users management). |
Retrieve your current credit balance.
Usage: Add action=credit as a query parameter to the endpoint URL.
GET /1.1/api.php?action=credit
| action required | string Value: "credit" Action identifier. Must be set to |
curl -X POST "https://api.smsbox.pro/1.1/api.php?action=credit" \ -H "Authorization: App YOUR_API_KEY"
CREDIT 22Add or remove credits from a sub-account.
Credits are transferred from your main account balance.
Usage: Add action=credit as a query parameter to the endpoint URL.
POST /1.1/api.php?action=credit
No-limit option: Sub-accounts can be configured to use the main account's balance directly without allocated credits. Enable this option in "User Management" in your account dashboard.
| action required | string Value: "credit" Action identifier. Must be set to |
| to required | string Sub-account username to manage credits for. |
| credit required | integer Number of SMS credits to add (positive) or remove (negative). Credits are transferred from/to the main account balance. |
curl -X POST "https://api.smsbox.pro/1.1/api.php?action=credit" \ -H "Authorization: App YOUR_API_KEY" \ -d "to=subaccount1&credit=100"
OK
Create and manage sub-accounts.
Limits:
Create a new sub-account under your main account.
Usage: Add action=utilisateur as a query parameter to the endpoint URL.
POST /1.1/api.php?action=utilisateur
Limits:
| action required | string Value: "utilisateur" Action identifier. Must be set to |
| do required | string Value: "add" Operation type. Must be set to |
| pseudo required | string <= 50 characters Username for the new sub-account. Maximum 50 characters. |
| mdp required | string <= 50 characters Password for the new sub-account. Maximum 50 characters. |
| nolimit | string Enum: "yes" "no" Enable "No-limit" option. When set to |
curl -X POST "https://api.smsbox.pro/1.1/api.php?action=utilisateur" \ -H "Authorization: App YOUR_API_KEY" \ -d "do=add&pseudo=subaccount1&mdp=SecurePassword123&nolimit=yes"
OK