Skip to Content
3x-ui3x-ui

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.

GET
/panel/api/realityWatch/list

Authorization

headerAuthorizationBearer <token>

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

Response Body

Successful response

application/json
  1. response
success?boolean
msg?string
obj?array<>
Example Request
curl -X GET 'https://example.com/panel/api/realityWatch/list'
Example Response200
{  "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"    }  ]}
GET
/panel/api/realityWatch/status/{id}

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

id*integer

Inbound ID.

Response Body

Successful response

application/json
  1. response
success?boolean
msg?string
obj?
Example Request
curl -X GET 'https://example.com/panel/api/realityWatch/status/0'
Example Response200
{  "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"  }}
POST
/panel/api/realityWatch/save/{id}

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

id*integer

Inbound ID.

Request Body

application/json
  1. body

Response Body

Successful response

application/json
  1. response
success?boolean
msg?string
obj?
Example Request
curl -X POST 'https://example.com/panel/api/realityWatch/save/0' \  -H 'Content-Type: application/json' \  -d '{  "auto": true,  "spares": [    "www.example.com:443"  ]}'
Example Response200
{  "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"  }}
POST
/panel/api/realityWatch/switch/{id}

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

id*integer

Inbound ID.

Request Body

application/json
  1. body

Response Body

Successful response

application/json
  1. response
success?boolean
msg?string
obj?
Example Request
curl -X POST 'https://example.com/panel/api/realityWatch/switch/0' \  -H 'Content-Type: application/json' \  -d '{  "target": "www.example.com:443"}'
Example Response200
{  "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"  }}
POST
/panel/api/realityWatch/test

Authorization

headerAuthorizationBearer <token>

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

Request Body

application/json
  1. body

Response Body

Successful response

application/json
  1. response
success?boolean
msg?string
obj?
Example Request
curl -X POST 'https://example.com/panel/api/realityWatch/test' \  -H 'Content-Type: application/json' \  -d '{  "target": "www.example.com:443"}'
Example Response200
{  "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  }}