{"openapi":"3.1.0","info":{"title":"NullVPN API","version":"1.0.0"},"paths":{"/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/signup":{"post":{"tags":["auth"],"summary":"Signup","operationId":"signup_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/meta-capi":{"post":{"tags":["auth"],"summary":"Meta Capi Beacon","description":"Browser beacon when facebook.com is blocked (China). No email on this path.","operationId":"meta_capi_beacon_auth_meta_capi_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaCapiBeacon"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/waitlist":{"post":{"tags":["auth"],"summary":"Join Waitlist","operationId":"join_waitlist_auth_waitlist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/waitlist/confirm":{"post":{"tags":["auth"],"summary":"Confirm Waitlist","operationId":"confirm_waitlist_auth_waitlist_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","operationId":"verify_email_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/resend-verification":{"post":{"tags":["auth"],"summary":"Resend Verification","operationId":"resend_verification_auth_resend_verification_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","operationId":"forgot_password_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}}}},"/devices":{"get":{"tags":["devices"],"summary":"List Devices","operationId":"list_devices_devices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DeviceOut"},"type":"array","title":"Response List Devices Devices Get"}}}}}},"post":{"tags":["devices"],"summary":"Add Device","operationId":"add_device_devices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/devices/summary":{"get":{"tags":["devices"],"summary":"Device Summary","operationId":"device_summary_devices_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSummaryOut"}}}}}}},"/devices/router-config":{"post":{"tags":["devices"],"summary":"Create Router Config","description":"Generate a vanilla WireGuard .conf for routers (DD-WRT/OpenWrt). Admin-only\nwhile in validation; planned to open to Pro (whole-LAN tunneling only fits\nthe fair-use unlimited tier). The keypair is generated server-side because\nrouter GUIs cannot do the app's keypair-exchange flow; the private key is\nreturned once and not stored.","operationId":"create_router_config_devices_router_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/devices/{device_id}":{"delete":{"tags":["devices"],"summary":"Remove Device","operationId":"remove_device_devices__device_id__delete","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"integer","title":"Device Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/servers/nodes":{"get":{"tags":["servers"],"summary":"List Nodes","description":"Returns customer-display node metadata for apps and dashboards.\nThis is not a provisioning endpoint and never includes origin IPs or relays.","operationId":"list_nodes_servers_nodes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ServerNodeOut"},"type":"array","title":"Response List Nodes Servers Nodes Get"}}}}}}},"/servers":{"get":{"tags":["servers"],"summary":"List Servers","description":"Returns available VPN servers the user may connect to.\nFree plan: Singapore node only.\nAll paid plans: all active servers.\nReal server IPs are never included — clients see relay endpoints only.","operationId":"list_servers_servers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ServerOut"},"type":"array","title":"Response List Servers Servers Get"}}}}}}},"/bandwidth":{"get":{"tags":["bandwidth"],"summary":"My Bandwidth","operationId":"my_bandwidth_bandwidth_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BandwidthOut"}}}}}}},"/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout","operationId":"create_checkout_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/topup":{"post":{"tags":["billing"],"summary":"Create Topup Checkout","description":"Buy data on top of this month's plan cap.\n\nA one-off Stripe payment, not a subscription change: mode=\"payment\" so it does\nnot touch the customer's existing subscription. The credit is applied by\n_on_topup_completed() when the webhook lands, keyed on metadata.kind.","operationId":"create_topup_checkout_billing_topup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/change-plan":{"post":{"tags":["billing"],"summary":"Change Plan","operationId":"change_plan_billing_change_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/portal":{"get":{"tags":["billing"],"summary":"Billing Portal","description":"Returns Stripe customer portal URL for managing payment method / cancellation.","operationId":"billing_portal_billing_portal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing/crypto/invoices":{"post":{"tags":["crypto billing"],"summary":"Create Invoice","operationId":"create_invoice_billing_crypto_invoices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CryptoInvoiceCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CryptoInvoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/crypto/invoices/{invoice_id}":{"get":{"tags":["crypto billing"],"summary":"Get Invoice","operationId":"get_invoice_billing_crypto_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CryptoInvoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/crypto/invoices/{invoice_id}/tx":{"post":{"tags":["crypto billing"],"summary":"Submit Tx","operationId":"submit_tx_billing_crypto_invoices__invoice_id__tx_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CryptoInvoiceTxSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CryptoInvoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/crypto/admin/poll":{"post":{"tags":["crypto billing"],"summary":"Admin Poll Crypto Payments","operationId":"admin_poll_crypto_payments_billing_crypto_admin_poll_post","responses":{"204":{"description":"Successful Response"}}}},"/billing/crypto/admin/invoices":{"get":{"tags":["crypto billing"],"summary":"Admin List Crypto Invoices","operationId":"admin_list_crypto_invoices_billing_crypto_admin_invoices_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CryptoInvoiceOut"},"title":"Response Admin List Crypto Invoices Billing Crypto Admin Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/crypto/admin/invoices/{invoice_id}/mark-paid":{"post":{"tags":["crypto billing"],"summary":"Admin Mark Invoice Paid","operationId":"admin_mark_invoice_paid_billing_crypto_admin_invoices__invoice_id__mark_paid_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CryptoInvoiceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/me":{"get":{"tags":["referrals"],"summary":"My Referral Stats","operationId":"my_referral_stats_referrals_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralStatsOut"}}}}}}},"/status":{"get":{"tags":["status"],"summary":"System Status","operationId":"system_status_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemStatusOut"}}}}}}},"/admin/invite-codes":{"get":{"tags":["admin"],"summary":"List Invite Codes","operationId":"list_invite_codes_admin_invite_codes_get","parameters":[{"name":"include_consumed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Consumed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteCodesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Invite Codes","operationId":"create_invite_codes_admin_invite_codes_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateInviteCodesRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteCodesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invite-codes/{invite_id}":{"delete":{"tags":["admin"],"summary":"Delete Invite Code","operationId":"delete_invite_code_admin_invite_codes__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"integer","title":"Invite Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/waitlist-leads":{"get":{"tags":["admin"],"summary":"List Waitlist Leads","operationId":"list_waitlist_leads_admin_waitlist_leads_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWaitlistLeadsOut"}}}}}}},"/admin/waitlist-leads/{lead_id}":{"delete":{"tags":["admin"],"summary":"Delete Waitlist Lead","operationId":"delete_waitlist_lead_admin_waitlist_leads__lead_id__delete","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users":{"get":{"tags":["admin"],"summary":"List Users","operationId":"list_users_admin_users_get","parameters":[{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Page Size"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUsersPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create User","operationId":"create_user_admin_users_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/export":{"get":{"tags":["admin"],"summary":"Export Users Csv","operationId":"export_users_csv_admin_users_export_get","parameters":[{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/devices/config":{"post":{"tags":["admin"],"summary":"Create User Config","operationId":"create_user_config_admin_users__user_id__devices_config_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/devices/tcp-config":{"post":{"tags":["admin"],"summary":"Create User Tcp Config","operationId":"create_user_tcp_config_admin_users__user_id__devices_tcp_config_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/devices/tcp-link":{"post":{"tags":["admin"],"summary":"Create User Tcp Link","operationId":"create_user_tcp_link_admin_users__user_id__devices_tcp_link_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/devices/tcp-clash":{"post":{"tags":["admin"],"summary":"Create User Tcp Clash Config","operationId":"create_user_tcp_clash_config_admin_users__user_id__devices_tcp_clash_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/devices/{device_id}":{"patch":{"tags":["admin"],"summary":"Rename User Device","operationId":"rename_user_device_admin_users__user_id__devices__device_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"device_id","in":"path","required":true,"schema":{"type":"integer","title":"Device Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRenameDeviceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDeviceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Revoke User Device","operationId":"revoke_user_device_admin_users__user_id__devices__device_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"device_id","in":"path","required":true,"schema":{"type":"integer","title":"Device Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/suspend":{"post":{"tags":["admin"],"summary":"Suspend User","operationId":"suspend_user_admin_users__user_id__suspend_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSuspendRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/reactivate":{"post":{"tags":["admin"],"summary":"Reactivate User","operationId":"reactivate_user_admin_users__user_id__reactivate_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/change-plan":{"post":{"tags":["admin"],"summary":"Change Plan","operationId":"change_plan_admin_users__user_id__change_plan_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChangePlanRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}":{"delete":{"tags":["admin"],"summary":"Delete User","operationId":"delete_user_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/servers/health":{"get":{"tags":["admin"],"summary":"Servers Health","operationId":"servers_health_admin_servers_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ServerHealthOut"},"type":"array","title":"Response Servers Health Admin Servers Health Get"}}}}}}},"/admin/revenue":{"get":{"tags":["admin"],"summary":"Revenue Overview","operationId":"revenue_overview_admin_revenue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/database/overview":{"get":{"tags":["admin"],"summary":"Database Overview","operationId":"database_overview_admin_database_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/relays":{"get":{"tags":["admin"],"summary":"List Relays","description":"List all relay records, optionally filtered by server.","operationId":"list_relays_admin_relays_get","parameters":[{"name":"server_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelayOut"},"title":"Response List Relays Admin Relays Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/relays/probe":{"post":{"tags":["admin"],"summary":"Probe Relays Now","description":"On-demand live datapath probe (SSH + ICMP + origin peer attribution) for all\nactive/blocked relays. Updates the denormalized last_* fields and returns the\ninstantaneous verdict — the admin 'Probe now' button. Does NOT change relay.status.","operationId":"probe_relays_now_admin_relays_probe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/relays/{relay_id}/rotate":{"post":{"tags":["admin"],"summary":"Rotate Relay","description":"Provision a replacement relay then destroy the old one.\nReturns 202 immediately — rotation happens in the background (~3 min).","operationId":"rotate_relay_admin_relays__relay_id__rotate_post","parameters":[{"name":"relay_id","in":"path","required":true,"schema":{"type":"integer","title":"Relay Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/servers/{server_id}/provision-relay":{"post":{"tags":["admin"],"summary":"Provision Server Relay","description":"Manually provision an additional relay for a server. Returns 202 immediately.","operationId":"provision_server_relay_admin_servers__server_id__provision_relay_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/maintenance":{"post":{"tags":["admin"],"summary":"Set Maintenance","operationId":"set_maintenance_admin_maintenance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceModeRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routes":{"get":{"tags":["admin"],"summary":"Admin List Routes","description":"Show which bundle each profile is pinned to, plus what is available.","operationId":"admin_list_routes_admin_routes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/routes/activate":{"post":{"tags":["admin"],"summary":"Admin Activate Route Bundle","description":"Point a profile at a bundle version, or disable it entirely.\n\nValidates the target before pinning, and refuses a large jump from the\ncurrently-active list. The LAX exit grew its address set by orders of\nmagnitude in a single cycle; a delta gate catches that whole class of\nmistake without needing to know which CDN was involved.","operationId":"admin_activate_route_bundle_admin_routes_activate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActivateRoutesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/router/claim":{"post":{"tags":["router"],"summary":"Create Router Claim","description":"Issue a short-lived, single-use claim token. The customer pastes the returned command into\ntheir DD-WRT router (Administration -> Commands, or SSH) to self-provision.","operationId":"create_router_claim_router_claim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterClaimOut"}}}}}}},"/router/provision":{"post":{"tags":["router"],"summary":"Provision Router","description":"Called by the router's bootstrap script with a claim token + its locally-generated pubkey.\nRegisters that pubkey as a peer on every allowed exit-server (option B: routers ride the same\nwg-app obf interface as the app) and returns the per-exit obf config + a long-lived device token.\nOne router pubkey across many exits still counts as ONE physical device.","operationId":"provision_router_router_provision_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterProvisionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterProvisionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/router/bootstrap":{"get":{"tags":["router"],"summary":"Router Bootstrap","description":"The shell installer a customer pipes into their DD-WRT router. Public (does nothing on its\nown — it requires a valid claim token as its argument to actually provision).","operationId":"router_bootstrap_router_bootstrap_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/router/refresh":{"post":{"tags":["router"],"summary":"Refresh Router","description":"Called periodically / on boot by a provisioned router using its long-lived device token.\nReturns the current exit config (picks up plan upgrades + relay rotations), or status=suspended\nif the subscription has lapsed / the device was revoked — so the router can tear down.","operationId":"refresh_router_router_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterRefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterRefreshOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routes/index":{"get":{"tags":["routes"],"summary":"Routes Index","description":"Small pointer document. This is the poll target — clients fetch it on a\nshort cache and only pull a payload when the version actually moves.","operationId":"routes_index_routes_index_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/routes/{profile}/{version}":{"get":{"tags":["routes"],"summary":"Routes Bundle","description":"Immutable, content-addressed payload.\n\nCached forever because a given (profile, version) never changes — a new list\nis a new version. That is what makes edge caching safe and keeps this off\nthe origin's hot path.","operationId":"routes_bundle_routes__profile___version__get","parameters":[{"name":"profile","in":"path","required":true,"schema":{"type":"string","title":"Profile"}},{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/smart-routing/china-domains":{"get":{"tags":["smart-routing"],"summary":"China Domains","operationId":"china_domains_smart_routing_china_domains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/smart-routing/geo-cidrs":{"get":{"tags":["smart-routing"],"summary":"Geo Cidrs","operationId":"geo_cidrs_smart_routing_geo_cidrs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AdminActivateRoutesRequest":{"properties":{"profile":{"type":"string","maxLength":64,"minLength":1,"title":"Profile"},"version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Version"},"disabled":{"type":"boolean","title":"Disabled","default":false},"percent":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Percent","default":100},"cohort_salt":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Cohort Salt"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["profile"],"title":"AdminActivateRoutesRequest"},"AdminChangePlanRequest":{"properties":{"plan":{"type":"string","title":"Plan"}},"type":"object","required":["plan"],"title":"AdminChangePlanRequest"},"AdminCreateConfigRequest":{"properties":{"device_name":{"type":"string","title":"Device Name","default":"Admin managed device"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"}},"type":"object","title":"AdminCreateConfigRequest"},"AdminCreateInviteCodesRequest":{"properties":{"count":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Count","default":1},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"AdminCreateInviteCodesRequest"},"AdminCreateUserRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"plan":{"type":"string","title":"Plan","default":"standard"},"status":{"type":"string","title":"Status","default":"active"},"is_admin":{"type":"boolean","title":"Is Admin","default":false}},"type":"object","required":["email"],"title":"AdminCreateUserRequest"},"AdminCreateUserResponse":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"plan":{"type":"string","title":"Plan"},"billing_cycle":{"type":"string","title":"Billing Cycle","default":"monthly"},"billing_provider":{"type":"string","title":"Billing Provider","default":"stripe"},"status":{"type":"string","title":"Status"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"crypto_paid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Crypto Paid Until"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_customer_present":{"type":"boolean","title":"Stripe Customer Present","default":false},"stripe_subscription_present":{"type":"boolean","title":"Stripe Subscription Present","default":false},"crypto_entitlement_present":{"type":"boolean","title":"Crypto Entitlement Present","default":false},"billing_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing State"},"referral_code":{"type":"string","title":"Referral Code"},"is_admin":{"type":"boolean","title":"Is Admin"},"admin_created":{"type":"boolean","title":"Admin Created","default":false},"email_verified":{"type":"boolean","title":"Email Verified","default":false},"paid_welcome_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid Welcome Sent At"},"trial_setup_reminder_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Setup Reminder Sent At"},"trial_time_reminder_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Time Reminder Sent At"},"trial_usage_reminder_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Usage Reminder Sent At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"gb_used_this_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gb Used This Month"},"gb_cap_this_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gb Cap This Month"},"gb_purchased_this_month":{"type":"number","title":"Gb Purchased This Month","default":0.0},"bandwidth_suspended":{"type":"boolean","title":"Bandwidth Suspended","default":false},"devices":{"items":{"$ref":"#/components/schemas/AdminDeviceOut"},"type":"array","title":"Devices"},"temporary_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Password"}},"type":"object","required":["id","email","plan","status","trial_ends_at","stripe_customer_id","referral_code","is_admin","created_at"],"title":"AdminCreateUserResponse"},"AdminDeviceOut":{"properties":{"id":{"type":"integer","title":"Id"},"device_name":{"type":"string","title":"Device Name"},"pubkey_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pubkey Hash"},"server_id":{"type":"integer","title":"Server Id"},"server_location":{"type":"string","title":"Server Location"},"ip_assigned":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Assigned"},"protocol":{"type":"string","title":"Protocol","default":"udp"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"online":{"type":"boolean","title":"Online","default":false}},"type":"object","required":["id","device_name","server_id","server_location","created_at","last_seen_at"],"title":"AdminDeviceOut"},"AdminInviteCodeOut":{"properties":{"id":{"type":"integer","title":"Id"},"code":{"type":"string","title":"Code"},"referral_link":{"type":"string","title":"Referral Link"},"active":{"type":"boolean","title":"Active"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"created_by_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By User Id"},"consumed_by_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Consumed By User Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"consumed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consumed At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"reminder_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reminder Sent At"}},"type":"object","required":["id","code","referral_link","active"],"title":"AdminInviteCodeOut"},"AdminInviteCodesOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminInviteCodeOut"},"type":"array","title":"Items"},"capacity":{"$ref":"#/components/schemas/CapacityOut"},"open_invites":{"type":"integer","title":"Open Invites"},"available_to_generate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Available To Generate"}},"type":"object","required":["items","capacity","open_invites","available_to_generate"],"title":"AdminInviteCodesOut"},"AdminRenameDeviceRequest":{"properties":{"device_name":{"type":"string","title":"Device Name"}},"type":"object","required":["device_name"],"title":"AdminRenameDeviceRequest"},"AdminSuspendRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"AdminSuspendRequest"},"AdminUserOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"plan":{"type":"string","title":"Plan"},"billing_cycle":{"type":"string","title":"Billing Cycle","default":"monthly"},"billing_provider":{"type":"string","title":"Billing Provider","default":"stripe"},"status":{"type":"string","title":"Status"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"crypto_paid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Crypto Paid Until"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_customer_present":{"type":"boolean","title":"Stripe Customer Present","default":false},"stripe_subscription_present":{"type":"boolean","title":"Stripe Subscription Present","default":false},"crypto_entitlement_present":{"type":"boolean","title":"Crypto Entitlement Present","default":false},"billing_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing State"},"referral_code":{"type":"string","title":"Referral Code"},"is_admin":{"type":"boolean","title":"Is Admin"},"admin_created":{"type":"boolean","title":"Admin Created","default":false},"email_verified":{"type":"boolean","title":"Email Verified","default":false},"paid_welcome_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid Welcome Sent At"},"trial_setup_reminder_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Setup Reminder Sent At"},"trial_time_reminder_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Time Reminder Sent At"},"trial_usage_reminder_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Usage Reminder Sent At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"gb_used_this_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gb Used This Month"},"gb_cap_this_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gb Cap This Month"},"gb_purchased_this_month":{"type":"number","title":"Gb Purchased This Month","default":0.0},"bandwidth_suspended":{"type":"boolean","title":"Bandwidth Suspended","default":false},"devices":{"items":{"$ref":"#/components/schemas/AdminDeviceOut"},"type":"array","title":"Devices"}},"type":"object","required":["id","email","plan","status","trial_ends_at","stripe_customer_id","referral_code","is_admin","created_at"],"title":"AdminUserOut"},"AdminUsersPageOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminUserOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"pages":{"type":"integer","title":"Pages"},"sort":{"type":"string","title":"Sort"},"direction":{"type":"string","title":"Direction"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","default":{}}},"type":"object","required":["items","total","page","page_size","pages","sort","direction"],"title":"AdminUsersPageOut"},"AdminWaitlistLeadOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"source":{"type":"string","title":"Source"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign"},"utm_campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign Name"},"utm_adset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Adset"},"utm_adset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Adset Name"},"utm_ad":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Ad"},"utm_ad_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Ad Name"},"fbclid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbclid"},"confirmed":{"type":"boolean","title":"Confirmed","default":false},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"notified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Notified At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"open_invite":{"anyOf":[{"$ref":"#/components/schemas/AdminInviteCodeOut"},{"type":"null"}]}},"type":"object","required":["id","email","source"],"title":"AdminWaitlistLeadOut"},"AdminWaitlistLeadsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminWaitlistLeadOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AdminWaitlistLeadsOut"},"BandwidthOut":{"properties":{"month":{"type":"string","title":"Month"},"bytes_used":{"type":"integer","title":"Bytes Used"},"cap_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Bytes"},"gb_used":{"type":"number","title":"Gb Used"},"gb_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gb Cap"},"percent_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Used"},"soft_cap_exceeded":{"type":"boolean","title":"Soft Cap Exceeded","default":false},"soft_cap_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Soft Cap Gb"},"suspended":{"type":"boolean","title":"Suspended"},"paused":{"type":"boolean","title":"Paused","default":false}},"type":"object","required":["month","bytes_used","cap_bytes","gb_used","gb_cap","percent_used","suspended"],"title":"BandwidthOut"},"CapacityOut":{"properties":{"cap":{"type":"integer","title":"Cap"},"used":{"type":"integer","title":"Used"},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining"},"closed":{"type":"boolean","title":"Closed"}},"type":"object","required":["cap","used","remaining","closed"],"title":"CapacityOut"},"CheckoutRequest":{"properties":{"plan":{"type":"string","title":"Plan"},"billing":{"type":"string","title":"Billing"}},"type":"object","required":["plan","billing"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"CheckoutResponse"},"CryptoInvoiceCreateRequest":{"properties":{"plan":{"type":"string","title":"Plan"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"}},"type":"object","required":["plan","asset","network"],"title":"CryptoInvoiceCreateRequest"},"CryptoInvoiceOut":{"properties":{"id":{"type":"integer","title":"Id"},"invoice_code":{"type":"string","title":"Invoice Code"},"plan":{"type":"string","title":"Plan"},"billing_cycle":{"type":"string","title":"Billing Cycle"},"asset":{"type":"string","title":"Asset"},"network":{"type":"string","title":"Network"},"usd_cents":{"type":"integer","title":"Usd Cents"},"amount_atomic":{"type":"integer","title":"Amount Atomic"},"decimals":{"type":"integer","title":"Decimals"},"display_amount":{"type":"string","title":"Display Amount"},"pay_address":{"type":"string","title":"Pay Address"},"status":{"type":"string","title":"Status"},"required_confirmations":{"type":"integer","title":"Required Confirmations"},"observed_confirmations":{"type":"integer","title":"Observed Confirmations"},"detected_tx_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Tx Hash"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"access_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Access Expires At"},"manual_review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manual Review Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","invoice_code","plan","billing_cycle","asset","network","usd_cents","amount_atomic","decimals","display_amount","pay_address","status","required_confirmations","observed_confirmations","expires_at","created_at"],"title":"CryptoInvoiceOut"},"CryptoInvoiceTxSubmitRequest":{"properties":{"tx_hash":{"type":"string","title":"Tx Hash"}},"type":"object","required":["tx_hash"],"title":"CryptoInvoiceTxSubmitRequest"},"DeviceCreateRequest":{"properties":{"device_name":{"type":"string","title":"Device Name"},"pubkey":{"type":"string","title":"Pubkey"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"}},"type":"object","required":["device_name","pubkey"],"title":"DeviceCreateRequest"},"DeviceOut":{"properties":{"id":{"type":"integer","title":"Id"},"device_name":{"type":"string","title":"Device Name"},"pubkey":{"type":"string","title":"Pubkey"},"ip_assigned":{"type":"string","title":"Ip Assigned"},"server_id":{"type":"integer","title":"Server Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"relay_endpoints":{"anyOf":[{"items":{"$ref":"#/components/schemas/RelayEndpoint"},"type":"array"},{"type":"null"}],"title":"Relay Endpoints"},"server_pubkey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Pubkey"},"dns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns"},"awg_jc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg Jc"},"awg_jmin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg Jmin"},"awg_jmax":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg Jmax"},"awg_s1":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg S1"},"awg_s2":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg S2"},"awg_h1":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg H1"},"awg_h2":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg H2"},"awg_h3":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg H3"},"awg_h4":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Awg H4"},"vpn_config":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vpn Config"}},"type":"object","required":["id","device_name","pubkey","ip_assigned","server_id","created_at","last_seen_at"],"title":"DeviceOut"},"DeviceSummaryOut":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"type":"integer","title":"Limit"},"available":{"type":"integer","title":"Available"},"devices":{"items":{"$ref":"#/components/schemas/DeviceOut"},"type":"array","title":"Devices"}},"type":"object","required":["used","limit","available","devices"],"title":"DeviceSummaryOut"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MaintenanceModeRequest":{"properties":{"active":{"type":"boolean","title":"Active"},"message":{"type":"string","title":"Message","default":"We are performing scheduled maintenance. Please wait."},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"estimated_duration_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Duration Min"}},"type":"object","required":["active"],"title":"MaintenanceModeRequest"},"MessageResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"MessageResponse"},"MetaCapiBeacon":{"properties":{"event_name":{"type":"string","title":"Event Name"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"},"event_source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Source Url"},"content_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Name"},"fbp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbp"},"fbc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbc"}},"type":"object","required":["event_name"],"title":"MetaCapiBeacon"},"ReferralStatsOut":{"properties":{"referral_code":{"type":"string","title":"Referral Code"},"referral_link":{"type":"string","title":"Referral Link"},"total_referrals":{"type":"integer","title":"Total Referrals"},"card_linked":{"type":"integer","title":"Card Linked"},"reward_given":{"type":"boolean","title":"Reward Given"},"reward_given_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reward Given At"}},"type":"object","required":["referral_code","referral_link","total_referrals","card_linked","reward_given","reward_given_at"],"title":"ReferralStatsOut"},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"RelayEndpoint":{"properties":{"ip":{"type":"string","title":"Ip"},"port":{"type":"integer","title":"Port"},"priority":{"type":"integer","title":"Priority"}},"type":"object","required":["ip","port","priority"],"title":"RelayEndpoint"},"RelayOut":{"properties":{"id":{"type":"integer","title":"Id"},"server_id":{"type":"integer","title":"Server Id"},"public_ip":{"type":"string","title":"Public Ip"},"port":{"type":"integer","title":"Port"},"vultr_instance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vultr Instance Id"},"status":{"type":"string","title":"Status"},"health_fails":{"type":"integer","title":"Health Fails"},"priority":{"type":"integer","title":"Priority"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"last_checked":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked"},"last_loss_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Loss Pct"},"last_rtt_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Rtt Ms"},"fresh_peers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fresh Peers"},"datapath_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datapath Status"},"datapath_checked":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datapath Checked"}},"type":"object","required":["id","server_id","public_ip","port","vultr_instance_id","status","health_fails","priority","created_at","last_checked"],"title":"RelayOut"},"ResendVerificationRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ResendVerificationRequest"},"ResetPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"code":{"type":"string","title":"Code"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","code","password"],"title":"ResetPasswordRequest"},"RouterClaimOut":{"properties":{"claim_token":{"type":"string","title":"Claim Token"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"},"bootstrap_command":{"type":"string","title":"Bootstrap Command"}},"type":"object","required":["claim_token","expires_in_seconds","bootstrap_command"],"title":"RouterClaimOut"},"RouterConfigRequest":{"properties":{"device_name":{"type":"string","title":"Device Name","default":"Router"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"}},"type":"object","title":"RouterConfigRequest"},"RouterExitConfig":{"properties":{"key":{"type":"string","title":"Key"},"location":{"type":"string","title":"Location"},"country_code":{"type":"string","title":"Country Code"},"relay_endpoint":{"type":"string","title":"Relay Endpoint"},"server_pubkey":{"type":"string","title":"Server Pubkey"},"inner_ip":{"type":"string","title":"Inner Ip"},"dns_ip":{"type":"string","title":"Dns Ip"},"awg":{"type":"object","title":"Awg"}},"type":"object","required":["key","location","country_code","relay_endpoint","server_pubkey","inner_ip","dns_ip","awg"],"title":"RouterExitConfig"},"RouterProvisionOut":{"properties":{"device_token":{"type":"string","title":"Device Token"},"plan":{"type":"string","title":"Plan"},"exits":{"items":{"$ref":"#/components/schemas/RouterExitConfig"},"type":"array","title":"Exits"}},"type":"object","required":["device_token","plan","exits"],"title":"RouterProvisionOut"},"RouterProvisionRequest":{"properties":{"claim_token":{"type":"string","title":"Claim Token"},"pubkey":{"type":"string","title":"Pubkey"},"router_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Router Id"}},"type":"object","required":["claim_token","pubkey"],"title":"RouterProvisionRequest"},"RouterRefreshOut":{"properties":{"status":{"type":"string","title":"Status"},"plan":{"type":"string","title":"Plan"},"exits":{"items":{"$ref":"#/components/schemas/RouterExitConfig"},"type":"array","title":"Exits"}},"type":"object","required":["status","plan","exits"],"title":"RouterRefreshOut"},"RouterRefreshRequest":{"properties":{"device_token":{"type":"string","title":"Device Token"}},"type":"object","required":["device_token"],"title":"RouterRefreshRequest"},"ServerHealthOut":{"properties":{"server_id":{"type":"integer","title":"Server Id"},"name":{"type":"string","title":"Name"},"location":{"type":"string","title":"Location"},"status":{"type":"string","title":"Status"},"cpu_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Percent"},"ram_used_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ram Used Mb"},"ram_total_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ram Total Mb"},"disk_used_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Used Percent"},"active_peers":{"type":"integer","title":"Active Peers"},"total_peers":{"type":"integer","title":"Total Peers"},"load_avg_1m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Load Avg 1M"},"recorded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Recorded At"},"wg_interface":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wg Interface"},"obfuscated":{"type":"boolean","title":"Obfuscated","default":false},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"wg_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wg Port"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"ip_pool_cidr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Pool Cidr"},"dns_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Ip"},"active_relays":{"type":"integer","title":"Active Relays","default":0},"total_relays":{"type":"integer","title":"Total Relays","default":0}},"type":"object","required":["server_id","name","location","status","cpu_percent","ram_used_mb","ram_total_mb","disk_used_percent","active_peers","total_peers","load_avg_1m","recorded_at"],"title":"ServerHealthOut"},"ServerNodeOut":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"location":{"type":"string","title":"Location"},"country_code":{"type":"string","title":"Country Code"},"status":{"type":"string","title":"Status"},"live":{"type":"boolean","title":"Live"},"coming_soon":{"type":"boolean","title":"Coming Soon","default":false}},"type":"object","required":["name","location","country_code","status","live"],"title":"ServerNodeOut"},"ServerOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"location":{"type":"string","title":"Location"},"country_code":{"type":"string","title":"Country Code"},"wg_port":{"type":"integer","title":"Wg Port"},"public_key":{"type":"string","title":"Public Key"},"status":{"type":"string","title":"Status"},"relay_endpoints":{"items":{"$ref":"#/components/schemas/RelayEndpoint"},"type":"array","title":"Relay Endpoints","default":[]}},"type":"object","required":["id","name","location","country_code","wg_port","public_key","status"],"title":"ServerOut"},"ServerStatusOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"location":{"type":"string","title":"Location"},"status":{"type":"string","title":"Status"},"active_peers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Peers"}},"type":"object","required":["id","name","location","status"],"title":"ServerStatusOut"},"SignupRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"referral_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referral Code"}},"type":"object","required":["email","password"],"title":"SignupRequest"},"SystemStatusOut":{"properties":{"maintenance":{"type":"boolean","title":"Maintenance"},"maintenance_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maintenance Message"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"estimated_duration_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Duration Min"},"capacity":{"$ref":"#/components/schemas/CapacityOut"},"servers":{"items":{"$ref":"#/components/schemas/ServerStatusOut"},"type":"array","title":"Servers"}},"type":"object","required":["maintenance","capacity","servers"],"title":"SystemStatusOut"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenResponse"},"TopupRequest":{"properties":{"pack":{"type":"string","title":"Pack"}},"type":"object","required":["pack"],"title":"TopupRequest"},"UserOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"plan":{"type":"string","title":"Plan"},"billing_cycle":{"type":"string","title":"Billing Cycle"},"billing_provider":{"type":"string","title":"Billing Provider","default":"stripe"},"status":{"type":"string","title":"Status"},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"crypto_paid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Crypto Paid Until"},"has_stripe_subscription":{"type":"boolean","title":"Has Stripe Subscription","default":false},"has_crypto_entitlement":{"type":"boolean","title":"Has Crypto Entitlement","default":false},"referral_code":{"type":"string","title":"Referral Code"},"is_admin":{"type":"boolean","title":"Is Admin"},"admin_created":{"type":"boolean","title":"Admin Created","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","plan","billing_cycle","status","trial_ends_at","referral_code","is_admin","created_at"],"title":"UserOut"},"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"},"VerifyEmailRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"code":{"type":"string","title":"Code"}},"type":"object","required":["email","code"],"title":"VerifyEmailRequest"},"WaitlistConfirmRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"code":{"type":"string","title":"Code"}},"type":"object","required":["email","code"],"title":"WaitlistConfirmRequest"},"WaitlistConfirmResponse":{"properties":{"message":{"type":"string","title":"Message"},"source":{"type":"string","title":"Source"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"},"already_confirmed":{"type":"boolean","title":"Already Confirmed","default":false}},"type":"object","required":["message","source"],"title":"WaitlistConfirmResponse"},"WaitlistRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","default":"capacity_gate"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign"},"utm_campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign Name"},"utm_adset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Adset"},"utm_adset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Adset Name"},"utm_ad":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Ad"},"utm_ad_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Ad Name"},"fbclid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbclid"},"fbp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbp"},"fbc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbc"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"},"landing_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Url"}},"type":"object","required":["email"],"title":"WaitlistRequest"}}}}