Inbounds
Manage inbound configurations and their clients. All endpoints live under /panel/api/inbounds and require a logged-in session or Bearer token. Link-generating endpoints honour forwarded headers only when the request comes from a configured trusted proxy.
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/inbounds/list"{ "success": true, "obj": [ { "clientStats": [ { "down": 2097152, "email": "user1", "enable": true, "expiryTime": 1735689600000, "id": 14825, "inboundId": 1, "lastOnline": 1735680000000, "reset": 0, "subId": "i7tvdpeffi0hvvf1", "total": 10737418240, "up": 1048576, "uuid": "e18c9a96-71bf-48d4-933f-8b9a46d4290c" } ], "down": 0, "enable": true, "expiryTime": 0, "fallbackParent": null, "id": 1, "lastTrafficResetTime": 0, "listen": "", "nodeId": null, "originNodeGuid": "", "port": 443, "protocol": "vless", "remark": "VLESS-443", "settings": null, "shareAddr": "", "shareAddrStrategy": "node", "sniffing": null, "streamSettings": null, "subSortIndex": 1, "tag": "in-443-tcp", "total": 0, "trafficReset": "never", "up": 0 } ]}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/inbounds/list/slim"{ "success": true, "obj": [ { "id": 1, "remark": "VLESS-443", "settings": { "clients": [ { "email": "alice", "enable": true } ], "decryption": "none" }, "clientStats": [] } ]}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/inbounds/options"{ "success": true, "obj": [ { "id": 1, "nodeId": null, "port": 443, "protocol": "vless", "remark": "VLESS-443", "ssMethod": "", "tag": "in-443-tcp", "tlsFlowCapable": true } ]}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Path Parameters
Inbound ID.
Response Body
application/json
curl -X GET "https://example.com/panel/api/inbounds/get/0"{ "success": true, "msg": "string", "obj": null}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/panel/api/inbounds/add" \ -H "Content-Type: application/json" \ -d '{ "enable": true, "remark": "VLESS-443", "listen": "", "port": 443, "protocol": "vless", "expiryTime": 0, "total": 0, "settings": { "clients": [ { "id": "...", "email": "user1" } ], "decryption": "none", "fallbacks": [] }, "streamSettings": { "network": "tcp", "security": "reality", "realitySettings": { "show": false, "dest": "..." } }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } }'{ "success": true, "msg": "string", "obj": null}{ "success": false, "msg": "Port 443 is already in use"}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Path Parameters
Inbound ID.
Response Body
application/json
curl -X POST "https://example.com/panel/api/inbounds/del/0"{ "success": true, "msg": "string", "obj": null}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/panel/api/inbounds/bulkDel" \ -H "Content-Type: application/json" \ -d '{ "ids": [ 1, 2, 3 ] }'{ "success": true, "obj": { "deleted": 2, "skipped": [ { "id": 3, "reason": "..." } ] }}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Path Parameters
Inbound ID.
Response Body
application/json
curl -X POST "https://example.com/panel/api/inbounds/update/0"{ "success": true, "msg": "string", "obj": null}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Path Parameters
Inbound ID.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/panel/api/inbounds/setEnable/0" \ -H "Content-Type: application/json" \ -d '{ "enable": false }'{ "success": true, "msg": "string", "obj": null}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Path Parameters
Inbound ID.
Response Body
application/json
curl -X POST "https://example.com/panel/api/inbounds/0/resetTraffic"{ "success": true, "msg": "string", "obj": null}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Path Parameters
Inbound ID.
Response Body
application/json
curl -X POST "https://example.com/panel/api/inbounds/0/delAllClients"{ "success": true, "obj": { "deleted": 12 }}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/inbounds/resetAllTraffics"{ "success": true, "msg": "string", "obj": null}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/inbounds/import"{ "success": true, "msg": "string", "obj": null}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/panel/api/inbounds/pushClientTraffics" \ -H "Content-Type: application/json" \ -d '{ "masterGuid": "9f6c2d-…", "traffics": [ { "email": "alice", "up": 1048576, "down": 2097152 } ] }'{ "success": true}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Path Parameters
Master inbound ID.
Response Body
application/json
curl -X GET "https://example.com/panel/api/inbounds/0/fallbacks"{ "success": true, "obj": [ { "id": 1, "masterId": 10, "childId": 11, "name": "", "alpn": "", "path": "/vlws", "dest": "", "xver": 2, "sortOrder": 0 } ]}API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.
In: header
Path Parameters
Master inbound ID.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/panel/api/inbounds/0/fallbacks" \ -H "Content-Type: application/json" \ -d '{ "fallbacks": [ { "childId": 11, "path": "/vlws", "xver": 2 }, { "childId": 12, "alpn": "h2", "dest": "8443" } ] }'{ "success": true, "msg": "Inbound updated"}
3x-ui