3x-ui3x-ui

Subscription Balancers

Client-side balancers for the JSON subscription: each enabled balancer is emitted as one extra config document whose members are the proxy outbounds of the selected inbounds (routing.balancers + burstObservatory). Managed in Settings → Sub Balancers.

GET
/panel/api/sub-balancers

Authorization

AuthorizationBearer <token>

API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.

In: header

Response Body

application/json

curl -X GET "https://example.com/panel/api/sub-balancers"
{  "success": true,  "obj": [    {      "createdAt": 1710000000000,      "enabled": true,      "id": 1,      "inboundIds": [        1,        3      ],      "remark": "auto-fastest",      "sortOrder": 1,      "strategy": "random",      "updatedAt": 1710000000000    }  ]}
POST
/panel/api/sub-balancers

Authorization

AuthorizationBearer <token>

API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.

In: header

Response Body

application/json

curl -X POST "https://example.com/panel/api/sub-balancers"
{  "success": true,  "obj": {    "createdAt": 1710000000000,    "enabled": true,    "id": 1,    "inboundIds": [      1,      3    ],    "remark": "auto-fastest",    "sortOrder": 1,    "strategy": "random",    "updatedAt": 1710000000000  }}
POST
/panel/api/sub-balancers/{id}

Authorization

AuthorizationBearer <token>

API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.

In: header

Path Parameters

id*integer

Balancer id.

Response Body

application/json

curl -X POST "https://example.com/panel/api/sub-balancers/0"
{  "success": true,  "obj": {    "createdAt": 1710000000000,    "enabled": true,    "id": 1,    "inboundIds": [      1,      3    ],    "remark": "auto-fastest",    "sortOrder": 1,    "strategy": "random",    "updatedAt": 1710000000000  }}
DELETE
/panel/api/sub-balancers/{id}

Authorization

AuthorizationBearer <token>

API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.

In: header

Path Parameters

id*integer

Balancer id.

Response Body

application/json

curl -X DELETE "https://example.com/panel/api/sub-balancers/0"
{  "success": true,  "obj": {    "createdAt": 1710000000000,    "enabled": true,    "id": 1,    "inboundIds": [      1,      3    ],    "remark": "auto-fastest",    "sortOrder": 1,    "strategy": "random",    "updatedAt": 1710000000000  }}
POST
/panel/api/sub-balancers/{id}/del

Authorization

AuthorizationBearer <token>

API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.

In: header

Path Parameters

id*integer

Balancer id.

Response Body

application/json

curl -X POST "https://example.com/panel/api/sub-balancers/0/del"
{  "success": true,  "obj": {    "createdAt": 1710000000000,    "enabled": true,    "id": 1,    "inboundIds": [      1,      3    ],    "remark": "auto-fastest",    "sortOrder": 1,    "strategy": "random",    "updatedAt": 1710000000000  }}