Unbnd logoUnbnd

Proxy rule API

Public merged Clash RULE-SET lines and authenticated KV updates.

Endpoints

GET/api/proxy-rule/clash/config?type=Proxy

Public. Returns payload: string[] (Clash RULE-SET line prefixes) for rules whose action matches type (case-insensitive). Merges stored rules, optional ZeroOmega JSON URL, and gfwlist.

GET/api/proxy-rule/admin/clash

Requires login cookie. Returns current rules and

actions from stored config.

POST/api/proxy-rule/admin/clash

Requires login cookie. Body: { "rules": [...] } — full Clash rule objects (same shape as GET).

Example (success)

{
"code": 0,
"message": "ok",
"data": {
"payload": [
"DOMAIN-SUFFIX,example.com",
"DOMAIN,other.test"
]
}
}
Playground

Send requests and view responses.

Request
Response