API Documentation

Automate your workflow with our simple, powerful API.

Authentication

All requests are authenticated using an API key. Provide your api_key with every request.


GET https://vpnserverhub.com/api/fetch-user-details?api_key=[YOUR_API_KEY]

Fetch User Details

Retrieves authenticated user details and usage limits.

GET /fetch-user-details

Query Parameters
Parameter Type Required Description
api_key string Yes Your API key
Sample Response

{
  "type": "success",
  "user": {
    "id": 10,
    "name": "Ocean Sims",
    "email": "jokoji1990@aperiol.com",
    "api_key": "ZRssL6...S176130575210",
    "expires_at": "2026-08-27"
  }
}

Server List

Fetch paginated list of servers.

GET /server-list

Query Parameters
Parameter Type Required Description
api_key string Yes API key
page integer No Pagination page

Fetch Config

Fetch configuration details of a specific server.

GET /fetch-config

Query Parameters
Parameter Type Required Description
api_key string Yes API key
id integer Yes Server ID
API key location

Visual guide to find your API key in dashboard