Forked from mehdikhody/MHSanaei-3x-ui-postman-collection.json
Created
September 8, 2023 18:56
-
-
Save imorteza/9ae3901b992c39c0ac97fd3c44a33038 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "f5181ce8-7779-4308-9a22-e0c2a359dc44", | |
"name": "MHSanaei", | |
"description": "This collection was gathered to assist developers in gaining a better understanding of the API and the necessary parameters to send to the X-UI server.\n\nI have performed extensive testing on the routes, parameters, and responses that may be required or returned by the XUI server.\n\nBy utilizing this collection, developers can easily examine the expected responses without the need to connect an actual XUI server to Postman.\n\nIf you wish to live test the API, you can modify each of the collection variables based on your own settings. This will enable the collection to display live responses from your own server.\n\nHowever, please note that live testing should only be conducted in a development or testing environment to avoid any potential issues in a production environment.\n\n### [Github Repository](https://github.com/MHSanaei/3x-ui)", | |
"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"] | |
}, | |
"description": "To use any other methods in this collection, we first need to log in and store the login session so that the server can authorize us in subsequent requests.\n\nTo change the username or password, we can either go to the collection variables or directly change those settings in the request body parameters." | |
}, | |
"response": [ | |
{ | |
"name": "Successful", | |
"originalRequest": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "urlencoded", | |
"urlencoded": [ | |
{ | |
"key": "username", | |
"value": "admin", | |
"type": "text" | |
}, | |
{ | |
"key": "password", | |
"value": "admin", | |
"type": "text" | |
} | |
] | |
}, | |
"url": { | |
"raw": "http://localhost:2053/login", | |
"protocol": "http", | |
"host": ["localhost"], | |
"port": "2053", | |
"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}}/panel/api/inbounds/list", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "api", "inbounds", "list"] | |
}, | |
"description": "This method will return a list of all inbounds available on our server." | |
}, | |
"response": [ | |
{ | |
"name": "No Inbounds", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://localhost:2053/panel/api/inbounds/list", | |
"protocol": "http", | |
"host": ["localhost"], | |
"port": "2053", | |
"path": ["panel", "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}}/panel/api/inbounds/list", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/get/{inboundId}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "api", "inbounds", "get", "{inboundId}"] | |
}, | |
"description": "This method will return an object that represents an inbound available on our server." | |
}, | |
"response": [ | |
{ | |
"name": "Successful", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://localhost:2053/panel/api/inbounds/get/1", | |
"protocol": "http", | |
"host": ["localhost"], | |
"port": "2053", | |
"path": ["panel", "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}}/panel/api/inbounds/get/22", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/getClientTraffics/{email}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"api", | |
"inbounds", | |
"getClientTraffics", | |
"{email}" | |
] | |
}, | |
"description": "This method will return an object that represents a user available on our server." | |
}, | |
"response": [ | |
{ | |
"name": "Successful", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://localhost:2053/panel/api/inbounds/getClientTraffics/mehdikhody", | |
"protocol": "http", | |
"host": ["localhost"], | |
"port": "2053", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/getClientTraffics/fakeEmail", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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": "" | |
} | |
] | |
}, | |
{ | |
"name": "Get Client IPs", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/clientIps/{email}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "api", "inbounds", "clientIps", "{email}"] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Response", | |
"originalRequest": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://localhost:2053/panel/api/inbounds/clientIps/mehdikhody", | |
"protocol": "http", | |
"host": ["localhost"], | |
"port": "2053", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/add", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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://localhost:2053/panel/api/inbounds/add", | |
"protocol": "http", | |
"host": ["localhost"], | |
"port": "2053", | |
"path": ["panel", "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}}/panel/api/inbounds/add", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/addClient", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/addClient", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/addClient", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/update/{inboundId}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/update/1", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/update/2", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/updateClient/{uuid}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/updateClient/95e4e7bb-7796-47e7-e8a7-f4055194f776", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/updateClient/fakeUUID", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/clearClientIps/{email}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "api", "inbounds", "clearClientIps", "{email}"] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Response", | |
"originalRequest": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/clearClientIps/mehdikhody", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/resetAllTraffics", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "api", "inbounds", "resetAllTraffics"] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Response", | |
"originalRequest": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/resetAllTraffics", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/resetAllClientTraffics/{inboundId}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"api", | |
"inbounds", | |
"resetAllClientTraffics", | |
"{inboundId}" | |
] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Response", | |
"originalRequest": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/resetAllClientTraffics/1", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/{inboundId}/resetClientTraffic/{email}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"api", | |
"inbounds", | |
"{inboundId}", | |
"resetClientTraffic", | |
"{email}" | |
] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Response", | |
"originalRequest": { | |
"method": "POST", | |
"header": [], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/1/resetClientTraffic/mehdikhody", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/del/{inboundId}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "api", "inbounds", "del", "{inboundId}"] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Delete Inbound", | |
"originalRequest": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/del/1", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/del/22", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "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}}/panel/api/inbounds/{inboundId}/delClient/{uuid}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"api", | |
"inbounds", | |
"{inboundId}", | |
"delClient", | |
"{uuid}" | |
] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Successful", | |
"originalRequest": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/1/delClient/95e4e7bb-7796-47e7-e8a7-f4055194f776", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/1/delClient/95e2b7bb-7796-47e7-e8a7-f4055194f432", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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}}/panel/api/inbounds/delDepletedClients/{inboundId}", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"api", | |
"inbounds", | |
"delDepletedClients", | |
"{inboundId}" | |
] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Response", | |
"originalRequest": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/delDepletedClients/1", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": [ | |
"panel", | |
"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}" | |
} | |
] | |
}, | |
{ | |
"name": "Export Database", | |
"request": { | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "", | |
"value": "", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "http://{{HOST}}:{{PORT}}/panel/api/inbounds/createbackup", | |
"protocol": "http", | |
"host": ["{{HOST}}"], | |
"port": "{{PORT}}", | |
"path": ["panel", "api", "inbounds", "createbackup"] | |
} | |
}, | |
"response": [] | |
} | |
], | |
"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" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment