Short answer
The ResellPortal VPN API is a REST API that lets you sell a VPN under your own brand. One call creates a VPN account, another returns a WireGuard or OpenVPN config for any of our 32 servers in 19 countries. There is no monthly platform fee: each account is charged at wholesale ($1.75 a month) from your prepaid wallet, and you keep the difference between that and your selling price.
How it works in three steps
- Create the account. Create a client with
POST /clients, then order withPOST /orders,"product_key": "vpn"and a billing cycle. The VPN username and password come back in the response. - Pick a server.
GET /vpn/serversreturns every location with its id, city and country. - Connect.
GET /vpn/configreturns a complete WireGuard or OpenVPN config for that account and server. Put it in your own app, or send your customer to the ready-made apps.
Example: from API key to config
Every request goes to https://panel.resellportal.com/wp-json/resellportal/v1 with your X-API-Key and X-API-Secret headers.
BASE=https://panel.resellportal.com/wp-json/resellportal/v1
AUTH=(-H "X-API-Key: your_api_key" -H "X-API-Secret: your_api_secret" -H "Content-Type: application/json")
# 1. Create the client (once per customer)
curl -X POST "$BASE/clients" "${AUTH[@]}" \
-d '{"name": "Jane Doe", "email": "jane@example.com"}'
# -> { "success": true, "client_id": 123, ... }
# 2. Create the VPN account
curl -X POST "$BASE/orders" "${AUTH[@]}" \
-d '{"client_id": 123, "product_key": "vpn", "billing_cycle": "monthly"}'
# -> { "success": true, "service_id": 597, "vpn_credentials": { "username": "...", "password": "..." } }
# 3. List the servers
curl "$BASE/vpn/servers" "${AUTH[@]}"
# 4. Get a WireGuard config for server 8 (Chicago)
curl "$BASE/vpn/config?service_id=597&server_id=8" "${AUTH[@]}"The same calls work from Node, Python, PHP or any language that can send HTTPS requests. Add "test_mode": true to try every call without being charged.
The endpoints
| Method | Endpoint | What it does |
|---|---|---|
| POST | /clients | Create a customer (name and email). Returns the client_id. |
| POST | /orders | Create a VPN account: product_key "vpn", billing_cycle, optional vpn_username. Returns the login. |
| GET | /vpn/servers | Every server location: id, city, country, online status and protocols. |
| GET | /vpn/config | A WireGuard (default) or OpenVPN config for an account and server. |
| GET | /vpn/ports | The OpenVPN ports: UDP 1194, and TCP 443 for networks that block UDP. |
| GET | /vpn/username | Check that a username is free before you order with it. |
| POST | /vpn/suspend | Suspend a login without deleting it. |
| POST | /vpn/unsuspend | Turn it back on. A renewal that came due meanwhile is charged to your wallet. |
| POST | /vpn/password | Set a new password, or get a random one. |
| GET | /services | List your services and their status. |
| DELETE | /services/{id} | Cancel a VPN account. |
WireGuard or OpenVPN, UDP or TCP 443
Every server runs WireGuard and OpenVPN. WireGuard is the default because it is the fastest. OpenVPN runs on UDP 1194, and also on TCP 443 for hotel, office and school networks that block UDP: ask for it with protocol=openvpn&port_id=2. One VPN account works on every server, so changing location is only a different server_id. Each login can be connected on up to 10 devices at once.
Pricing
No setup fee and no monthly platform fee. Each VPN account is charged at wholesale from your prepaid wallet for the billing cycle you choose, and you set your own selling price.
| Billing cycle | Wholesale | Per month |
|---|---|---|
| Monthly | $1.75 | $1.75 |
| Quarterly | $4.99 | $1.66 |
| Biannual | $9.49 | $1.58 |
| Annual | $17.99 | $1.50 |
Bigger wallet balances get a lower price on every order. Sell at $5.99 a month and you keep $4.24 per customer, every month.
Use our apps or build your own
You do not need to build an app. Your customers can use the ready-made VPN apps for Windows, Mac, Android and Android TV / Fire TV, which show your logo and colours after they sign in (iPhone is coming soon, and Linux connects with the free WireGuard app). If you have your own app, embed the configs from GET /vpn/config instead. See how to build your own VPN app.