ExplainerVPN API

What Is a VPN API?

A plain explanation of what a VPN API does, who uses one, and what to check before you pick a provider.

Short answer

A VPN API is a web interface that lets your own software run a VPN service without you running the servers. Your code calls the API to create a VPN account for a customer, list the server locations and get a connection config (WireGuard or OpenVPN) for the device. The provider runs the network; you own the customer, the brand and the price.

What a VPN API does

A complete VPN API covers the whole life of a customer:

  • Create the account when someone buys, and get a username and password back.
  • List the servers so your app or website can show the locations.
  • Generate configs: a WireGuard or OpenVPN file the device uses to connect.
  • Manage the account: suspend it when a payment fails, turn it back on, reset the password, cancel it.

With the ResellPortal VPN API those steps are POST /orders, GET /vpn/servers, GET /vpn/config and the /vpn/suspend, /vpn/unsuspend and /vpn/password calls.

A two-call example

# Create a VPN account for client 123
curl -X POST https://panel.resellportal.com/wp-json/resellportal/v1/orders \
  -H "X-API-Key: your_api_key" -H "X-API-Secret: your_api_secret" \
  -H "Content-Type: application/json" \
  -d '{"client_id": 123, "product_key": "vpn", "billing_cycle": "monthly"}'

# Get a WireGuard config for that account on server 8
curl "https://panel.resellportal.com/wp-json/resellportal/v1/vpn/config?service_id=597&server_id=8" \
  -H "X-API-Key: your_api_key" -H "X-API-Secret: your_api_secret"

Who uses a VPN API

  • Hosting companies and MSPs that add a VPN to their own client area or billing system.
  • App makers who want a VPN inside their own app, under their own name.
  • Resellers and agencies who sell a branded VPN on their own website.
  • Telecom and eSIM sellers who bundle a VPN with a data plan.

VPN API, VPN SDK or white label app?

A VPN API creates accounts and configs on a server you do not run. A VPN SDK is code inside an app that makes the connection on the device. A white label app is a finished app that shows your brand. You can combine them: the API for accounts and billing, plus either your own app (with the free WireGuard libraries) or the provider’s ready-made apps. ResellPortal gives you the API and ready-made apps for Windows, Mac, Android and Android TV / Fire TV that show your logo after sign-in.

What to look for in a VPN API

  • Real servers in the countries your customers want, not just virtual locations.
  • Modern protocols: WireGuard for speed, OpenVPN for compatibility, and TCP 443 for networks that block VPNs.
  • Clear pricing per account, with no monthly platform fee eating your margin.
  • A test mode so you can build without being charged.
  • A no-logs policy you can repeat to your own customers.

Frequently asked questions

It lets your software create VPN accounts, list server locations and generate WireGuard or OpenVPN connection configs automatically, so you can sell a VPN without running servers.

No. The API provider runs the servers. With ResellPortal that is 32 servers in 19 countries, and your accounts can use all of them.

No. The API creates accounts and configs on the provider’s side; an SDK makes the connection inside an app on the device. Many products use both.

It depends on the provider. ResellPortal charges no platform fee: each VPN account costs $1.75 a month at wholesale (less on longer cycles), and you set your own price.

Try the VPN API free in test mode

Free account, free test mode and no monthly platform fee. You only pay wholesale ($1.75 a month per VPN account) when you create one.

Launch Your White Label VPN Business Today

The global VPN market grows 15%+ every year. Launch in 5 minutes with zero upfront cost — keep 100% of your earnings.

No credit card required $0 monthly platform fee Live in 5 minutes Cancel anytime