{"openapi":"3.1.0","info":{"title":"Amnezia Web Panel","version":"0.1.0"},"paths":{"/manifest.webmanifest":{"get":{"summary":"Web Manifest","description":"Installable PWA manifest — public, no auth (browsers fetch without credentials).","operationId":"web_manifest_manifest_webmanifest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sw.js":{"get":{"summary":"Service Worker","description":"Root-scoped service worker. Must not live under /static/ or scope is confined.","operationId":"service_worker_sw_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/login":{"get":{"tags":["System Templates"],"summary":"Login Page","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/set_lang/{lang}":{"get":{"tags":["System Templates"],"summary":"Set Lang","operationId":"set_lang_set_lang__lang__get","parameters":[{"name":"lang","in":"path","required":true,"schema":{"type":"string","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"get":{"tags":["System Templates"],"summary":"Logout","operationId":"logout_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"tags":["System Templates"],"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/server/{server_id}":{"get":{"tags":["System Templates"],"summary":"Server Detail","operationId":"server_detail_server__server_id__get","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users":{"get":{"tags":["System Templates"],"summary":"Users Page","operationId":"users_page_users_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/my":{"get":{"tags":["System Templates"],"summary":"My Connections Page","operationId":"my_connections_page_my_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/auth/captcha":{"get":{"tags":["Authentication"],"summary":"Api Captcha","operationId":"api_captcha_api_auth_captcha_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/login":{"post":{"tags":["Authentication"],"summary":"Api Login","operationId":"api_login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/add":{"post":{"tags":["Servers"],"summary":"Api Add Server","operationId":"api_add_server_api_servers_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddServerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/edit":{"post":{"tags":["Servers"],"summary":"Api Edit Server","description":"Update connection details for an existing server entry. Verifies the new\ncredentials by SSH-connecting before persisting, so a typo can't lock us out.","operationId":"api_edit_server_api_servers__server_id__edit_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditServerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/ping":{"get":{"tags":["Servers"],"summary":"Api Server Ping","description":"Cheap reachability check: opens a TCP connection to the SSH port,\nmeasures RTT, immediately closes. Runs on the asyncio loop so the page\ncan issue many pings in parallel without blocking each other.","operationId":"api_server_ping_api_servers__server_id__ping_get","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/reorder":{"post":{"tags":["Servers"],"summary":"Api Reorder Servers","description":"Persist a user-defined ordering of servers. Also remaps `server_id`\nreferences in user_connections so existing assignments survive the move.","operationId":"api_reorder_servers_api_servers_reorder_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderServersRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/delete":{"post":{"tags":["Servers"],"summary":"Api Delete Server","operationId":"api_delete_server_api_servers__server_id__delete_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/reboot":{"post":{"tags":["Servers"],"summary":"Api Reboot Server","operationId":"api_reboot_server_api_servers__server_id__reboot_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/clear":{"post":{"tags":["Servers"],"summary":"Api Clear Server","operationId":"api_clear_server_api_servers__server_id__clear_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/stats":{"post":{"tags":["Servers"],"summary":"Api Server Stats","operationId":"api_server_stats_api_servers__server_id__stats_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/check":{"post":{"tags":["Servers"],"summary":"Api Check Server","operationId":"api_check_server_api_servers__server_id__check_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/used-ports":{"get":{"tags":["Servers"],"summary":"Api Used Ports","operationId":"api_used_ports_api_servers__server_id__used_ports_get","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/install":{"post":{"tags":["Protocols"],"summary":"Api Install Protocol","operationId":"api_install_protocol_api_servers__server_id__install_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/socks5/credentials":{"get":{"tags":["Protocols"],"summary":"Api Socks5 Get Credentials","description":"Return the current SOCKS5 port/username/password for the panel UI.","operationId":"api_socks5_get_credentials_api_servers__server_id__socks5_credentials_get","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}},{"name":"protocol","in":"query","required":false,"schema":{"type":"string","default":"socks5","title":"Protocol"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Protocols"],"summary":"Api Socks5 Update Credentials","description":"Apply new SOCKS5 connection settings — regenerates the 3proxy config and\nreconciles the container (recreating it if the listening port changed).","operationId":"api_socks5_update_credentials_api_servers__server_id__socks5_credentials_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Socks5SettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/exit/peers":{"post":{"tags":["Protocols"],"summary":"Api Exit Peers","description":"Exit node endpoint data (public key, port, transit subnet, obfuscation)\nand its peers - the entry nodes linked to it - with live handshake and\ntransfer counters.","operationId":"api_exit_peers_api_servers__server_id__exit_peers_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/exit/peers/add":{"post":{"tags":["Protocols"],"summary":"Api Exit Peer Add","description":"Register a peer on the exit node by hand (a node not managed by this\npanel). Upserts by `peer_id`; returns the transit address, a fresh PSK and\nthe exit's endpoint data for the peer's own WireGuard config.","operationId":"api_exit_peer_add_api_servers__server_id__exit_peers_add_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExitPeerAddRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/exit/peers/remove":{"post":{"tags":["Protocols"],"summary":"Api Exit Peer Remove","description":"Drop a peer from the exit node by public key or by peer id.","operationId":"api_exit_peer_remove_api_servers__server_id__exit_peers_remove_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExitPeerRemoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/exit-nodes":{"get":{"tags":["Servers"],"summary":"Api Exit Nodes","description":"Servers with an installed exit node, from data.json (no SSH).","operationId":"api_exit_nodes_api_exit_nodes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/servers/{server_id}/exit-link":{"post":{"tags":["Protocols"],"summary":"Api Exit Link","description":"Route all clients of an AWG instance through an exit node (by its\nserver uid). Rolled back unless the exit answers within 15 s; `force`\nkeeps the link anyway.","operationId":"api_exit_link_api_servers__server_id__exit_link_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExitLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/exit-link/remove":{"post":{"tags":["Protocols"],"summary":"Api Exit Unlink","description":"Restore direct egress for an AWG instance and drop its peer on the exit.","operationId":"api_exit_unlink_api_servers__server_id__exit_link_remove_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/exit-link/relink":{"post":{"tags":["Protocols"],"summary":"Api Exit Relink","description":"Re-establish an existing link (after a reinstall or a stale state).","operationId":"api_exit_relink_api_servers__server_id__exit_link_relink_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/exit-link/dns":{"post":{"tags":["Protocols"],"summary":"Api Exit Link Dns","description":"Resolve client DNS at the exit node instead of this one (requires\nAmneziaDNS on the exit).","operationId":"api_exit_link_dns_api_servers__server_id__exit_link_dns_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExitDnsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/exit-link/status":{"post":{"tags":["Protocols"],"summary":"Api Exit Link Status","description":"Saved link plus live handshake/transfer, client MTU and IPv6 flags.","operationId":"api_exit_link_status_api_servers__server_id__exit_link_status_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/exit-link/check-egress":{"post":{"tags":["Protocols"],"summary":"Api Exit Link Check Egress","description":"Public IP the clients of this instance leave from, compared with the\nexit node address (two HTTP probes from inside the container).","operationId":"api_exit_link_check_egress_api_servers__server_id__exit_link_check_egress_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/awg/settings":{"post":{"tags":["Protocols"],"summary":"Api Awg Settings Get","description":"Return MTU, DNS and the special junk packets I1-I5 of an AWG server.","operationId":"api_awg_settings_get_api_servers__server_id__awg_settings_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/awg/settings/save":{"post":{"tags":["Protocols"],"summary":"Api Awg Settings Save","description":"Update MTU, DNS and I1-I5 and apply them to the running interface.","operationId":"api_awg_settings_save_api_servers__server_id__awg_settings_save_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwgSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/uninstall":{"post":{"tags":["Protocols"],"summary":"Api Uninstall Protocol","operationId":"api_uninstall_protocol_api_servers__server_id__uninstall_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/backups":{"post":{"tags":["Protocols"],"summary":"Api Protocol Backups List","description":"List backups created on the remote server for one protocol.","operationId":"api_protocol_backups_list_api_servers__server_id__backups_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/backups/create":{"post":{"tags":["Protocols"],"summary":"Api Protocol Backup Create","description":"Create a protocol backup archive on the remote server.","operationId":"api_protocol_backup_create_api_servers__server_id__backups_create_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/backups/download":{"post":{"tags":["Protocols"],"summary":"Api Protocol Backup Download","description":"Download one remote protocol backup archive through the panel.","operationId":"api_protocol_backup_download_api_servers__server_id__backups_download_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupDownloadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/backups/upload":{"post":{"tags":["Protocols"],"summary":"Api Protocol Backup Upload","description":"Upload a protocol backup archive onto the remote server.","operationId":"api_protocol_backup_upload_api_servers__server_id__backups_upload_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_api_protocol_backup_upload_api_servers__server_id__backups_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/backups/restore":{"post":{"tags":["Protocols"],"summary":"Api Protocol Backup Restore","description":"Restore a protocol from a backup archive on the remote server.","operationId":"api_protocol_backup_restore_api_servers__server_id__backups_restore_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupDownloadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/backups/delete":{"post":{"tags":["Protocols"],"summary":"Api Protocol Backup Delete","description":"Delete one protocol backup archive on the remote server.","operationId":"api_protocol_backup_delete_api_servers__server_id__backups_delete_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupDownloadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/container/toggle":{"post":{"tags":["Protocols"],"summary":"Api Container Toggle","description":"Start or stop a protocol Docker container. Stopping an exit node that\nentries route through is refused (409 `exit_in_use`) unless `force` is\nset - their clients would silently land on the kill-switch.","operationId":"api_container_toggle_api_servers__server_id__container_toggle_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContainerToggleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/server_config":{"post":{"tags":["Protocols"],"summary":"Api Server Config","description":"Get the raw server-side WireGuard/Xray configuration.","operationId":"api_server_config_api_servers__server_id__server_config_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/ssh_cooldown":{"post":{"tags":["Servers"],"summary":"Api Ssh Cooldown","description":"Set the per-server SSH circuit-breaker base cooldown (seconds).","operationId":"api_ssh_cooldown_api_servers__server_id__ssh_cooldown_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/host_tuning":{"post":{"tags":["Protocols"],"summary":"Api Host Tuning","description":"Server-level network tuning summary (host sysctls + AWG containers).","operationId":"api_host_tuning_api_servers__server_id__host_tuning_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/wgeasy/preview":{"post":{"tags":["Protocols"],"summary":"Api Wgeasy Preview","description":"Fetch the client list from a wg-easy / amnezia-wg-easy panel running on\nthis server (via its local web API over SSH). No secrets are returned.","operationId":"api_wgeasy_preview_api_servers__server_id__wgeasy_preview_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WgEasyPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/protocol/rename":{"post":{"tags":["Protocols"],"summary":"Api Rename Protocol","description":"Set or clear a custom display name for an installed protocol instance.","operationId":"api_rename_protocol_api_servers__server_id__protocol_rename_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/wgeasy/import":{"post":{"tags":["Protocols"],"summary":"Api Wgeasy Import","description":"Migrate clients from a wg-easy panel on this server into a panel-managed\nWireGuard instance, preserving keys/IPs/port so client configs keep working.","operationId":"api_wgeasy_import_api_servers__server_id__wgeasy_import_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WgEasyImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/server_config/save":{"post":{"tags":["Protocols"],"summary":"Api Server Config Save","description":"Save the raw server-side WireGuard/Xray configuration and apply changes.","operationId":"api_server_config_save_api_servers__server_id__server_config_save_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerConfigSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/nginx/site":{"post":{"tags":["Protocols"],"summary":"Api Nginx Site Get","description":"Return editable NGINX site index.html.","operationId":"api_nginx_site_get_api_servers__server_id__nginx_site_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtocolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/nginx/site/save":{"post":{"tags":["Protocols"],"summary":"Api Nginx Site Save","description":"Save editable NGINX site index.html.","operationId":"api_nginx_site_save_api_servers__server_id__nginx_site_save_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NginxSiteSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections":{"get":{"tags":["Connections"],"summary":"Api Get Connections","operationId":"api_get_connections_api_servers__server_id__connections_get","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}},{"name":"protocol","in":"query","required":false,"schema":{"type":"string","default":"awg","title":"Protocol"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections/add":{"post":{"tags":["Connections"],"summary":"Api Add Connection","operationId":"api_add_connection_api_servers__server_id__connections_add_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections/remove":{"post":{"tags":["Connections"],"summary":"Api Remove Connection","operationId":"api_remove_connection_api_servers__server_id__connections_remove_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections/edit":{"post":{"tags":["Connections"],"summary":"Api Edit Connection","operationId":"api_edit_connection_api_servers__server_id__connections_edit_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections/clear_warnings":{"post":{"tags":["Connections"],"summary":"Api Clear Conn Warnings","description":"Clear recorded connection-flood (torrent) warnings for one peer.","operationId":"api_clear_conn_warnings_api_servers__server_id__connections_clear_warnings_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections/rename":{"post":{"tags":["Connections"],"summary":"Api Rename Connection","operationId":"api_rename_connection_api_servers__server_id__connections_rename_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections/config/save":{"post":{"tags":["Connections"],"summary":"Api Save Connection Config","operationId":"api_save_connection_config_api_servers__server_id__connections_config_save_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveConnectionConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections/config":{"post":{"tags":["Connections"],"summary":"Api Get Connection Config","operationId":"api_get_connection_config_api_servers__server_id__connections_config_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/connections/toggle":{"post":{"tags":["Connections"],"summary":"Api Toggle Connection","operationId":"api_toggle_connection_api_servers__server_id__connections_toggle_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users":{"get":{"tags":["Users"],"summary":"Api List Users","operationId":"api_list_users_api_users_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/add":{"post":{"tags":["Users"],"summary":"Api Add User","operationId":"api_add_user_api_users_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/update":{"post":{"tags":["Users"],"summary":"Api Update User","operationId":"api_update_user_api_users__user_id__update_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/delete":{"post":{"tags":["Users"],"summary":"Api Delete User","operationId":"api_delete_user_api_users__user_id__delete_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/toggle":{"post":{"tags":["Users"],"summary":"Api Toggle User","operationId":"api_toggle_user_api_users__user_id__toggle_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/traffic/reset":{"post":{"tags":["Users"],"summary":"Api Reset User Traffic","operationId":"api_reset_user_traffic_api_users__user_id__traffic_reset_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/connections/add":{"post":{"tags":["Users"],"summary":"Api Add User Connection","operationId":"api_add_user_connection_api_users__user_id__connections_add_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/connections/unlink":{"post":{"tags":["Users"],"summary":"Api Unlink User Connection","description":"Detach a connection from the user WITHOUT touching the peer on the\nserver: the key keeps working and the peer goes back to the pool of\nlinkable existing clients.","operationId":"api_unlink_user_connection_api_users__user_id__connections_unlink_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlinkConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/connections":{"get":{"tags":["Users"],"summary":"Api Get User Connections","operationId":"api_get_user_connections_api_users__user_id__connections_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/my/connections":{"get":{"tags":["Self-service"],"summary":"Api My Connections","operationId":"api_my_connections_api_my_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/my/connections/options":{"get":{"tags":["Self-service"],"summary":"Api My Connection Options","operationId":"api_my_connection_options_api_my_connections_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/my/connections/add":{"post":{"tags":["Self-service"],"summary":"Api My Connection Add","operationId":"api_my_connection_add_api_my_connections_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelfServiceConnectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/my/connections/{connection_id}/delete":{"post":{"tags":["Self-service"],"summary":"Api My Connection Delete","operationId":"api_my_connection_delete_api_my_connections__connection_id__delete_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/share/setup":{"post":{"tags":["Users"],"summary":"Api User Share Setup","operationId":"api_user_share_setup_api_users__user_id__share_setup_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareSetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/share/{token}":{"get":{"tags":["System Templates"],"summary":"Share Page","operationId":"share_page_share__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{token}/auth":{"post":{"tags":["Sharing"],"summary":"Api Share Auth","operationId":"api_share_auth_api_share__token__auth_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareAuthRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{token}/connections":{"get":{"tags":["Sharing"],"summary":"Api Share Connections","operationId":"api_share_connections_api_share__token__connections_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{token}/config/{connection_id}":{"post":{"tags":["Sharing"],"summary":"Api Share Config","operationId":"api_share_config_api_share__token__config__connection_id__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/my/connections/{connection_id}/config":{"post":{"tags":["Self-service"],"summary":"Api My Connection Config","operationId":"api_my_connection_config_api_my_connections__connection_id__config_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings":{"get":{"tags":["System Templates"],"summary":"Settings Page","operationId":"settings_page_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings":{"get":{"tags":["Settings"],"summary":"Api Get Settings","operationId":"api_get_settings_api_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings/tunnels/status":{"get":{"tags":["Settings"],"summary":"Api Tunnels Status","operationId":"api_tunnels_status_api_settings_tunnels_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings/tunnels/{provider}/install":{"post":{"tags":["Settings"],"summary":"Api Tunnel Install","operationId":"api_tunnel_install_api_settings_tunnels__provider__install_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/tunnels/{provider}/start":{"post":{"tags":["Settings"],"summary":"Api Tunnel Start","operationId":"api_tunnel_start_api_settings_tunnels__provider__start_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelStartRequest","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/tunnels/{provider}/stop":{"post":{"tags":["Settings"],"summary":"Api Tunnel Stop","operationId":"api_tunnel_stop_api_settings_tunnels__provider__stop_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/tunnels/{provider}":{"delete":{"tags":["Settings"],"summary":"Api Tunnel Delete","operationId":"api_tunnel_delete_api_settings_tunnels__provider__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/warp/connect":{"post":{"tags":["Settings"],"summary":"Api Warp Connect","operationId":"api_warp_connect_api_settings_warp_connect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings/warp/disconnect":{"post":{"tags":["Settings"],"summary":"Api Warp Disconnect","operationId":"api_warp_disconnect_api_settings_warp_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings/save":{"post":{"tags":["Settings"],"summary":"Save Settings","operationId":"save_settings_api_settings_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/telegram/toggle":{"post":{"tags":["Settings"],"summary":"Api Telegram Toggle","description":"Quick enable/disable of the bot without a full settings save.","operationId":"api_telegram_toggle_api_settings_telegram_toggle_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings/sync_now":{"post":{"tags":["Settings"],"summary":"Api Sync Now","operationId":"api_sync_now_api_settings_sync_now_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings/sync_delete":{"post":{"tags":["Settings"],"summary":"Api Sync Delete","operationId":"api_sync_delete_api_settings_sync_delete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/servers/{server_id}/{protocol}/clients":{"get":{"tags":["Connections"],"summary":"Api Get Server Clients","operationId":"api_get_server_clients_api_servers__server_id___protocol__clients_get","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}},{"name":"protocol","in":"path","required":true,"schema":{"type":"string","title":"Protocol"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/tokens":{"get":{"tags":["API Tokens"],"summary":"Api List Tokens","description":"List metadata for every API token. The raw token value is never\nreturned by this endpoint — only its prefix and timestamps are visible\nafter creation, by design.","operationId":"api_list_tokens_api_settings_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["API Tokens"],"summary":"Api Create Token","description":"Issue a new bearer token. The full token value is returned **once** in\nthe response and never persisted in plaintext — only its SHA-256 hash is\nstored, so a leaked data.json file alone cannot be used to authenticate.\nSave the value at creation time; if it's lost the token must be recreated.","operationId":"api_create_token_api_settings_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/tokens/{token_id}":{"delete":{"tags":["API Tokens"],"summary":"Api Revoke Token","description":"Permanently revoke a token. The associated bearer value can never be\nused again, even if the same name is reissued — every token has its own hash.","operationId":"api_revoke_token_api_settings_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/backup/download":{"get":{"tags":["Settings"],"summary":"Api Backup Download","operationId":"api_backup_download_api_settings_backup_download_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings/backup/restore":{"post":{"tags":["Settings"],"summary":"Api Backup Restore","operationId":"api_backup_restore_api_settings_backup_restore_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_api_backup_restore_api_settings_backup_restore_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AddConnectionRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"name":{"type":"string","title":"Name","default":"Connection"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"telemt_quota":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Quota"},"telemt_max_ips":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telemt Max Ips"},"telemt_expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Expiry"},"telemt_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Secret"},"telemt_ad_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Ad Tag"},"telemt_max_conns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telemt Max Conns"}},"type":"object","title":"AddConnectionRequest"},"AddServerRequest":{"properties":{"host":{"type":"string","title":"Host","default":""},"ssh_port":{"type":"integer","title":"Ssh Port","default":22},"username":{"type":"string","title":"Username","default":""},"password":{"type":"string","title":"Password","default":""},"private_key":{"type":"string","title":"Private Key","default":""},"name":{"type":"string","title":"Name","default":""}},"type":"object","title":"AddServerRequest"},"AddUserConnectionRequest":{"properties":{"server_id":{"type":"integer","title":"Server Id"},"protocol":{"type":"string","title":"Protocol","default":"awg"},"name":{"type":"string","title":"Name","default":"VPN Connection"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"telemt_quota":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Quota"},"telemt_max_ips":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telemt Max Ips"},"telemt_expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Expiry"},"telemt_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Secret"},"telemt_ad_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Ad Tag"},"telemt_max_conns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telemt Max Conns"}},"type":"object","required":["server_id"],"title":"AddUserConnectionRequest"},"AddUserRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"role":{"type":"string","title":"Role","default":"none"},"telegramId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telegramid"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"traffic_limit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Traffic Limit","default":0},"traffic_reset_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Traffic Reset Strategy","default":"never"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"protocol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol"},"connection_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection Name"},"expiration_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiration Date"},"telemt_quota":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Quota"},"telemt_max_ips":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telemt Max Ips"},"telemt_expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Expiry"},"telemt_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Secret"},"telemt_ad_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Ad Tag"},"telemt_max_conns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telemt Max Conns"}},"type":"object","required":["username"],"title":"AddUserRequest"},"AppearanceSettings":{"properties":{"title":{"type":"string","title":"Title","default":"Amnezia"},"logo":{"type":"string","title":"Logo","default":"🛡"},"subtitle":{"type":"string","title":"Subtitle","default":"Web Panel"}},"type":"object","title":"AppearanceSettings"},"AutoBackupSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"interval_hours":{"type":"integer","title":"Interval Hours","default":24}},"type":"object","title":"AutoBackupSettings"},"AwgSettingsRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg2"},"mtu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mtu"},"dns1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns1"},"dns2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns2"},"dns6":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns6"},"i1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"I1"},"i2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"I2"},"i3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"I3"},"i4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"I4"},"i5":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"I5"}},"type":"object","title":"AwgSettingsRequest"},"BackupDownloadRequest":{"properties":{"protocol":{"type":"string","title":"Protocol"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["protocol","filename"],"title":"BackupDownloadRequest"},"Body_api_backup_restore_api_settings_backup_restore_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_api_backup_restore_api_settings_backup_restore_post"},"Body_api_protocol_backup_upload_api_servers__server_id__backups_upload_post":{"properties":{"protocol":{"type":"string","title":"Protocol"},"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["protocol","file"],"title":"Body_api_protocol_backup_upload_api_servers__server_id__backups_upload_post"},"CaptchaSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false}},"type":"object","title":"CaptchaSettings"},"ConnectionActionRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"client_id":{"type":"string","title":"Client Id","default":""}},"type":"object","title":"ConnectionActionRequest"},"ContainerToggleRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"force":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Force","default":false}},"type":"object","title":"ContainerToggleRequest"},"CreateApiTokenRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"CreateApiTokenRequest"},"EditConnectionRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"telemt"},"client_id":{"type":"string","title":"Client Id","default":""},"telemt_quota":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Quota"},"telemt_max_ips":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telemt Max Ips"},"telemt_expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Expiry"},"telemt_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Secret"},"telemt_ad_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telemt Ad Tag"},"telemt_max_conns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Telemt Max Conns"}},"type":"object","title":"EditConnectionRequest"},"EditServerRequest":{"properties":{"name":{"type":"string","title":"Name","default":""},"host":{"type":"string","title":"Host","default":""},"ssh_port":{"type":"integer","title":"Ssh Port","default":22},"username":{"type":"string","title":"Username","default":""},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"private_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Private Key"},"self_service_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Service Enabled"}},"type":"object","title":"EditServerRequest"},"ExitDnsRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"enabled":{"type":"boolean","title":"Enabled","default":false}},"type":"object","title":"ExitDnsRequest"},"ExitLinkRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"exit_uid":{"type":"string","title":"Exit Uid","default":""},"force":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Force","default":false}},"type":"object","title":"ExitLinkRequest"},"ExitNodesSettings":{"properties":{"default_exit_uid":{"type":"string","title":"Default Exit Uid","default":""}},"type":"object","title":"ExitNodesSettings"},"ExitPeerAddRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"exit"},"peer_id":{"type":"string","title":"Peer Id","default":""},"name":{"type":"string","title":"Name","default":""},"public_key":{"type":"string","title":"Public Key","default":""}},"type":"object","title":"ExitPeerAddRequest"},"ExitPeerRemoveRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"exit"},"public_key":{"type":"string","title":"Public Key","default":""},"peer_id":{"type":"string","title":"Peer Id","default":""}},"type":"object","title":"ExitPeerRemoveRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InstallProtocolRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"port":{"type":"string","title":"Port","default":"55424"},"install_another":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Install Another","default":false},"tls_emulation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tls Emulation"},"tls_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tls Domain"},"max_connections":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Connections"},"socks5_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Socks5 Username"},"socks5_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Socks5 Password"},"adguard_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adguard Mode"},"adguard_web_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adguard Web Port"},"adguard_expose_web":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Adguard Expose Web"},"adguard_dot_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adguard Dot Port"},"adguard_doh_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adguard Doh Port"},"adguard_expose_dns":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Adguard Expose Dns"},"adguard_expose_dot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Adguard Expose Dot"},"adguard_expose_doh":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Adguard Expose Doh"},"nginx_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nginx Domain"},"nginx_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nginx Email"},"exit_subnet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exit Subnet"},"exit_obfuscation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exit Obfuscation"},"awg_mtu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg Mtu"},"awg_dns1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg Dns1"},"awg_dns2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg Dns2"},"awg_dns6":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg Dns6"},"awg_i1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg I1"},"awg_i2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg I2"},"awg_i3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg I3"},"awg_i4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg I4"},"awg_i5":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awg I5"}},"type":"object","title":"InstallProtocolRequest"},"LoginRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"captcha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captcha"}},"type":"object","required":["username","password"],"title":"LoginRequest"},"NginxSiteSaveRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"nginx"},"html":{"type":"string","title":"Html","default":""}},"type":"object","title":"NginxSiteSaveRequest"},"ProtocolRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"}},"type":"object","title":"ProtocolRequest"},"RenameConnectionRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"client_id":{"type":"string","title":"Client Id","default":""},"new_name":{"type":"string","title":"New Name","default":""},"max_speed":{"type":"number","title":"Max Speed","default":-1}},"type":"object","title":"RenameConnectionRequest"},"RenameProtocolRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":""},"name":{"type":"string","title":"Name","default":""}},"type":"object","title":"RenameProtocolRequest"},"ReorderServersRequest":{"properties":{"order":{"items":{"type":"integer"},"type":"array","title":"Order"}},"type":"object","required":["order"],"title":"ReorderServersRequest"},"SSLSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"domain":{"type":"string","title":"Domain","default":""},"cert_path":{"type":"string","title":"Cert Path","default":""},"key_path":{"type":"string","title":"Key Path","default":""},"cert_text":{"type":"string","title":"Cert Text","default":""},"key_text":{"type":"string","title":"Key Text","default":""},"panel_port":{"type":"integer","title":"Panel Port","default":5000}},"type":"object","title":"SSLSettings"},"SaveConnectionConfigRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"client_id":{"type":"string","title":"Client Id","default":""},"config":{"type":"string","title":"Config","default":""}},"type":"object","title":"SaveConnectionConfigRequest"},"SaveSettingsRequest":{"properties":{"appearance":{"$ref":"#/components/schemas/AppearanceSettings"},"sync":{"$ref":"#/components/schemas/SyncSettings"},"captcha":{"$ref":"#/components/schemas/CaptchaSettings"},"telegram":{"$ref":"#/components/schemas/TelegramSettings"},"ssl":{"$ref":"#/components/schemas/SSLSettings"},"auto_backup":{"$ref":"#/components/schemas/AutoBackupSettings","default":{"enabled":false,"interval_hours":24}},"self_service":{"$ref":"#/components/schemas/SelfServiceSettings","default":{"enabled":false,"web_enabled":true,"telegram_enabled":true,"max_connections_per_user":5,"rate_limit_count":3,"rate_limit_window_seconds":60,"allowed_protocols":["awg","awg2"]}},"exit_nodes":{"$ref":"#/components/schemas/ExitNodesSettings","default":{"default_exit_uid":""}}},"type":"object","required":["appearance","sync","captcha","telegram","ssl"],"title":"SaveSettingsRequest"},"SelfServiceConnectionRequest":{"properties":{"server_id":{"type":"integer","title":"Server Id"},"protocol":{"type":"string","title":"Protocol","default":"awg"},"name":{"type":"string","title":"Name","default":"VPN Connection"}},"type":"object","required":["server_id"],"title":"SelfServiceConnectionRequest"},"SelfServiceSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"web_enabled":{"type":"boolean","title":"Web Enabled","default":true},"telegram_enabled":{"type":"boolean","title":"Telegram Enabled","default":true},"max_connections_per_user":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Max Connections Per User","default":5},"rate_limit_count":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Rate Limit Count","default":3},"rate_limit_window_seconds":{"type":"integer","maximum":86400.0,"minimum":1.0,"title":"Rate Limit Window Seconds","default":60},"allowed_protocols":{"items":{"type":"string"},"type":"array","title":"Allowed Protocols"}},"type":"object","title":"SelfServiceSettings"},"ServerConfigSaveRequest":{"properties":{"protocol":{"type":"string","title":"Protocol"},"config":{"type":"string","title":"Config"}},"type":"object","required":["protocol","config"],"title":"ServerConfigSaveRequest"},"ShareAuthRequest":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"ShareAuthRequest"},"ShareSetupRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","required":["enabled"],"title":"ShareSetupRequest"},"Socks5SettingsRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"socks5"},"port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","title":"Socks5SettingsRequest"},"SyncSettings":{"properties":{"remnawave_url":{"type":"string","title":"Remnawave Url","default":""},"remnawave_api_key":{"type":"string","title":"Remnawave Api Key","default":""},"remnawave_sync":{"type":"boolean","title":"Remnawave Sync","default":false},"remnawave_sync_users":{"type":"boolean","title":"Remnawave Sync Users","default":false},"remnawave_create_conns":{"type":"boolean","title":"Remnawave Create Conns","default":false},"remnawave_server_id":{"type":"integer","title":"Remnawave Server Id","default":0},"remnawave_protocol":{"type":"string","title":"Remnawave Protocol","default":"awg"}},"type":"object","title":"SyncSettings"},"TelegramSettings":{"properties":{"token":{"type":"string","title":"Token","default":""},"enabled":{"type":"boolean","title":"Enabled","default":false}},"type":"object","title":"TelegramSettings"},"ToggleConnectionRequest":{"properties":{"protocol":{"type":"string","title":"Protocol","default":"awg"},"client_id":{"type":"string","title":"Client Id","default":""},"enable":{"type":"boolean","title":"Enable","default":true}},"type":"object","title":"ToggleConnectionRequest"},"ToggleUserRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"ToggleUserRequest"},"TunnelStartRequest":{"properties":{"authtoken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authtoken"}},"type":"object","title":"TunnelStartRequest"},"UnlinkConnectionRequest":{"properties":{"server_id":{"type":"integer","title":"Server Id"},"protocol":{"type":"string","title":"Protocol","default":"awg"},"client_id":{"type":"string","title":"Client Id","default":""}},"type":"object","required":["server_id"],"title":"UnlinkConnectionRequest"},"UpdateUserRequest":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"telegramId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telegramid"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"traffic_limit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Traffic Limit","default":0},"traffic_reset_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Traffic Reset Strategy"},"expiration_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiration Date"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","title":"UpdateUserRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WgEasyImportRequest":{"properties":{"web_port":{"type":"integer","title":"Web Port","default":51821},"password":{"type":"string","title":"Password","default":""},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","default":"admin"},"client_ids":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Client Ids"},"target":{"type":"string","title":"Target","default":"auto"}},"type":"object","title":"WgEasyImportRequest"},"WgEasyPreviewRequest":{"properties":{"web_port":{"type":"integer","title":"Web Port","default":51821},"password":{"type":"string","title":"Password","default":""},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","default":"admin"}},"type":"object","title":"WgEasyPreviewRequest"}}},"tags":[{"name":"System Templates","description":"HTML pages served to browsers. These return Jinja-rendered templates rather than a JSON contract — they are not part of the public API and are listed here only for completeness."},{"name":"Authentication","description":"Login, captcha, and session lifecycle."},{"name":"Servers","description":"Server inventory, lifecycle and host-level operations (add, edit, delete, ping, reorder, reboot, clear, stats, status check)."},{"name":"Protocols","description":"Install, uninstall, container start/stop and raw config editing for the protocols/services on a server (AWG, Xray, WireGuard, Telemt, AmneziaDNS, AdGuard Home, SOCKS5, Exit node)."},{"name":"Connections","description":"Per-protocol VPN client connections on a server (CRUD plus enable/disable and config retrieval)."},{"name":"Users","description":"Panel user accounts and the connections assigned to them."},{"name":"Self-service","description":"Endpoints called by a regular user for their own data (the /my surface)."},{"name":"Sharing","description":"Public, token-protected configuration sharing for end users — no panel session required."},{"name":"Settings","description":"Panel-wide settings, Telegram bot, Remnawave sync, JSON backup/restore."},{"name":"API Tokens","description":"Bearer tokens for external integrations. Send the token in `Authorization: Bearer <token>`; tokens have admin-equivalent rights and are tied to the admin user that created them."}]}