Authentication
Create or rotate your key in Account Settings. Send it in the Authorization header. The full key is displayed only once; SMSREC stores only its cryptographic hash.
Errors, limits and idempotency
Responses are JSON and include an ok boolean. The current limit is 60 requests per minute per API key. Purchase requests require a unique Idempotency-Key so a network retry cannot buy the same number twice.
GET/api/v1/balance
Returns the current account balance.
GET/api/v1/services
Returns all services with live stock and their lowest current price.
GET/api/v1/prices?service=telegram
Returns up to 500 current service-country offers. Provide service, country, or both.
POST/api/v1/activations
service required — service code from the services endpointcountry required — country code from the prices endpointIdempotency-Key required header — a unique value for this purchase attemptGET/api/v1/activations/{id}
Poll every 3–5 seconds. When the SMS arrives, status becomes received and code contains the verification code.
POST/api/v1/activations/{id}/cancel
Cancels a waiting activation and returns its price to your SMSREC balance. A received activation is completed without a refund.