VPNBuilder Developers vpnbuilder.org

Build a VPN brand on VPNBuilder

Pick the API your code talks to. Apps call the App API directly with your public app key; your own backend calls the Reseller API with your secret key. You can use both.

Two ways to integrate
Direct:        your app ──X-App-Key + user token──▶ App API (/v2)
Intermediate:  your app ──▶ your backend ──Bearer sk_…──▶ Reseller API (/reseller/v2)

New here? Start with Getting started.

API reference

App API

Sign-in, accounts, server list, VPN profiles (OpenVPN and WireGuard), devices, sessions, manual credentials, TV sign-in, support logs and the RevenueCat webhook.

For
Your iOS, Android, desktop and TV apps
Base URL
https://mercury.vpnbuilder.org/v2
Auth
X-App-Key + user Bearer token

Reseller API

Create, verify and manage customer accounts, set entitlements from your own billing, manual credentials, .ovpn files, TV approval and support reports.

For
Your own backend and website (server to server)
Base URL
https://mercury.vpnbuilder.org/reseller/v2
Auth
Bearer sk_ secret key

Guides

Getting started for resellers

VPNBuilder runs the VPN for your brand: servers, VPN credentials, customer accounts and sign-in. This guide explains the two ways to connect your apps and website to it, and walks...

Authentication & keys

Every request to VPNBuilder is identified by one of a few credentials: a public app key, a user token, a secret reseller key, or a RevenueCat webhook secret. This guide explains ea...

Building an app

A step-by-step guide to building a VPN app on the App API: startup config, sign-in, per-device VPN credentials, assembling OpenVPN and WireGuard configurations, and a robust connec...

In-app purchases with RevenueCat

Sell subscriptions in your apps with RevenueCat and let VPNBuilder activate the customer's plan automatically through a webhook. This guide covers the RevenueCat setup, how events...

TV sign-in

Let customers sign in on a TV (or any device without a comfortable keyboard) by typing a short code on their phone or your website, following the OAuth 2.0 device authorization pat...

Support reports

Let users send diagnostic logs from your app to your support team in one tap. VPNBuilder scrubs secrets, stores the report for 30 days, emails it to your support address and return...

Errors & rate limits

All v2 APIs report errors with real HTTP status codes and one JSON envelope containing a stable machine-readable code. This page lists every code, the order in which requests are c...