← Back to Solutions
For Developers

Build with OrbVPN

A REST API for your account, servers and subscription.

Simple Integration

Call the REST API directly over HTTPS with any language. Sign in, read account details and work with servers, as the API documentation describes.

  • RESTful API design
  • Comprehensive documentation
example.ts
// Plain HTTPS calls to the REST API
const API = 'https://api.orbai.world/api/v1';

// Sign in and receive an access token
const login = await fetch(`${API}/auth/login`, {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    email: 'user@example.com',
    password: 'your_password',
    platform: 'web', // a script sign-in, not a VPN device
  }),
});
// Accounts with two-factor sign-in get requires_2fa here instead of tokens.
const { data } = await login.json();

// Read the signed-in account
const me = await fetch(`${API}/users/me`, {
  headers: { Authorization: `Bearer ${data.tokens.access_token}` },
});
console.log(await me.json());

API Features

Authentication

Token sign-in with email or social login

Rate Limiting

Limits apply; see the rate limit docs.

Hylon API Keys

Create, list and revoke Hylon API keys through the API.

WebSockets

Get live notifications and chat over WebSocket.

API Endpoints

POST/api/v1/auth/registerCreate user account
GET/api/v1/users/meGet user details
GET/api/v1/subscriptions/currentRead subscription
GET/api/v1/serversList VPN servers
GET/api/v1/vpn/connectionGet active connection
GET/api/v1/vpn/usageGet bandwidth usage

Ready to Build?

Read the docs and start calling the REST API.