{ "info": { "_postman_id": "f08dfdaf-791c-4f11-ac4e-5b799260c0aa", "name": "MHSanaei", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "16802678" }, "item": [ { "name": "Login", "request": { "method": "POST", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "{{USERNAME}}", "type": "text" }, { "key": "password", "value": "{{PASSWORD}}", "type": "text" } ] }, "url": { "raw": "http://{{HOST}}:{{PORT}}/login", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["login"] } }, "response": [ { "name": "Successful", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "{{USERNAME}}", "type": "text" }, { "key": "password", "value": "{{PASSWORD}}", "type": "text" } ] }, "url": { "raw": "http://{{HOST}}:{{PORT}}/login", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["login"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Set-Cookie", "value": "session=MTY4Mjc4MTg0NXxEdi1CQkFFQ180SUFBUkFCRUFBQWRmLUNBQUVHYzNSeWFXNW5EQXdBQ2t4UFIwbE9YMVZUUlZJWWVDMTFhUzlrWVhSaFltRnpaUzl0YjJSbGJDNVZjMlZ5XzRNREFRRUVWWE5sY2dIX2hBQUJCQUVDU1dRQkJBQUJDRlZ6WlhKdVlXMWxBUXdBQVFoUVlYTnpkMjl5WkFFTUFBRUxURzluYVc1VFpXTnlaWFFCREFBQUFCVF9oQkVCQWdFRllXUnRhVzRCQldGa2JXbHVBQT09fIq4nkzSKyZVS-vtmKFcvVKKkbQ-rkERxWnE1vpkixP5; Path=/" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:24:05 GMT" }, { "key": "Content-Length", "value": "48" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"登录成功\",\n \"obj\": null\n}" }, { "name": "Failed", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "username", "value": "{{USERNAME}}", "type": "text" }, { "key": "password", "value": "wrongPassword", "type": "text" } ] }, "url": { "raw": "http://{{HOST}}:{{PORT}}/login", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["login"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:29:06 GMT" }, { "key": "Content-Length", "value": "61" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"用户名或密码错误\",\n \"obj\": null\n}" } ] }, { "name": "Get Inbounds Stat", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/list", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "list"] } }, "response": [ { "name": "No Inbounds", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/list", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "list"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:30:29 GMT" }, { "key": "Content-Length", "value": "34" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"\",\n \"obj\": []\n}" }, { "name": "Inbounds", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/list", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "list"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:23:30 GMT" }, { "key": "Content-Length", "value": "1282" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"\",\n \"obj\": [\n {\n \"id\": 1,\n \"up\": 0,\n \"down\": 0,\n \"total\": 0,\n \"remark\": \"New inbound\",\n \"enable\": true,\n \"expiryTime\": 0,\n \"clientStats\": [\n {\n \"id\": 2,\n \"inboundId\": 1,\n \"enable\": true,\n \"email\": \"xn1aaiwm\",\n \"up\": 0,\n \"down\": 0,\n \"expiryTime\": 0,\n \"total\": 0\n },\n {\n \"id\": 3,\n \"inboundId\": 1,\n \"enable\": true,\n \"email\": \"mehdikhody\",\n \"up\": 0,\n \"down\": 0,\n \"expiryTime\": 1682864675944,\n \"total\": 42949672960\n }\n ],\n \"listen\": \"\",\n \"port\": 48965,\n \"protocol\": \"vmess\",\n \"settings\": \"{\\n \\\"clients\\\": [\\n {\\n \\\"alterId\\\": 0,\\n \\\"email\\\": \\\"xn1aaiwm\\\",\\n \\\"enable\\\": true,\\n \\\"expiryTime\\\": 0,\\n \\\"id\\\": \\\"1db9f8ba-d1ad-4b0e-cea2-6edf9947dae5\\\",\\n \\\"limitIp\\\": 0,\\n \\\"subId\\\": \\\"\\\",\\n \\\"tgId\\\": \\\"\\\",\\n \\\"totalGB\\\": 0\\n },\\n {\\n \\\"alterId\\\": 0,\\n \\\"email\\\": \\\"mehdikhody\\\",\\n \\\"enable\\\": true,\\n \\\"expiryTime\\\": 1682864675944,\\n \\\"id\\\": \\\"95e4e7bb-7796-47e7-e8a7-f4055194f776\\\",\\n \\\"limitIp\\\": 2,\\n \\\"subId\\\": \\\"\\\",\\n \\\"tgId\\\": \\\"\\\",\\n \\\"totalGB\\\": 42949672960\\n }\\n ],\\n \\\"decryption\\\": \\\"none\\\",\\n \\\"fallbacks\\\": []\\n}\",\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\n \"tag\": \"inbound-48965\",\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\n }\n ]\n}" } ] }, { "name": "Get Inbound Stat", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/get/{inboundId}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "get", "{inboundId}"] } }, "response": [ { "name": "Successful", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/get/1", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "get", "1"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:23:55 GMT" }, { "key": "Content-Length", "value": "1065" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"\",\n \"obj\": {\n \"id\": 1,\n \"up\": 0,\n \"down\": 0,\n \"total\": 0,\n \"remark\": \"New inbound\",\n \"enable\": true,\n \"expiryTime\": 0,\n \"clientStats\": null,\n \"listen\": \"\",\n \"port\": 48965,\n \"protocol\": \"vmess\",\n \"settings\": \"{\\n \\\"clients\\\": [\\n {\\n \\\"alterId\\\": 0,\\n \\\"email\\\": \\\"xn1aaiwm\\\",\\n \\\"enable\\\": true,\\n \\\"expiryTime\\\": 0,\\n \\\"id\\\": \\\"1db9f8ba-d1ad-4b0e-cea2-6edf9947dae5\\\",\\n \\\"limitIp\\\": 0,\\n \\\"subId\\\": \\\"\\\",\\n \\\"tgId\\\": \\\"\\\",\\n \\\"totalGB\\\": 0\\n },\\n {\\n \\\"alterId\\\": 0,\\n \\\"email\\\": \\\"mehdikhody\\\",\\n \\\"enable\\\": true,\\n \\\"expiryTime\\\": 1682864675944,\\n \\\"id\\\": \\\"95e4e7bb-7796-47e7-e8a7-f4055194f776\\\",\\n \\\"limitIp\\\": 2,\\n \\\"subId\\\": \\\"\\\",\\n \\\"tgId\\\": \\\"\\\",\\n \\\"totalGB\\\": 42949672960\\n }\\n ],\\n \\\"decryption\\\": \\\"none\\\",\\n \\\"fallbacks\\\": []\\n}\",\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\n \"tag\": \"inbound-48965\",\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\n }\n}" }, { "name": "Failed", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/get/22", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "get", "22"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:31:17 GMT" }, { "key": "Content-Length", "value": "67" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"获取失败: record not found\",\n \"obj\": null\n}" } ] }, { "name": "Get Client Stat", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/getClientTraffics/{email}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "getClientTraffics", "{email}" ] } }, "response": [ { "name": "Successful", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/getClientTraffics/mehdikhody", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "getClientTraffics", "mehdikhody" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:24:12 GMT" }, { "key": "Content-Length", "value": "152" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"\",\n \"obj\": {\n \"id\": 3,\n \"inboundId\": 1,\n \"enable\": true,\n \"email\": \"mehdikhody\",\n \"up\": 0,\n \"down\": 0,\n \"expiryTime\": 1682864675944,\n \"total\": 42949672960\n }\n}" }, { "name": "Failed", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/getClientTraffics/fakeEmail", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "getClientTraffics", "fakeEmail" ] } }, "status": "Internal Server Error", "code": 500, "_postman_previewlanguage": "plain", "header": [ { "key": "Date", "value": "Sat, 29 Apr 2023 15:32:41 GMT" }, { "key": "Content-Length", "value": "0" } ], "cookie": [], "body": null } ] }, { "name": "Get Client IPs", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/clientIps/{email}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "clientIps", "{email}"] } }, "response": [ { "name": "Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/clientIps/mehdikhody", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "clientIps", "mehdikhody"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:24:19 GMT" }, { "key": "Content-Length", "value": "46" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"\",\n \"obj\": \"No IP Record\"\n}" } ] }, { "name": "Add Inbound", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"enable\": true,\r\n \"remark\": \"New inbound\",\r\n \"listen\": \"\",\r\n \"port\": 48965,\r\n \"protocol\": \"vmess\",\r\n \"expiryTime\": 0,\r\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\r\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\r\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/add", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "add"] } }, "response": [ { "name": "Successful", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"enable\": true,\r\n \"remark\": \"New inbound\",\r\n \"listen\": \"\",\r\n \"port\": 48965,\r\n \"protocol\": \"vmess\",\r\n \"expiryTime\": 0,\r\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\r\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\r\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/add", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "add"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:36:36 GMT" }, { "key": "Content-Length", "value": "493" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"添加成功\",\n \"obj\": {\n \"id\": 1,\n \"up\": 0,\n \"down\": 0,\n \"total\": 0,\n \"remark\": \"New inbound\",\n \"enable\": true,\n \"expiryTime\": 0,\n \"clientStats\": null,\n \"listen\": \"\",\n \"port\": 48965,\n \"protocol\": \"vmess\",\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\n \"tag\": \"inbound-48965\",\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\n }\n}" }, { "name": "Failed", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"enable\": true,\r\n \"remark\": \"New inbound\",\r\n \"listen\": \"\",\r\n \"port\": 48965,\r\n \"protocol\": \"vmess\",\r\n \"expiryTime\": 0,\r\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\r\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\r\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/add", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "add"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:24:30 GMT" }, { "key": "Content-Length", "value": "524" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"添加失败: Port already exists: 48965\\n\",\n \"obj\": {\n \"id\": 0,\n \"up\": 0,\n \"down\": 0,\n \"total\": 0,\n \"remark\": \"New inbound\",\n \"enable\": true,\n \"expiryTime\": 0,\n \"clientStats\": null,\n \"listen\": \"\",\n \"port\": 48965,\n \"protocol\": \"vmess\",\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\n \"tag\": \"inbound-48965\",\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\n }\n}" } ] }, { "name": "Add Client", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"id\": 1,\r\n \"settings\": \"{\\\"clients\\\":[{\\\"id\\\":\\\"95e4e7bb-7796-47e7-e8a7-f4055194f776\\\",\\\"alterId\\\":0,\\\"email\\\":\\\"New Client\\\",\\\"limitIp\\\":2,\\\"totalGB\\\":42949672960,\\\"expiryTime\\\":1682864675944,\\\"enable\\\":true,\\\"tgId\\\":\\\"\\\",\\\"subId\\\":\\\"\\\"}]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/addClient", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "addClient"] } }, "response": [ { "name": "Successful", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"id\": 1,\r\n \"settings\": \"{\\\"clients\\\":[{\\\"id\\\":\\\"95e4e7bb-7796-47e7-e8a7-f4055194f776\\\",\\\"alterId\\\":0,\\\"email\\\":\\\"New Client\\\",\\\"limitIp\\\":2,\\\"totalGB\\\":42949672960,\\\"expiryTime\\\":1682864675944,\\\"enable\\\":true,\\\"tgId\\\":\\\"\\\",\\\"subId\\\":\\\"\\\"}]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/addClient", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "addClient"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:24:46 GMT" }, { "key": "Content-Length", "value": "57" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"Client(s) added成功\",\n \"obj\": null\n}" }, { "name": "Failed", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"id\": 1,\r\n \"settings\": \"{\\\"clients\\\":[{\\\"id\\\":\\\"95e4e7bb-7796-47e7-e8a7-f4055194f776\\\",\\\"alterId\\\":0,\\\"email\\\":\\\"New Client\\\",\\\"limitIp\\\":2,\\\"totalGB\\\":42949672960,\\\"expiryTime\\\":1682864675944,\\\"enable\\\":true,\\\"tgId\\\":\\\"\\\",\\\"subId\\\":\\\"\\\"}]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/addClient", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "addClient"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:38:29 GMT" }, { "key": "Content-Length", "value": "95" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"Something went wrong!失败: Duplicate email: New Client\\n\",\n \"obj\": null\n}" } ] }, { "name": "Update Inbound", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"enable\": true,\r\n \"remark\": \"Updated inbound\",\r\n \"listen\": \"\",\r\n \"port\": 48964,\r\n \"protocol\": \"vmess\",\r\n \"expiryTime\": 0,\r\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\r\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\r\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/update/{inboundId}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "update", "{inboundId}"] } }, "response": [ { "name": "Successful", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"enable\": true,\r\n \"remark\": \"Updated inbound\",\r\n \"listen\": \"\",\r\n \"port\": 48965,\r\n \"protocol\": \"vmess\",\r\n \"expiryTime\": 0,\r\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\r\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\r\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/update/1", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "update", "1"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:24:53 GMT" }, { "key": "Content-Length", "value": "484" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"修改成功\",\n \"obj\": {\n \"id\": 1,\n \"up\": 0,\n \"down\": 0,\n \"total\": 0,\n \"remark\": \"Updated inbound\",\n \"enable\": true,\n \"expiryTime\": 0,\n \"clientStats\": null,\n \"listen\": \"\",\n \"port\": 48965,\n \"protocol\": \"vmess\",\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\n \"tag\": \"\",\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\n }\n}" }, { "name": "Failed", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"enable\": true,\r\n \"remark\": \"Updated inbound\",\r\n \"listen\": \"\",\r\n \"port\": 48964,\r\n \"protocol\": \"vmess\",\r\n \"expiryTime\": 0,\r\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\r\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\r\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/update/2", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "update", "2"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:40:12 GMT" }, { "key": "Content-Length", "value": "503" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"修改失败: record not found\",\n \"obj\": {\n \"id\": 2,\n \"up\": 0,\n \"down\": 0,\n \"total\": 0,\n \"remark\": \"Updated inbound\",\n \"enable\": true,\n \"expiryTime\": 0,\n \"clientStats\": null,\n \"listen\": \"\",\n \"port\": 48964,\n \"protocol\": \"vmess\",\n \"settings\": \"{\\\"clients\\\":[],\\\"decryption\\\":\\\"none\\\",\\\"fallbacks\\\":[]}\",\n \"streamSettings\": \"{\\\"network\\\":\\\"ws\\\",\\\"security\\\":\\\"none\\\",\\\"wsSettings\\\":{\\\"acceptProxyProtocol\\\":false,\\\"path\\\":\\\"/\\\",\\\"headers\\\":{}}}\",\n \"tag\": \"\",\n \"sniffing\": \"{\\\"enabled\\\":true,\\\"destOverride\\\":[\\\"http\\\",\\\"tls\\\"]}\"\n }\n}" } ] }, { "name": "Update Client", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"id\": 1,\r\n \"settings\": \"{\\\"clients\\\":[{\\\"id\\\":\\\"95e4e7bb-7796-47e7-e8a7-f4055194f776\\\",\\\"alterId\\\":0,\\\"email\\\":\\\"mehdikhody\\\",\\\"limitIp\\\":2,\\\"totalGB\\\":42949672960,\\\"expiryTime\\\":1682864675944,\\\"enable\\\":true,\\\"tgId\\\":\\\"\\\",\\\"subId\\\":\\\"\\\"}]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/updateClient/{uuid}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "updateClient", "{uuid}"] } }, "response": [ { "name": "Successful", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"id\": 1,\r\n \"settings\": \"{\\\"clients\\\":[{\\\"id\\\":\\\"95e4e7bb-7796-47e7-e8a7-f4055194f776\\\",\\\"alterId\\\":0,\\\"email\\\":\\\"mehdikhody\\\",\\\"limitIp\\\":2,\\\"totalGB\\\":42949672960,\\\"expiryTime\\\":1682864675944,\\\"enable\\\":true,\\\"tgId\\\":\\\"\\\",\\\"subId\\\":\\\"\\\"}]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/updateClient/95e4e7bb-7796-47e7-e8a7-f4055194f776", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "updateClient", "95e4e7bb-7796-47e7-e8a7-f4055194f776" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:26:18 GMT" }, { "key": "Content-Length", "value": "56" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"Client updated成功\",\n \"obj\": null\n}" }, { "name": "Failed", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"id\": 1,\r\n \"settings\": \"{\\\"clients\\\":[{\\\"id\\\":\\\"95e4e7bb-7796-47e7-e8a7-f4055194f776\\\",\\\"alterId\\\":0,\\\"email\\\":\\\"mehdikhody\\\",\\\"limitIp\\\":2,\\\"totalGB\\\":42949672960,\\\"expiryTime\\\":1682864675944,\\\"enable\\\":true,\\\"tgId\\\":\\\"\\\",\\\"subId\\\":\\\"\\\"}]}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/updateClient/fakeUUID", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "updateClient", "fakeUUID" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:41:05 GMT" }, { "key": "Content-Length", "value": "94" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"Something went wrong!失败: unexpected end of JSON input\",\n \"obj\": null\n}" } ] }, { "name": "Reset Client IPs", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/clearClientIps/{email}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "clearClientIps", "{email}"] } }, "response": [ { "name": "Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/clearClientIps/mehdikhody", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "clearClientIps", "mehdikhody" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:26:25 GMT" }, { "key": "Content-Length", "value": "53" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"Log Cleared成功\",\n \"obj\": null\n}" } ] }, { "name": "Reset Inbounds Stat", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/resetAllTraffics", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "resetAllTraffics"] } }, "response": [ { "name": "Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/resetAllTraffics", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "resetAllTraffics"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:26:30 GMT" }, { "key": "Content-Length", "value": "62" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"All traffics reseted成功\",\n \"obj\": null\n}" } ] }, { "name": "Reset Inbound Clients Stat", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/resetAllClientTraffics/{inboundId}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "resetAllClientTraffics", "{inboundId}" ] } }, "response": [ { "name": "Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/resetAllClientTraffics/1", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "resetAllClientTraffics", "1" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:26:35 GMT" }, { "key": "Content-Length", "value": "72" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"All traffics of client reseted成功\",\n \"obj\": null\n}" } ] }, { "name": "Reset Client Stat", "request": { "method": "POST", "header": [], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/{inboundId}/resetClientTraffic/{email}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "{inboundId}", "resetClientTraffic", "{email}" ] } }, "response": [ { "name": "Response", "originalRequest": { "method": "POST", "header": [], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/1/resetClientTraffic/mehdikhody", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "1", "resetClientTraffic", "mehdikhody" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:26:40 GMT" }, { "key": "Content-Length", "value": "57" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"traffic reseted成功\",\n \"obj\": null\n}" } ] }, { "name": "Delete Inbound", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/del/{inboundId}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "del", "{inboundId}"] } }, "response": [ { "name": "Delete Inbound", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/del/1", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "del", "1"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:26:54 GMT" }, { "key": "Content-Length", "value": "45" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"删除成功\",\n \"obj\": 1\n}" }, { "name": "Failed", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/del/22", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "del", "22"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:36:06 GMT" }, { "key": "Content-Length", "value": "64" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"删除失败: record not found\",\n \"obj\": 1\n}" } ] }, { "name": "Delete Client", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/{inboundId}/delClient/{uuid}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "{inboundId}", "delClient", "{uuid}" ] } }, "response": [ { "name": "Successful", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/1/delClient/95e4e7bb-7796-47e7-e8a7-f4055194f776", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "1", "delClient", "95e4e7bb-7796-47e7-e8a7-f4055194f776" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:26:51 GMT" }, { "key": "Content-Length", "value": "56" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"Client deleted成功\",\n \"obj\": null\n}" }, { "name": "Failed", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/1/delClient/95e2b7bb-7796-47e7-e8a7-f4055194f432", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "1", "delClient", "95e2b7bb-7796-47e7-e8a7-f4055194f432" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:46:44 GMT" }, { "key": "Content-Length", "value": "82" } ], "cookie": [], "body": "{\n \"success\": false,\n \"msg\": \"Something went wrong!失败: record not found\",\n \"obj\": null\n}" } ] }, { "name": "Delete Depleted Clients", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/delDepletedClients/{inboundId}", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": [ "xui", "API", "inbounds", "delDepletedClients", "{inboundId}" ] } }, "response": [ { "name": "Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "http://{{HOST}}:{{PORT}}/xui/API/inbounds/delDepletedClients/1", "protocol": "http", "host": ["{{HOST}}"], "port": "{{PORT}}", "path": ["xui", "API", "inbounds", "delDepletedClients", "1"] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json; charset=utf-8" }, { "key": "Date", "value": "Sat, 29 Apr 2023 15:26:47 GMT" }, { "key": "Content-Length", "value": "74" } ], "cookie": [], "body": "{\n \"success\": true,\n \"msg\": \"All delpeted clients are deleted成功\",\n \"obj\": null\n}" } ] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [""] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [""] } } ], "variable": [ { "key": "HOST", "value": "localhost", "type": "string" }, { "key": "PORT", "value": "2053", "type": "string" }, { "key": "USERNAME", "value": "admin", "type": "string" }, { "key": "PASSWORD", "value": "admin", "type": "string" } ] }