{"info":{"_postman_id":"03d25086-4c84-4a52-9ad7-ec032f26c480","name":"PSB Hosting API","description":"<html><head></head><body><p>The API endpoints below are designed to interact with the PSB Hosting API.</p>\n<p>Public API URL: <a href=\"http://psbproxy.io/api\">https://backend.psb.hosting</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"32579516","collectionId":"03d25086-4c84-4a52-9ad7-ec032f26c480","publishedId":"2sB2jAanMc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4e9aa5"},"publishDate":"2025-05-12T03:25:35.000Z"},"item":[{"name":"users","item":[{"name":"Get data","id":"c421daf2-5efb-457e-991f-7f557d86c52f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/users/me","description":"<p>This endpoint is used to retrive data of your account.</p>\n","urlObject":{"path":["users","me"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"96a92386-871a-4ed7-9b7a-6d98be55f85f","name":"Get data","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/account/get_current_user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 12 May 2025 03:15:46 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"126"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"email\": \"user@psb.hosting\",\n    \"username\": \"user\",\n    \"role_id\": 1,\n    \"balance\": 0,\n    \"is_verified\": false,\n    \"newsletter\": true\n}"}],"_postman_id":"c421daf2-5efb-457e-991f-7f557d86c52f"}],"id":"7334805e-6f4a-4ae4-8ae9-214a9d096af4","description":"<p>The API endpoints below are designed to interact with the PSB Hosting API. These endpoints provide information such as account information.</p>\n","_postman_id":"7334805e-6f4a-4ae4-8ae9-214a9d096af4"},{"name":"order","item":[{"name":"New Order","id":"916109d9-6a33-4ea9-a5bb-37a22a453cb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"product_id","value":"","description":"<p>Required, integer, id product for buy.</p>\n","type":"text","uuid":"25ebfcea-9c28-4bc6-b463-44505c61e4d5","disabled":true},{"key":"payment_type","value":"","description":"<p>Required, integer, id payment type. Available values: 1 - By balance, 3 - Lava, 4 - Heleket.</p>\n","type":"text","uuid":"be97ffdb-13d1-4b59-8422-ba5ba1023b8c","disabled":true},{"key":"os","value":"","description":"<p>Optional, integer, id operative system (Can be required for some product types).</p>\n","type":"text","uuid":"c2c6c5d0-8716-4332-b838-b2a8452a01f1","disabled":true},{"key":"control_panel","value":"","description":"<p>Optional, integer, id control panel.</p>\n","type":"text","uuid":"5b075715-f3be-4500-954e-84e9e605a119","disabled":true},{"key":"domain","value":"","description":"<p>Optional, string, Available for: Bulletproof servers.</p>\n","type":"text","uuid":"7a682717-f7e2-4d2b-9968-acb9475fb9ff","disabled":true},{"key":"recipe_id","value":"","description":"<p>Optional, integer, id recipe, Available for: PSB VPS, HIGH-CPU PSB VPS.</p>\n","type":"text","uuid":"71084722-349f-49c6-93f0-3de387085fab","disabled":true},{"key":"period","value":"","description":"<p>Optional, integer. (ID Period) Can be obtained by GET request products.</p>\n","type":"text","uuid":"5be2f552-07f6-48e1-a16c-dcd157b5a688","disabled":true},{"key":"order_name","value":"","description":"<p>Optional, string</p>\n","type":"text","uuid":"7f3fed0e-b00a-47a8-9c01-c7b834634e10","disabled":true}]},"url":"{{API_URL}}/order","description":"<p>This endpoint is used to place new orders, depending on the product type the fields os, control_panel, domain, recipe_id - become mandatory/accessible to specify.</p>\n<p>In the control_panel, os, recipe_id fields, you need to specify the id of the required ones.</p>\n","urlObject":{"path":["order"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"916109d9-6a33-4ea9-a5bb-37a22a453cb5"},{"name":"Get User Orders","id":"0cd6b848-afed-4e76-bec0-c9a97acc9d8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order","description":"<p>This endpoint is used to retrieve the user's order list.</p>\n","urlObject":{"path":["order"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"1ee180e9-44ea-405f-aac7-e3deb65588f2","name":"Get User Orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 12 May 2025 03:16:49 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"743"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"order_id\": \"6E48A19C62BF\",\n        \"user_id\": 1,\n        \"product\": {\n            \"id\": 175,\n            \"title\": \"NL-300\",\n            \"price\": 20,\n            \"type\": \"PSB VPS\",\n            \"country\": \"Netherlands\",\n            \"status\": true\n        },\n        \"os\": \"Windows 10 GPT\",\n        \"control_panel\": {\n            \"id\": 4,\n            \"name\": \"Без панели управления\",\n            \"price\": 0\n        },\n        \"period\": null,\n        \"domain\": null,\n        \"name\": \"\",\n        \"recipe_id\": null,\n        \"auto_refresh\": false,\n        \"status\": \"Заказ выдан\",\n        \"date_create\": \"2025-04-24T15:39:23.574192+00:00\",\n        \"date_end\": \"2025-05-24T15:39:22.720841+00:00\",\n        \"issued_order\": {\n            \"id\": 1,\n            \"ip\": \"123.123.123.13\",\n            \"port\": \"3389\",\n            \"superuser\": \"admin\",\n            \"password\": \"test\",\n            \"order_id\": 1,\n            \"ipv6_addr\": \"test\",\n            \"ipv6_subnet\": \"test\"\n        }\n    }\n]"}],"_postman_id":"0cd6b848-afed-4e76-bec0-c9a97acc9d8a"},{"name":"Get Products for change","id":"f296f0f4-7792-4a75-8caa-cb2ec3e7c2ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/25284/get_products_for_change","description":"<p>This endpoint is used to list the available products to change the rate of the selected order.</p>\n","urlObject":{"path":["order","25284","get_products_for_change"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[{"id":"c2a9d341-a590-4215-b9f0-f4b2881d03ef","name":"Get Products for change","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/25284/get_products_for_change"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 12 May 2025 03:18:18 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"2487"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"products\": [\n        {\n            \"id\": 176,\n            \"title\": \"NL-400\",\n            \"price\": 50,\n            \"bill_id\": \"NL-400\",\n            \"type\": \"PSB VPS\",\n            \"country\": \"Netherlands\",\n            \"profit\": 50,\n            \"price_for_change\": 12,\n            \"characters\": [\n                {\n                    \"id\": 22,\n                    \"name\": \"vCPU\",\n                    \"content\": \"8x\"\n                },\n                {\n                    \"id\": 29,\n                    \"name\": \"RAM\",\n                    \"content\": \"16GB\"\n                },\n                {\n                    \"id\": 65,\n                    \"name\": \"SSD\",\n                    \"content\": \"200GB\"\n                }\n            ],\n            \"os\": [\n                {\n                    \"id\": 78,\n                    \"name\": \"Oracle Linux 9\"\n                },\n                {\n                    \"id\": 79,\n                    \"name\": \"Rocky Linux 9\"\n                },\n                {\n                    \"id\": 42,\n                    \"name\": \"FreeBSD 13\"\n                },\n                {\n                    \"id\": 39,\n                    \"name\": \"Debian 11\"\n                },\n                {\n                    \"id\": 56,\n                    \"name\": \"Windows Server 2022\"\n                },\n                {\n                    \"id\": 40,\n                    \"name\": \"Debian 12\"\n                },\n                {\n                    \"id\": 57,\n                    \"name\": \"Windows 10 RUS\"\n                },\n                {\n                    \"id\": 52,\n                    \"name\": \"Windows Server 2016\"\n                },\n                {\n                    \"id\": 36,\n                    \"name\": \"CentOS 9 Stream\"\n                },\n                {\n                    \"id\": 32,\n                    \"name\": \"Alma Linux 8\"\n                },\n                {\n                    \"id\": 51,\n                    \"name\": \"Windows Server 2012 R2\"\n                },\n                {\n                    \"id\": 55,\n                    \"name\": \"Windows Server 2019 RUS\"\n                },\n                {\n                    \"id\": 45,\n                    \"name\": \"Rocky Linux 8\"\n                },\n                {\n                    \"id\": 60,\n                    \"name\": \"Windows 11\"\n                },\n                {\n                    \"id\": 44,\n                    \"name\": \"Oracle Linux 8\"\n                },\n                {\n                    \"id\": 59,\n                    \"name\": \"Windows 10 GPT\"\n                },\n                {\n                    \"id\": 61,\n                    \"name\": \"Windows 10 RUS GPT\"\n                },\n                {\n                    \"id\": 33,\n                    \"name\": \"Astra Linux CE\"\n                },\n                {\n                    \"id\": 49,\n                    \"name\": \"Ubuntu 22.04\"\n                },\n                {\n                    \"id\": 43,\n                    \"name\": \"FreeBSD 13 ZFS\"\n                },\n                {\n                    \"id\": 48,\n                    \"name\": \"Ubuntu 20.04\"\n                },\n                {\n                    \"id\": 53,\n                    \"name\": \"Windows Server 2019\"\n                },\n                {\n                    \"id\": 54,\n                    \"name\": \"Windows Server 2019 Datacenter\"\n                },\n                {\n                    \"id\": 75,\n                    \"name\": \"Ubuntu 24.04\"\n                },\n                {\n                    \"id\": 77,\n                    \"name\": \"Alma Linux 9\"\n                }\n            ],\n            \"control_panel\": [\n                {\n                    \"id\": 4,\n                    \"name\": \"Без панели управления\",\n                    \"price\": 0\n                }\n            ]\n        },\n        {\n            \"id\": 177,\n            \"title\": \"NL-500\",\n            \"price\": 100,\n            \"bill_id\": \"NL-500\",\n            \"type\": \"PSB VPS\",\n            \"country\": \"Netherlands\",\n            \"profit\": 100,\n            \"price_for_change\": 32,\n            \"characters\": [\n                {\n                    \"id\": 28,\n                    \"name\": \"vCPU\",\n                    \"content\": \"16x\"\n                },\n                {\n                    \"id\": 62,\n                    \"name\": \"SSD\",\n                    \"content\": \"400GB\"\n                },\n                {\n                    \"id\": 32,\n                    \"name\": \"RAM\",\n                    \"content\": \"32GB\"\n                }\n            ],\n            \"os\": [\n                {\n                    \"id\": 78,\n                    \"name\": \"Oracle Linux 9\"\n                },\n                {\n                    \"id\": 79,\n                    \"name\": \"Rocky Linux 9\"\n                },\n                {\n                    \"id\": 55,\n                    \"name\": \"Windows Server 2019 RUS\"\n                },\n                {\n                    \"id\": 40,\n                    \"name\": \"Debian 12\"\n                },\n                {\n                    \"id\": 48,\n                    \"name\": \"Ubuntu 20.04\"\n                },\n                {\n                    \"id\": 43,\n                    \"name\": \"FreeBSD 13 ZFS\"\n                },\n                {\n                    \"id\": 32,\n                    \"name\": \"Alma Linux 8\"\n                },\n                {\n                    \"id\": 42,\n                    \"name\": \"FreeBSD 13\"\n                },\n                {\n                    \"id\": 39,\n                    \"name\": \"Debian 11\"\n                },\n                {\n                    \"id\": 45,\n                    \"name\": \"Rocky Linux 8\"\n                },\n                {\n                    \"id\": 56,\n                    \"name\": \"Windows Server 2022\"\n                },\n                {\n                    \"id\": 36,\n                    \"name\": \"CentOS 9 Stream\"\n                },\n                {\n                    \"id\": 54,\n                    \"name\": \"Windows Server 2019 Datacenter\"\n                },\n                {\n                    \"id\": 57,\n                    \"name\": \"Windows 10 RUS\"\n                },\n                {\n                    \"id\": 33,\n                    \"name\": \"Astra Linux CE\"\n                },\n                {\n                    \"id\": 52,\n                    \"name\": \"Windows Server 2016\"\n                },\n                {\n                    \"id\": 61,\n                    \"name\": \"Windows 10 RUS GPT\"\n                },\n                {\n                    \"id\": 60,\n                    \"name\": \"Windows 11\"\n                },\n                {\n                    \"id\": 51,\n                    \"name\": \"Windows Server 2012 R2\"\n                },\n                {\n                    \"id\": 53,\n                    \"name\": \"Windows Server 2019\"\n                },\n                {\n                    \"id\": 44,\n                    \"name\": \"Oracle Linux 8\"\n                },\n                {\n                    \"id\": 49,\n                    \"name\": \"Ubuntu 22.04\"\n                },\n                {\n                    \"id\": 59,\n                    \"name\": \"Windows 10 GPT\"\n                },\n                {\n                    \"id\": 75,\n                    \"name\": \"Ubuntu 24.04\"\n                },\n                {\n                    \"id\": 77,\n                    \"name\": \"Alma Linux 9\"\n                }\n            ],\n            \"control_panel\": [\n                {\n                    \"id\": 4,\n                    \"name\": \"Без панели управления\",\n                    \"price\": 0\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"f296f0f4-7792-4a75-8caa-cb2ec3e7c2ab"},{"name":"Get Order by id","id":"00d0beaf-a003-41dc-9e53-b3d2d2abb6ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/:id","description":"<p>This endpoint is used to retrieve a user's order by their id.</p>\n<p>Available server statuses:</p>\n<p>'Остановлена' - Stopped</p>\n<p>'Активна' - Active</p>\n<p>'Заказана' - Ordered</p>\n<p>'Удалена' - Deleted</p>\n<p>'Ошибка' - error retriving server status</p>\n","urlObject":{"path":["order",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[{"id":"cb4fb0c7-5a45-4bd6-841e-f57ff7cb42ab","name":"Example PSB VPS Response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":{"raw":"{{API_URL}}/order/:id","host":["{{API_URL}}"],"path":["order",":id"],"variable":[{"key":"id","value":"25284","description":"Required, integer"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 12 May 2025 03:18:27 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"7103"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"order_data\": {\n        \"id\": 1,\n        \"order_id\": \"6E48A19C62BF\",\n        \"user_id\": 1,\n        \"product\": 175,\n        \"os\": \"Windows 10 GPT\",\n        \"control_panel\": \"5\",\n        \"period\": null,\n        \"domain\": null,\n        \"name\": \"\",\n        \"recipe_id\": null,\n        \"auto_refresh\": false,\n        \"status\": \"Заказ выдан\",\n        \"date_create\": \"2025-04-24T15:39:23.574192+00:00\",\n        \"date_end\": \"2025-05-24T15:39:22.720841+00:00\"\n    },\n    \"product_data\": {\n        \"id\": 175,\n        \"title\": \"NL-300\",\n        \"price\": 20,\n        \"type\": \"PSB VPS\",\n        \"country\": \"Netherlands\",\n        \"status\": true\n    },\n    \"issued_order\": {\n        \"id\": 1,\n        \"ip\": \"123.123.123.123\",\n        \"port\": \"3389\",\n        \"superuser\": \"admin\",\n        \"password\": \"test\",\n        \"order_id\": 1,\n        \"ipv6_addr\": \"test\",\n        \"ipv6_subnet\": \"test\"\n    },\n    \"product_characters\": [\n        {\n            \"id\": 14,\n            \"name\": \"vCPU\",\n            \"content\": \"4x\"\n        },\n        {\n            \"id\": 17,\n            \"name\": \"RAM\",\n            \"content\": \"8GB\"\n        },\n        {\n            \"id\": 21,\n            \"name\": \"SSD\",\n            \"content\": \"100GB\"\n        }\n    ],\n    \"product_systems\": [\n        {\n            \"id\": 32,\n            \"name\": \"Alma Linux 8\",\n            \"content\": \"24\"\n        },\n        {\n            \"id\": 33,\n            \"name\": \"Astra Linux CE\",\n            \"content\": \"23\"\n        },\n        {\n            \"id\": 36,\n            \"name\": \"CentOS 9 Stream\",\n            \"content\": \"30\"\n        },\n        {\n            \"id\": 40,\n            \"name\": \"Debian 12\",\n            \"content\": \"28\"\n        },\n        {\n            \"id\": 42,\n            \"name\": \"FreeBSD 13\",\n            \"content\": \"21\"\n        },\n        {\n            \"id\": 43,\n            \"name\": \"FreeBSD 13 ZFS\",\n            \"content\": \"22\"\n        },\n        {\n            \"id\": 44,\n            \"name\": \"Oracle Linux 8\",\n            \"content\": \"26\"\n        },\n        {\n            \"id\": 45,\n            \"name\": \"Rocky Linux 8\",\n            \"content\": \"25\"\n        },\n        {\n            \"id\": 48,\n            \"name\": \"Ubuntu 20.04\",\n            \"content\": \"14\"\n        },\n        {\n            \"id\": 49,\n            \"name\": \"Ubuntu 22.04\",\n            \"content\": \"15\"\n        },\n        {\n            \"id\": 52,\n            \"name\": \"Windows Server 2016\",\n            \"content\": \"9\"\n        },\n        {\n            \"id\": 54,\n            \"name\": \"Windows Server 2019 Datacenter\",\n            \"content\": \"11\"\n        },\n        {\n            \"id\": 55,\n            \"name\": \"Windows Server 2019 RUS\",\n            \"content\": \"12\"\n        },\n        {\n            \"id\": 56,\n            \"name\": \"Windows Server 2022\",\n            \"content\": \"13\"\n        },\n        {\n            \"id\": 57,\n            \"name\": \"Windows 10 RUS\",\n            \"content\": \"16\"\n        },\n        {\n            \"id\": 60,\n            \"name\": \"Windows 11\",\n            \"content\": \"31\"\n        },\n        {\n            \"id\": 61,\n            \"name\": \"Windows 10 RUS GPT\",\n            \"content\": \"17\"\n        },\n        {\n            \"id\": 59,\n            \"name\": \"Windows 10 GPT\",\n            \"content\": \"44\"\n        },\n        {\n            \"id\": 39,\n            \"name\": \"Debian 11\",\n            \"content\": \"27\"\n        },\n        {\n            \"id\": 51,\n            \"name\": \"Windows Server 2012 R2\",\n            \"content\": \"55\"\n        },\n        {\n            \"id\": 75,\n            \"name\": \"Ubuntu 24.04\",\n            \"content\": \"54\"\n        },\n        {\n            \"id\": 53,\n            \"name\": \"Windows Server 2019\",\n            \"content\": \"10\"\n        },\n        {\n            \"id\": 77,\n            \"name\": \"Alma Linux 9\",\n            \"content\": \"49\"\n        },\n        {\n            \"id\": 78,\n            \"name\": \"Oracle Linux 9\",\n            \"content\": \"60\"\n        },\n        {\n            \"id\": 79,\n            \"name\": \"Rocky Linux 9\",\n            \"content\": \"58\"\n        }\n    ],\n    \"control_panel\": {\n        \"id\": 4,\n        \"name\": \"Без панели управления\",\n        \"content\": \"5\",\n        \"price\": 0\n    },\n    \"server_history\": [\n        {\n            \"id\": 73740,\n            \"name\": \"host_stop\",\n            \"state\": \"failed\",\n            \"params\": null,\n            \"date_create\": \"2025-05-12 02:07:43\"\n        },\n        {\n            \"id\": 73739,\n            \"name\": \"host_restart\",\n            \"state\": \"failed\",\n            \"params\": null,\n            \"date_create\": \"2025-05-12 02:05:27\"\n        },\n        {\n            \"id\": 62164,\n            \"name\": \"change_password\",\n            \"state\": \"complete\",\n            \"params\": null,\n            \"date_create\": \"2025-04-25 01:47:18\"\n        },\n        {\n            \"id\": 61806,\n            \"name\": \"host_reinstall\",\n            \"state\": \"complete\",\n            \"params\": {\n                \"new_os\": \"Ubuntu 20.04\",\n                \"old_os\": \"Ubuntu 20.04\"\n            },\n            \"date_create\": \"2025-04-24 15:55:21\"\n        },\n        {\n            \"id\": 61793,\n            \"name\": \"host_create\",\n            \"state\": \"failed\",\n            \"params\": {\n                \"cpu\": 1,\n                \"disk\": 30720,\n                \"ip\": [\n                    \"test\",\n                    \"test\"\n                ],\n                \"os\": \"Ubuntu 20.04\",\n                \"ram\": 2048\n            },\n            \"date_create\": \"2025-04-24 15:42:01\"\n        }\n    ],\n    \"status_machine\": \"Остановлена\"\n}"},{"id":"2d2ed0d3-2c6a-4d4e-ae42-dad6868e0650","name":"Example A-VPN Order","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":{"raw":"{{API_URL}}/order/:id","host":["{{API_URL}}"],"path":["order",":id"],"variable":[{"key":"id","value":"31608","description":"Required, integer"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 May 2025 15:15:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cf-Ray","value":"940bd528cc4ebf6a-WAW"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=7wTOtbb%2Bf%2F5mRkZ0D%2B7bcjhPg4ObBGLCAgDMpRRE35uvSSs%2B%2BkB1zaIc6GG6928cqooH%2BozJWkRzP4TvFV2Knv4QzeGre7gEA1W9SouPoBz5bNpg0sQTC3P%2BQM1uZE3CNO54fNMP\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"Nel","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains; preload"},{"key":"Speculation-Rules","value":"\"/cdn-cgi/speculation\""},{"key":"Expect-Ct","value":"max-age=86400, enforce"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=38900&min_rtt=30881&rtt_var=24045&sent=5&recv=5&lost=0&retrans=0&sent_bytes=2806&recv_bytes=1005&delivery_rate=87820&cwnd=250&unsent_bytes=0&cid=8748a034dd9be3a6&ts=301&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"order_data\": {\n        \"id\": 1,\n        \"order_id\": \"A5D82C4FE9A8\",\n        \"user_id\": 1,\n        \"product\": 192,\n        \"os\": null,\n        \"profit\": \"1\",\n        \"control_panel\": null,\n        \"period\": \"3\",\n        \"domain\": null,\n        \"name\": \"фин\",\n        \"recipe_id\": null,\n        \"bill_id\": null,\n        \"auto_refresh\": false,\n        \"status\": \"Заказ выдан\",\n        \"date_create\": \"2025-05-15T00:00:00+00:00\",\n        \"date_end\": \"2025-08-15T00:00:00+00:00\"\n    },\n    \"product_data\": {\n        \"id\": 192,\n        \"title\": \"A-VPN [FI]\",\n        \"price\": 3,\n        \"bill_id\": \"646\",\n        \"type\": \"A-VPN\",\n        \"country\": \"Finland\",\n        \"profit\": 1,\n        \"status\": true\n    },\n    \"issued_order\": {\n        \"id\": 1,\n        \"url\": \"https://rpn-conf.psbns.pro/test.conf\",\n        \"qr\": \"https://rpn-conf.psbns.pro/test.png\",\n        \"order_id\": 1\n    }\n}"}],"_postman_id":"00d0beaf-a003-41dc-9e53-b3d2d2abb6ee"},{"name":"Prolong order","id":"7e989dca-2c6f-4157-a3ac-f1e68f035b6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"period","value":"","description":"<p>Optional, integer. (ID Period) Can be obtained by GET request products.</p>\n","type":"text","uuid":"5d8f871f-9a2b-449e-b511-5ce2e1019187"}]},"url":"{{API_URL}}/order/:id/prolong","description":"<p>This endpoint is used to manually extend an order for one month.</p>\n","urlObject":{"path":["order",":id","prolong"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"7e989dca-2c6f-4157-a3ac-f1e68f035b6f"},{"name":"Change Auto Prolong","id":"2ed42791-1f44-41de-bf0a-2d7c2515da6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/:id/make_auto_prolong","description":"<p>This endpoint is used to toggle the auto auto-renewal status for an order.</p>\n","urlObject":{"path":["order",":id","make_auto_prolong"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"2ed42791-1f44-41de-bf0a-2d7c2515da6d"},{"name":"Change Product","id":"d59b2370-48c4-4198-afaa-568d1611cbf8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"product_id","value":"","description":"<p>Required, integer</p>\n","type":"text","uuid":"92dcecfb-c464-40b0-ae84-67d2046ebd71"}]},"url":"{{API_URL}}/order/:id/change_product","description":"<p>This endpoint is used to change the order rate (Available for PSB VPS, HIGH-CPU VPS only).</p>\n","urlObject":{"path":["order",":id","change_product"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"d59b2370-48c4-4198-afaa-568d1611cbf8"},{"name":"Early termination","id":"0bec265f-5ac5-47f7-b378-117fd1d0a77a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"confirm_delete\": true // Available values: true/false\n}","options":{"raw":{"language":"json"}}},"url":"{{API_URL}}/order/:id/early-termination ","urlObject":{"path":["order",":id","early-termination "],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"76","key":"id"}]}},"response":[],"_postman_id":"0bec265f-5ac5-47f7-b378-117fd1d0a77a"}],"id":"c807bcd8-2a91-4fe1-a15d-5e0289a82133","description":"<p>The API endpoints below are designed to interact with the PSB Hosting API. These endpoints provide information such as order information, operations with orders.</p>\n","_postman_id":"c807bcd8-2a91-4fe1-a15d-5e0289a82133"},{"name":"payment","item":[{"name":"Get all","id":"9161f885-3d1a-4e82-8c5a-ac4e8692c6a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/payment?page=2&pageSize=2&sortBy=id&sortOrder=DESC","description":"<p>This endpoint is used to retrieve a list of payments with the ability to paginate with sorting by the selected field.</p>\n","urlObject":{"path":["payment"],"host":["{{API_URL}}"],"query":[{"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"description":{"content":"<p>Count items per page, min: 1, max: 1000</p>\n","type":"text/plain"},"key":"pageSize","value":"2"},{"description":{"content":"<p>Available sort parameters: id, type, date, status</p>\n","type":"text/plain"},"key":"sortBy","value":"id"},{"description":{"content":"<p>Sort order parameter, available: ASC, DESC</p>\n","type":"text/plain"},"key":"sortOrder","value":"DESC"}],"variable":[]}},"response":[{"id":"5d34c82c-12eb-437a-937b-f3658a85fbe2","name":"Get all","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":{"raw":"{{API_URL}}/payment?page=2&pageSize=2&sortBy=id&sortOrder=DESC","host":["{{API_URL}}"],"path":["payment"],"query":[{"key":"page","value":"2","description":"Page number"},{"key":"pageSize","value":"2","description":"Count items per page, min: 1, max: 1000"},{"key":"sortBy","value":"id","description":"Available sort parameters: id, type, date, status"},{"key":"sortOrder","value":"DESC","description":"Sort order parameter, available: ASC, DESC"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 12 May 2025 03:20:39 GMT"},{"key":"server","value":"uvicorn"},{"key":"content-length","value":"437"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"id\": 27749,\n            \"type\": \"Пополнение\",\n            \"amount\": 11,\n            \"date\": \"2025-04-17T11:04:26.846276Z\",\n            \"pay_sys\": \"Heleket\",\n            \"status\": \"Отменен\",\n            \"payment_order_id\": null,\n            \"order_order_id\": null\n        },\n        {\n            \"id\": 25705,\n            \"type\": \"Покупка\",\n            \"amount\": 10,\n            \"date\": \"2025-04-09T00:36:38.211137Z\",\n            \"pay_sys\": \"Оплата с баланса\",\n            \"status\": \"Оплачено\",\n            \"payment_order_id\": 21644,\n            \"order_order_id\": null\n        }\n    ],\n    \"page\": 2,\n    \"size\": 2,\n    \"total\": 9,\n    \"pages\": 5\n}"}],"_postman_id":"9161f885-3d1a-4e82-8c5a-ac4e8692c6a8"}],"id":"957a5e05-eb3b-4ed9-96d6-ba0fbc7a9b7f","description":"<p>The API endpoints below are designed to interact with the PSB Hosting API. These endpoints provide information such as payment information.</p>\n","_postman_id":"957a5e05-eb3b-4ed9-96d6-ba0fbc7a9b7f"},{"name":"products","item":[{"name":"Get all","id":"25f4907d-3538-40ce-921a-637edb8dc1b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/products?types=VPS","description":"<p>This endpoint is used to get a list of items available for purchase with the ability to filter by item type.</p>\n","urlObject":{"path":["products"],"host":["{{API_URL}}"],"query":[{"key":"types","value":"VPS"}],"variable":[]}},"response":[],"_postman_id":"25f4907d-3538-40ce-921a-637edb8dc1b6"},{"name":"Get by id","id":"4b79b626-7271-4564-896d-d0873810dd23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/products/:id","description":"<p>This endpoint is used to retrieve the item available for purchase by its id.</p>\n","urlObject":{"path":["products",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"190","key":"id"}]}},"response":[],"_postman_id":"4b79b626-7271-4564-896d-d0873810dd23"}],"id":"b5e8c2ba-24f0-4d2b-ba69-6ea0bbe02c5c","description":"<p>The API endpoints below are designed to interact with the PSB Hosting API. These endpoints provide information such as products information.</p>\n","_postman_id":"b5e8c2ba-24f0-4d2b-ba69-6ea0bbe02c5c"},{"name":"recipes","item":[{"name":"Get all","id":"a14e15c7-e72c-4b14-a736-0b0eee2049a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/products/recipes","description":"<p>This endpoint is used to retrieve the list of available recipes on servers (Available for PSB VPS, HIGH-CPU PSB VPS only).</p>\n","urlObject":{"path":["products","recipes"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a14e15c7-e72c-4b14-a736-0b0eee2049a5"},{"name":"Get by id","id":"cc60146f-5b3a-4c63-a967-34f37e82d991","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{API_URL}}/products/recipes/:id","description":"<p>This endpoint is used to retrieve by its id available for preinstallation on servers (Available for PSB VPS, HIGH-CPU PSB VPS only).</p>\n","urlObject":{"path":["products","recipes",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"5","key":"id"}]}},"response":[],"_postman_id":"cc60146f-5b3a-4c63-a967-34f37e82d991"}],"id":"03277871-6b69-4c6d-999f-94edc03150d6","description":"<p>The API endpoints below are designed to interact with the PSB Hosting API. These endpoints provide information such as products recipes for (PSB VPS, HIGH-CPU PSB VPS) product type orders information.</p>\n","_postman_id":"03277871-6b69-4c6d-999f-94edc03150d6"},{"name":"server","item":[{"name":"Server Restart","id":"77223c75-59b7-4d44-a5a8-065ad3aac69c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/:id/server/restart","description":"<p>This endpoint is used to send a request to restart the server.</p>\n","urlObject":{"path":["order",":id","server","restart"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"77223c75-59b7-4d44-a5a8-065ad3aac69c"},{"name":"Server Stop","id":"b8e87fae-caf9-43d3-b9fc-473114cd09dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/:id/server/stop","description":"<p>This endpoint is used to send a request to stop the server.</p>\n","urlObject":{"path":["order",":id","server","stop"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"b8e87fae-caf9-43d3-b9fc-473114cd09dd"},{"name":"Server Get History","id":"20cf9052-a9af-4691-bf90-5b1c69e15a8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/:id/server/history","description":"<p>This endpoint is used to retrieve a list of the history of interactions with the server.</p>\n","urlObject":{"path":["order",":id","server","history"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"20cf9052-a9af-4691-bf90-5b1c69e15a8d"},{"name":"Server Get IP Addresses","id":"e04ca179-279c-477f-9017-ff570a89a051","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/:id/server/ip-addresses","description":"<p>This endpoint is used to retrieve a list of the ip addresses assigned to this order.</p>\n","urlObject":{"path":["order",":id","server","ip-addresses"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"e04ca179-279c-477f-9017-ff570a89a051"},{"name":"Server Start","id":"e1a47bab-fee1-4ae4-88a0-8eea17b04bcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/order/:id/server/start","description":"<p>This endpoint is used to send a request to start the server.</p>\n","urlObject":{"path":["order",":id","server","start"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"e1a47bab-fee1-4ae4-88a0-8eea17b04bcb"},{"name":"Server Change Password","id":"c9b0d76b-9775-43a3-94b2-879a89388385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"password","value":"test","type":"text","uuid":"a250d47a-b06f-424c-8a3e-30038bbce7dd"}]},"url":"{{API_URL}}/order/:id/server/change_password","description":"<p>This endpoint is used to send a request to change the server password.</p>\n","urlObject":{"path":["order",":id","server","change_password"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"c9b0d76b-9775-43a3-94b2-879a89388385"},{"name":"Server Add PTR Record to IP","id":"489033d0-34d8-4d1b-9061-a06445532f75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"ip","value":"1.1.1.1","type":"text","uuid":"a250d47a-b06f-424c-8a3e-30038bbce7dd","description":"<p>required, string. One of the IP addresses assigned to this order.</p>\n"},{"key":"domain","value":"NL100.example.com","description":"<p>required, string.</p>\n","type":"text","uuid":"53a79820-bd24-4efe-b39b-4a7d6da7376f"}]},"url":"{{API_URL}}/order/:id/server/ip-addresses","description":"<p>This endpoint is used to send a request to add a ptr record to one of the server's IP addresses.</p>\n","urlObject":{"path":["order",":id","server","ip-addresses"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"489033d0-34d8-4d1b-9061-a06445532f75"},{"name":"Server Update PTR Record to IP","id":"e708139e-1dc4-497c-b35b-8f51c6595057","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"ip","value":"1.1.1.1","type":"text","uuid":"a250d47a-b06f-424c-8a3e-30038bbce7dd","description":"<p>required, string. One of the IP addresses assigned to this order.</p>\n"},{"key":"domain","value":"NL100.example.com","description":"<p>required, string.</p>\n","type":"text","uuid":"53a79820-bd24-4efe-b39b-4a7d6da7376f"}]},"url":"{{API_URL}}/order/:id/server/ip-addresses","description":"<p>This endpoint is used to send a request to update a ptr record to one of the server's IP addresses.</p>\n","urlObject":{"path":["order",":id","server","ip-addresses"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"e708139e-1dc4-497c-b35b-8f51c6595057"},{"name":"Server Change Port","id":"f0965b8e-e18f-4b20-971d-cf3268f9e1d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"port","value":"1234","type":"text","uuid":"a250d47a-b06f-424c-8a3e-30038bbce7dd"}]},"url":"{{API_URL}}/order/:id/server/change_port","description":"<p>This endpoint is used to send a request to change the server port (Available for Windows systems, PSB VPS, HIGH-CPU PSB VPS).</p>\n","urlObject":{"path":["order",":id","server","change_port"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"f0965b8e-e18f-4b20-971d-cf3268f9e1d7"},{"name":"Server Change Operative System","id":"3e62f898-5b06-4262-820b-baa1d220534e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"os","value":"5","type":"text","uuid":"a250d47a-b06f-424c-8a3e-30038bbce7dd","description":"<p>Required, integer</p>\n"}]},"url":"{{API_URL}}/order/:id/server/change_operative_system","description":"<p>This endpoint is used to send a request to change the server's operating system.</p>\n","urlObject":{"path":["order",":id","server","change_operative_system"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"3e62f898-5b06-4262-820b-baa1d220534e"},{"name":"Server Assign ipv6","id":"260cd24e-f802-46ac-a08f-9818f79249d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"{{API_URL}}/order/:id/server/assign_ipv6","description":"<p>This endpoint is used to send a request for ipv6 assignments to the server.</p>\n","urlObject":{"path":["order",":id","server","assign_ipv6"],"host":["{{API_URL}}"],"query":[],"variable":[{"description":{"content":"<p>Required, integer</p>\n","type":"text/plain"},"type":"any","value":"25284","key":"id"}]}},"response":[],"_postman_id":"260cd24e-f802-46ac-a08f-9818f79249d2"}],"id":"7980e2b2-b7c2-4ee7-8b33-287326d9d874","description":"<p>The API endpoints below are designed to interact with the PSB hosting API. These endpoints provide information such as server activity history and options for server management.</p>\n","_postman_id":"7980e2b2-b7c2-4ee7-8b33-287326d9d874"},{"name":"tickets","item":[{"name":"Get ticket list","id":"3c91836a-a97b-4c9c-8531-1769639498dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/tickets?page=1&pageSize=10","description":"<p>This endpoint is used to retrieve the user's list of pagginated tickets.</p>\n","urlObject":{"path":["tickets"],"host":["{{API_URL}}"],"query":[{"description":{"content":"<p>Optional, integer.</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Optional, integer. Max value - 10</p>\n","type":"text/plain"},"key":"pageSize","value":"10"}],"variable":[]}},"response":[{"id":"089eb61b-cd92-4257-961f-f753eb9b9aa8","name":"Get ticket list","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/tickets"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 May 2025 14:31:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cf-Ray","value":"940b941aced7bf30-WAW"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=7tFXt3qRPEUQq3wsRo0dPyPhlyYvSzmAgaiaOJjVOzSe%2BHoytfPxScwxwaeOZ37yNS7cxSbHoZ%2Bk3ZP0I65PjOev6MX7NOf6ceKD6KFcPLVGaBsvm7tbkU3pwFlXoMTSvOEi3%2BPg\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"Nel","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains; preload"},{"key":"Speculation-Rules","value":"\"/cdn-cgi/speculation\""},{"key":"Expect-Ct","value":"max-age=86400, enforce"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=107402&min_rtt=30954&rtt_var=50538&sent=53&recv=50&lost=0&retrans=0&sent_bytes=7658&recv_bytes=2355&delivery_rate=87613&cwnd=243&unsent_bytes=0&cid=db482e21725fc2e6&ts=41479&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [\n        {\n            \"id\": 51,\n            \"title\": \"123\",\n            \"type\": \"Технический отдел\",\n            \"status\": \"Закрыт\",\n            \"date_create\": \"2025-05-16T10:40:07.596691Z\",\n            \"date_update\": \"2025-05-16T13:54:52.731247Z\",\n            \"orders\": [],\n            \"products\": [],\n            \"unread_messages_count\": 0,\n            \"chat\": {\n                \"info\": {\n                    \"id\": 51,\n                    \"title\": \"Чат тикета #51 - 123\",\n                    \"status\": \"Открыт\",\n                    \"date_create\": \"2025-05-16T10:40:07.598522Z\",\n                    \"date_update\": \"2025-05-16T10:40:07.598525Z\"\n                },\n                \"messages\": [],\n                \"users\": []\n            }\n        }\n    ],\n    \"total\": 14,\n    \"page\": 1,\n    \"size\": 10,\n    \"pages\": 2\n}"}],"_postman_id":"3c91836a-a97b-4c9c-8531-1769639498dc"},{"name":"Get ticket by id","id":"fd541c02-7e10-424d-b355-2139025d6c07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/tickets/:id","description":"<p>This endpoint is used to retrieve the ticket and its associated id data.</p>\n","urlObject":{"path":["tickets",":id"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"51","key":"id"}]}},"response":[{"id":"106402ff-2c56-4f68-bee4-6bfebd776343","name":"Get ticket by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":{"raw":"{{API_URL}}/tickets/:id","host":["{{API_URL}}"],"path":["tickets",":id"],"variable":[{"key":"id","value":"51"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 May 2025 14:33:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cf-Ray","value":"940b97725d6dc047-WAW"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=Hh%2BCkX1BLajbCZG%2FnzMJYNsu6n4V6yJts7XBPmUELqm6w4dsSrXrbbJN%2FJS0QHXsSUef0DN%2B0ZiLbAxWvsdHIyLnpVub9tIhTiiEgR%2Bl1gPyK9xaaPeGVuGpZsFLR1balGli%2BK7w\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"Nel","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains; preload"},{"key":"Speculation-Rules","value":"\"/cdn-cgi/speculation\""},{"key":"Expect-Ct","value":"max-age=86400, enforce"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=41238&min_rtt=31830&rtt_var=27703&sent=5&recv=5&lost=0&retrans=0&sent_bytes=2807&recv_bytes=1004&delivery_rate=82461&cwnd=252&unsent_bytes=0&cid=85466e41027ff698&ts=330&x=0\""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 51,\n    \"title\": \"123\",\n    \"type\": \"Технический отдел\",\n    \"status\": \"Закрыт\",\n    \"date_create\": \"2025-05-16T10:40:07.596691Z\",\n    \"date_update\": \"2025-05-16T13:54:52.731247Z\",\n    \"orders\": [],\n    \"products\": [],\n    \"unread_messages_count\": 0,\n    \"chat\": {\n        \"info\": {\n            \"id\": 51,\n            \"title\": \"Чат тикета #51 - 123\",\n            \"status\": \"Открыт\",\n            \"date_create\": \"2025-05-16T10:40:07.598522Z\",\n            \"date_update\": \"2025-05-16T10:40:07.598525Z\"\n        },\n        \"users\": [\n            {\n                \"id\": 1,\n                \"role_id\": 1,\n                \"username\": \"user\"\n            }\n        ]\n    }\n}"}],"_postman_id":"fd541c02-7e10-424d-b355-2139025d6c07"},{"name":"Close ticket","id":"f65f83a1-3fe1-49ed-93c8-251bd6696488","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/tickets/:id/close","description":"<p>This endpoint is used to close the ticket.</p>\n","urlObject":{"path":["tickets",":id","close"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"51","key":"id"}]}},"response":[],"_postman_id":"f65f83a1-3fe1-49ed-93c8-251bd6696488"},{"name":"Create ticket","id":"421c8c8d-c60d-4a60-89ef-09775bbffe39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"","description":"<p>Required, string</p>\n","type":"text","uuid":"df47033e-c895-40b1-9541-6f935b65433a"},{"key":"type","value":"","description":"<p>Required, string. Available types: \"Отдел продаж\" - sales department, \"Технический отдел\" - technical department</p>\n","type":"text","uuid":"81c50f8f-075f-404d-acfb-61e33018e6e0"},{"key":"message","value":"","description":"<p>Required, string</p>\n","type":"text","uuid":"fbff87c9-11a7-4bde-89d2-6ad4de12ae26"},{"key":"order_ids","value":"","description":"<p>Optional, string. Order ids separated by comma, example: 123, 321</p>\n","type":"text","uuid":"30366b73-b4c9-4e24-8ee8-ef3c6d270978"},{"key":"files","description":"<p>Optional, bytes.</p>\n","type":"file","uuid":"72c6c0e9-f1bd-4508-8bfa-02d5d02437bd","value":null}]},"url":"{{API_URL}}/tickets","description":"<p>This endpoint is used to create a new ticket, the message content and attachments will be sent as the first message.</p>\n<p>You can specify the orders associated with the ticket with numeric values separated by comma.</p>\n<p>Available types: “Sales department” - sales department, “Technical department” - technical department</p>\n","urlObject":{"path":["tickets"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"421c8c8d-c60d-4a60-89ef-09775bbffe39"}],"id":"94c92057-3532-459b-aa0f-3c6dc5b2ede6","_postman_id":"94c92057-3532-459b-aa0f-3c6dc5b2ede6","description":""},{"name":"chats","item":[{"name":"Get chat messages by id","id":"4f8f419f-17a8-4300-8599-7443e0e79231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":"{{API_URL}}/chats/:id/messages?limit=50&offset=0","description":"<p>This endpoint is used to retrieve paginated chat messages.</p>\n","urlObject":{"path":["chats",":id","messages"],"host":["{{API_URL}}"],"query":[{"description":{"content":"<p>Optional, integer. Max value: 100</p>\n","type":"text/plain"},"key":"limit","value":"50"},{"description":{"content":"<p>Optional, integer. Can be used for paggination chat messages.</p>\n","type":"text/plain"},"key":"offset","value":"0"}],"variable":[{"type":"any","value":"51","key":"id"}]}},"response":[{"id":"617c9764-6410-401b-9ff7-d5738518ae01","name":"Get chat messages by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"url":{"raw":"{{API_URL}}/chats/:id/messages?limit=50&offset=0","host":["{{API_URL}}"],"path":["chats",":id","messages"],"query":[{"key":"limit","value":"50","description":"Optional, integer. Max value: 100"},{"key":"offset","value":"0","description":"Optional, integer. Can be used for paggination chat messages."}],"variable":[{"key":"id","value":"51"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 16 May 2025 15:10:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cf-Ray","value":"940bccf6ae133dd0-WAW"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=LKJvWsT6zHBhW5cbr1xKq60vt6aqVcqGS4n0N0fedOA6JPkLe7uXMidMuQcJ9PZnSEv0mhm9VMCE7lhb1zq4sfuGA6j9xInKkPwXCu8X5iaZJtHr04XhOEsn%2Fkn4d2fTrw311kHP\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"Nel","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains; preload"},{"key":"Speculation-Rules","value":"\"/cdn-cgi/speculation\""},{"key":"Expect-Ct","value":"max-age=86400, enforce"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=41719&min_rtt=30635&rtt_var=30746&sent=5&recv=5&lost=0&retrans=0&sent_bytes=2807&recv_bytes=1029&delivery_rate=86753&cwnd=252&unsent_bytes=0&cid=7a913f5da1bdd7a4&ts=354&x=0\""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 162,\n        \"user_id\": 1,\n        \"username\": \"user\",\n        \"text\": \"test\",\n        \"chat_id\": 51,\n        \"date_create\": \"2025-05-16T10:40:07.604704Z\",\n        \"date_update\": \"2025-05-16T10:40:07.604706Z\",\n        \"attachments\": [],\n        \"read_status\": {\n            \"read_by_users\": [\n                1\n            ],\n            \"is_read_by_current_user\": true\n        }\n    }\n]"}],"_postman_id":"4f8f419f-17a8-4300-8599-7443e0e79231"},{"name":"Create chat message","id":"6c094ecf-e122-4678-aa8d-927641dee21a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{API_TOKEN}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"text","value":"","description":"<p>Optional, string.</p>\n","type":"text","uuid":"512a9461-4028-4fce-8276-0dd88ef1a7c5"},{"key":"files","description":"<p>Optional, bytes.</p>\n","type":"file","uuid":"fa145f98-34c4-45ed-9ec2-384b85d3aba3","value":null}]},"url":"{{API_URL}}/chats/:id/messages","description":"<p>This endpoint is used to send a new message to the chat room, it is also possible to send files without text or vice versa.</p>\n","urlObject":{"path":["chats",":id","messages"],"host":["{{API_URL}}"],"query":[],"variable":[{"type":"any","value":"51","key":"id"}]}},"response":[],"_postman_id":"6c094ecf-e122-4678-aa8d-927641dee21a"}],"id":"c67c68ff-6fda-45e4-9ce6-817296b1b1e1","_postman_id":"c67c68ff-6fda-45e4-9ce6-817296b1b1e1","description":""}]}