REST APIWireGuard and OpenVPN$0 platform fee

VPN API for Resellers

Create VPN accounts, list servers and fetch ready-to-use WireGuard or OpenVPN configs from your own website, app or billing system. Your brand, our network, $1.75 wholesale per account per month.

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

  1. Create the account. Create a client with POST /clients, then order with POST /orders, "product_key": "vpn" and a billing cycle. The VPN username and password come back in the response.
  2. Pick a server. GET /vpn/servers returns every location with its id, city and country.
  3. Connect. GET /vpn/config returns 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

MethodEndpointWhat it does
POST/clientsCreate a customer (name and email). Returns the client_id.
POST/ordersCreate a VPN account: product_key "vpn", billing_cycle, optional vpn_username. Returns the login.
GET/vpn/serversEvery server location: id, city, country, online status and protocols.
GET/vpn/configA WireGuard (default) or OpenVPN config for an account and server.
GET/vpn/portsThe OpenVPN ports: UDP 1194, and TCP 443 for networks that block UDP.
GET/vpn/usernameCheck that a username is free before you order with it.
POST/vpn/suspendSuspend a login without deleting it.
POST/vpn/unsuspendTurn it back on. A renewal that came due meanwhile is charged to your wallet.
POST/vpn/passwordSet a new password, or get a random one.
GET/servicesList 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 cycleWholesalePer 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.

Frequently asked questions

A VPN API lets your software create VPN accounts and connection configs automatically, so you can sell a VPN inside your own website, app or billing system. With the ResellPortal VPN API you create an account with POST /orders and fetch WireGuard or OpenVPN configs with GET /vpn/config.

There is no setup or monthly fee. Each VPN account is charged at wholesale: $1.75 monthly, $4.99 quarterly, $9.49 every six months or $17.99 a year, and you choose your own selling price.

Yes. GET /vpn/config returns a complete WireGuard or OpenVPN config that you can embed in your own Android, iOS, Windows or Mac app. The same account works on every server, so your app only changes the server_id.

There are 32 servers in 19 countries across North and South America, Europe, Africa, the Middle East, Asia and Australia, and new countries are added all the time. GET /vpn/servers always returns the current list.

Yes. Add "test_mode": true to the request, or send the header X-RP-Test-Mode: 1. Test requests are checked and answered, but nothing is charged and no VPN account is created.

No activity logs: the sites your customers visit, their DNS lookups and their traffic are never recorded. Basic connection records are kept for 7 days to stop abuse, then deleted.

A free ResellPortal account. Copy your API key and secret from the API section of your panel. There is no minimum balance; a live order only needs enough in your wallet to cover it.

Get your VPN API keys in two minutes

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