Skip to content

Chains ​

Relay / exit chaining between servers.

5 endpoints

GET /api/chain ​

Get Chain

List relay/exit chains between servers and the state of each link.

Sudo admin only

Response 200 Successful Response

Errors: 401 Unauthorized, 403 Forbidden

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

POST /api/chain/{key}/check ​

Check Exit

open a few sites from this server, the way its users' traffic leaves

Sudo admin only

Parameters

NameInTypeRequiredDescription
keypathstringyes

Response 200 Successful Response

Errors: 401 Unauthorized, 403 Forbidden

bash
curl -X POST 'https://YOUR-PANEL/api/chain/<key>/check' \
  -H 'Authorization: Bearer $TOKEN'

PUT /api/chain/{key}/exit ​

Put Exit

leave this server through one of its core's outbounds / balancers

Sudo admin only

Parameters

NameInTypeRequiredDescription
keypathstringyes

Request body application/json · ExitIn

FieldTypeRequiredDescription
tagstringno
json
{
  "tag": ""
}

Response 200 Successful Response

Errors: 401 Unauthorized, 403 Forbidden

bash
curl -X PUT 'https://YOUR-PANEL/api/chain/<key>/exit' \
  -H 'Authorization: Bearer $TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"tag": ""}'

PUT /api/chain/{key}/inbounds ​

Put Inbound Exits

choose where the users of these inbounds leave (several inbounds may share one server)

Sudo admin only

Parameters

NameInTypeRequiredDescription
keypathstringyes

Request body application/json · InboundExitIn

FieldTypeRequiredDescription
tagsstring[]yes
targetstringno
json
{
  "tags": [
    "string"
  ],
  "target": ""
}

Response 200 Successful Response

Errors: 401 Unauthorized, 403 Forbidden

bash
curl -X PUT 'https://YOUR-PANEL/api/chain/<key>/inbounds' \
  -H 'Authorization: Bearer $TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"tags": ["string"], "target": ""}'

PUT /api/chain/{relay} ​

Put Chain

Set which exit server a relay node forwards to (per inbound).

Sudo admin only

Parameters

NameInTypeRequiredDescription
relaypathstringyes

Request body application/json · LinkIn

FieldTypeRequiredDescription
exitstringno
portintegerno
addressstringno
snistringnoDefault: "www.microsoft.com".
json
{
  "exit": "string",
  "port": 0,
  "address": "",
  "sni": "www.microsoft.com"
}

Response 200 Successful Response

Errors: 401 Unauthorized, 403 Forbidden

bash
curl -X PUT 'https://YOUR-PANEL/api/chain/<relay>' \
  -H 'Authorization: Bearer $TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"exit": "string", "port": 0, "address": "", "sni": "www.microsoft.com"}'

Alexen v2.3.14 · 204 API endpoints