Skip to main content

Public, no auth

The price endpoint is the only public endpoint that does not require an API key.
curl "https://virtualsms.io/api/v1/price?service=wa&country=GB"

Query parameters

NameRequiredDescription
serviceyesService code (e.g. wa, tg, ig)
countryyesISO country code (e.g. GB, US, DE)

Response

{
  "success": true,
  "service": "wa",
  "country": "GB",
  "price": 0.90,
  "currency": "USD",
  "available": true
}
If the combination is not currently in stock:
{
  "success": false,
  "service": "tg",
  "country": "US",
  "error": "Service/country combination not available"
}

Use cases

  • Display live pricing on a landing page without exposing an API key
  • Pre-flight check before calling /customer/purchase
  • Bulk pricing lookups for multiple country/service combinations
For paid features (balance, purchase, order management), see the authenticated /customer/* endpoints.