REALITY watch
Spare targets per REALITY inbound. Every 10 minutes the panel checks each watched target from this server; after 3 failed checks in a row, an inbound with auto switch on moves to the first spare that passes the same check and a real REALITY connection through a throwaway Xray server and client. Inbounds on nodes, and targets on this machine or the LAN (a bare port, a unix socket, a private address), are not checked.
AuthorizationBearer <token>Scoped API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
Successful response
application/json- response
success?booleanmsg?stringobj?array<>curl -X GET 'https://example.com/panel/api/realityWatch/list'{ "success": true, "obj": [ { "auto": true, "checkedAt": 1793000000, "events": [ { "at": 1793000000, "from": "old.example.com:443", "reason": "TLS handshake failed: EOF", "to": "www.example.com:443" } ], "fails": 0, "inboundId": 3, "latencyMs": 180, "ok": true, "reason": "", "serverNames": [ "old.example.com" ], "spares": [ "www.example.com:443" ], "target": "old.example.com:443" } ]}AuthorizationBearer <token>Scoped API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
id*integerInbound ID.
Successful response
application/json- response
success?booleanmsg?stringobj?curl -X GET 'https://example.com/panel/api/realityWatch/status/0'{ "success": true, "obj": { "auto": true, "checkedAt": 1793000000, "events": [ { "at": 1793000000, "from": "old.example.com:443", "reason": "TLS handshake failed: EOF", "to": "www.example.com:443" } ], "fails": 0, "inboundId": 3, "latencyMs": 180, "ok": true, "reason": "", "serverNames": [ "old.example.com" ], "spares": [ "www.example.com:443" ], "target": "old.example.com:443" }}AuthorizationBearer <token>Scoped API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
id*integerInbound ID.
application/json- body
Successful response
application/json- response
success?booleanmsg?stringobj?curl -X POST 'https://example.com/panel/api/realityWatch/save/0' \ -H 'Content-Type: application/json' \ -d '{ "auto": true, "spares": [ "www.example.com:443" ]}'{ "success": true, "obj": { "auto": true, "checkedAt": 1793000000, "events": [ { "at": 1793000000, "from": "old.example.com:443", "reason": "TLS handshake failed: EOF", "to": "www.example.com:443" } ], "fails": 0, "inboundId": 3, "latencyMs": 180, "ok": true, "reason": "", "serverNames": [ "old.example.com" ], "spares": [ "www.example.com:443" ], "target": "old.example.com:443" }}AuthorizationBearer <token>Scoped API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
id*integerInbound ID.
application/json- body
Successful response
application/json- response
success?booleanmsg?stringobj?curl -X POST 'https://example.com/panel/api/realityWatch/switch/0' \ -H 'Content-Type: application/json' \ -d '{ "target": "www.example.com:443"}'{ "success": true, "obj": { "auto": true, "checkedAt": 1793000000, "events": [ { "at": 1793000000, "from": "old.example.com:443", "reason": "TLS handshake failed: EOF", "to": "www.example.com:443" } ], "fails": 0, "inboundId": 3, "latencyMs": 180, "ok": true, "reason": "", "serverNames": [ "old.example.com" ], "spares": [ "www.example.com:443" ], "target": "old.example.com:443" }}AuthorizationBearer <token>Scoped API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
application/json- body
Successful response
application/json- response
success?booleanmsg?stringobj?curl -X POST 'https://example.com/panel/api/realityWatch/test' \ -H 'Content-Type: application/json' \ -d '{ "target": "www.example.com:443"}'{ "success": true, "obj": { "alpn": "h2", "certChainBytes": 3427, "certChainValid": true, "certIssuer": "Google Trust Services", "certSubject": "cloudflare.com", "certValid": true, "curveID": "X25519", "feasible": true, "h2": true, "host": "www.cloudflare.com", "ip": "104.16.124.96", "latencyMs": 180, "notAfter": "2026-08-01T00:00:00Z", "port": 443, "privateTarget": false, "reason": "", "serverNames": [ "" ], "target": "www.cloudflare.com:443", "tls13": true, "tlsVersion": "1.3", "x25519": true }}
3x-ui