TGPVA Logo

TGPVA API Documentation

Connect to our service via HTTP endpoints to manage virtual numbers, receive codes, check balance and more.

🔐 Authentication

All requests require an API key as a GET parameter:

?apiKey=YOUR_KEY

🧱 API Endpoints

GET /getCountries

Returns a list of supported countries available for number purchase.

https://tgpva.com/api/user/getCountries?apiKey=YOUR_KEY

GET /getBalance

Returns the remaining credit available for your account.

https://tgpva.com/api/user/getBalance?apiKey=YOUR_KEY

GET /getNumber

Returns a temporary phone number for a given country.

https://tgpva.com/api/user/getNumber?apiKey=YOUR_KEY&country=US

GET /getCode

Fetches the verification code received on the given phone number and session hash.

https://tgpva.com/api/user/getCode?apiKey=YOUR_KEY&number=%2B123456789&hash=xyz123

✅ Example Response

Successful balance response:

{
  "ok": true,
  "msg": "success",
  "result": { "balance": "42.5" }
}

❌ Error Responses

← Back to Main Page