Get Your API Key
Create your personal API key from User Panel > Settings > API Access. Keep your key private and never share it publicly.
Authorization: Bearer ts_live_YOUR_API_KEYBase URL
https://threesms.com/api/v11. Get Balance
GET /api/v1/balance
Authorization: Bearer ts_live_YOUR_API_KEY2. List Services
GET /api/v1/services
Authorization: Bearer ts_live_YOUR_API_KEY3. List Countries and Prices
GET /api/v1/countries?service=whatsapp
Authorization: Bearer ts_live_YOUR_API_KEY4. Buy a Number
POST /api/v1/order
Authorization: Bearer ts_live_YOUR_API_KEY
Content-Type: application/json
{
"service": "whatsapp",
"country": "canada"
}5. Check Order / SMS Code
GET /api/v1/order?id=ORDER_ID
Authorization: Bearer ts_live_YOUR_API_KEY6. Cancel Order
POST /api/v1/cancel
Authorization: Bearer ts_live_YOUR_API_KEY
Content-Type: application/json
{
"id": 123
}cURL Example
curl -X GET "https://threesms.com/api/v1/balance" \
-H "Authorization: Bearer ts_live_YOUR_API_KEY"Note: API purchases use your USD wallet balance. Waiting orders without codes may be cancelled according to system rules and refunded to your balance.
