Developer documentation
Realistic request patterns for the GlobalSMS JSON API. Create an API key after signing in; do not use placeholders or share credentials.
Send `Authorization: Bearer YOUR_API_KEY` with every request. Keys are hashed server-side and the complete key is displayed only once after creation.
GET /api/v1/accountCreate, name, expire, and revoke keys from your account. Usage is recorded with endpoint, method, status, and timestamp.
POST /account/apiUse ISO 3166-1 alpha-2 country codes such as US, GB, CA, DE, FR, IT, ES, NL, AU, or ZA.
GET /api/v1/numbers/search?country=USFilter available numbers by country, type, and rental duration. Results include price and currency from active pricing rules.
GET /api/v1/numbers/search?country=US&type=mobile&duration_days=30Rent an available number atomically. The server checks account status, balance, availability, provider status, and pricing before charging the wallet.
POST /api/v1/numbers/{number_id}/rent
{"duration_days":30}Release an active rental. The provider number is released when supported and the local lifecycle enters cooldown before reuse.
POST /api/v1/numbers/{number_id}/releaseList inbound SMS belonging to your rentals or retrieve one message by ID. SMS retention settings automatically remove old content.
GET /api/v1/messages?limit=50Inspect current balance and currency.
GET /api/v1/walletReview immutable wallet ledger entries with before and after balances.
GET /api/v1/transactionsProvider webhooks are signature-verified server-side. Paystack payment events are verified before wallets are credited.
POST /api/public/webhooks/sms/{provider}Errors use JSON with code and message fields: 400 validation, 401 authentication, 403 authorization, 404 not found, 409 conflict, 422 validation, 429 rate limit, and 500 server error.
{"error":{"code":"INSUFFICIENT_FUNDS","message":"insufficient funds"}}API keys default to 60 requests per minute. Exceeding a limit returns HTTP 429 and is recorded in usage history.
{"error":{"code":"RATE_LIMITED","message":"Too many requests"}}