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.