Skip to content

System ​

Server resources and system information.

9 endpoints

GET /api/hosts ​

Get Hosts

Get a list of proxy hosts grouped by inbound tag.

Sudo admin only

Response 200 Successful Response · object

json
{
  "key": [
    {
      "remark": "string",
      "address": "string",
      "group_name": "string",
      "port": 0,
      "sni": "string",
      "host": "string",
      "path": "string",
      "security": "inbound_default",
      "alpn": "",
      "fingerprint": "",
      "allowinsecure": false,
      "is_disabled": false,
      "mux_enable": false,
      "fragment_setting": "string",
      "noise_setting": "string",
      "random_user_agent": false,
      "use_sni_as_host": false,
      "xhttp_extra": "string"
    }
  ]
}

Errors: 401 Unauthorized, 403 Forbidden

bash
curl -X GET 'https://YOUR-PANEL/api/hosts' \
  -H 'Authorization: Bearer $TOKEN'

PUT /api/hosts ​

Modify Hosts

Modify proxy hosts and update the configuration.

Sudo admin only

Request body application/json · object

json
{
  "key": [
    {
      "remark": "string",
      "address": "string",
      "group_name": "string",
      "port": 0,
      "sni": "string",
      "host": "string",
      "path": "string",
      "security": "inbound_default",
      "alpn": "",
      "fingerprint": "",
      "allowinsecure": false,
      "is_disabled": false,
      "mux_enable": false,
      "fragment_setting": "string",
      "noise_setting": "string",
      "random_user_agent": false,
      "use_sni_as_host": false,
      "xhttp_extra": "string"
    }
  ]
}

Response 200 Successful Response · object

json
{
  "key": [
    {
      "remark": "string",
      "address": "string",
      "group_name": "string",
      "port": 0,
      "sni": "string",
      "host": "string",
      "path": "string",
      "security": "inbound_default",
      "alpn": "",
      "fingerprint": "",
      "allowinsecure": false,
      "is_disabled": false,
      "mux_enable": false,
      "fragment_setting": "string",
      "noise_setting": "string",
      "random_user_agent": false,
      "use_sni_as_host": false,
      "xhttp_extra": "string"
    }
  ]
}

Errors: 401 Unauthorized, 403 Forbidden

bash
curl -X PUT 'https://YOUR-PANEL/api/hosts' \
  -H 'Authorization: Bearer $TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ ... }'

PUT /api/hosts/order ​

Set Hosts Order

Set the order inbounds (with their hosts) take in subscriptions.

Sudo admin only

Request body application/json · HostOrder

FieldTypeRequiredDescription
orderstring[]yes
json
{
  "order": [
    "string"
  ]
}

Response 200 Successful Response

Errors: 401 Unauthorized, 403 Forbidden

bash
curl -X PUT 'https://YOUR-PANEL/api/hosts/order' \
  -H 'Authorization: Bearer $TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"order": ["string"]}'

GET /api/inbounds ​

Get Inbounds

Retrieve inbound configurations grouped by protocol.

Any admin

Response 200 Successful Response · object

json
{
  "key": [
    {
      "tag": "string",
      "protocol": "vmess",
      "network": "string",
      "tls": "string",
      "port": 0
    }
  ]
}

Errors: 401 Unauthorized

bash
curl -X GET 'https://YOUR-PANEL/api/inbounds' \
  -H 'Authorization: Bearer $TOKEN'

GET /api/system ​

Get System Stats

Fetch system stats including memory, CPU, and user metrics.

Any admin

Response 200 Successful Response · SystemStats

Response fields
FieldTypeDescription
versionstring
mem_totalinteger
mem_usedinteger
cpu_coresinteger
cpu_usagenumber
total_userinteger
online_usersinteger
users_activeinteger
users_on_holdinteger
users_disabledinteger
users_expiredinteger
users_limitedinteger
users_expiring_sooninteger
incoming_bandwidthinteger
outgoing_bandwidthinteger
incoming_bandwidth_speedinteger
outgoing_bandwidth_speedinteger
traffic_limitinteger
json
{
  "version": "string",
  "mem_total": 0,
  "mem_used": 0,
  "cpu_cores": 0,
  "cpu_usage": 0,
  "total_user": 0,
  "online_users": 0,
  "users_active": 0,
  "users_on_hold": 0,
  "users_disabled": 0,
  "users_expired": 0,
  "users_limited": 0,
  "users_expiring_soon": 0,
  "incoming_bandwidth": 0,
  "outgoing_bandwidth": 0,
  "incoming_bandwidth_speed": 0,
  "outgoing_bandwidth_speed": 0,
  "traffic_limit": 0
}

Errors: 401 Unauthorized

bash
curl -X GET 'https://YOUR-PANEL/api/system' \
  -H 'Authorization: Bearer $TOKEN'

POST /api/system/restart ​

Restart Panel

Restart the panel. The process exits and the container (restart: always) brings it back up within a few seconds; subscriptions and nodes are unaffected by the brief blip.

Sudo admin only

Response 200 Successful Response

Errors: 401 Unauthorized

bash
curl -X POST 'https://YOUR-PANEL/api/system/restart' \
  -H 'Authorization: Bearer $TOKEN'

POST /api/xray/install ​

Install Xray Version

Install a chosen Xray-core version for the panel's own core. Guarded: a safety backup is taken, the new binary must pass the live config, and the panel rolls back

Sudo admin only

Request body application/json · XrayVersionIn

FieldTypeRequiredDescription
versionstringyes
json
{
  "version": "string"
}

Response 200 Successful Response

Errors: 401 Unauthorized

bash
curl -X POST 'https://YOUR-PANEL/api/xray/install' \
  -H 'Authorization: Bearer $TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"version": "string"}'

POST /api/xray/reset ​

Reset Xray Version

Go back to the Xray core version that ships with the panel.

Sudo admin only

Response 200 Successful Response

Errors: 401 Unauthorized

bash
curl -X POST 'https://YOUR-PANEL/api/xray/reset' \
  -H 'Authorization: Bearer $TOKEN'

GET /api/xray/versions ​

Get Xray Versions

Installable Xray-core versions (XTLS releases), newest first, for the version picker. The panel's current core version and each node's are reported separately (/system, /nodes).

Sudo admin only

Parameters

NameInTypeRequiredDescription
limitqueryintegerno
refreshquerybooleanno

Response 200 Successful Response

Errors: 401 Unauthorized

bash
curl -X GET 'https://YOUR-PANEL/api/xray/versions' \
  -H 'Authorization: Bearer $TOKEN'

Alexen v2.3.14 · 204 API endpoints