{"openapi":"3.1.0","info":{"title":"1up-servers public API","version":"1.136.0"},"servers":[{"url":"https://1up-servers.com/api/v1"}],"externalDocs":{"description":"Help centre","url":"https://1up-servers.com/en/help/"},"tags":[{"name":"access","description":"Invitations, members and roles of a shared server"},{"name":"account","description":"The profile, preferences, terms, data export and deletion of the signed-in account"},{"name":"account-security","description":"Password, two-factor authentication, backup codes and sessions of the account"},{"name":"ads","description":"The ad placements and the session bonus a Free server earns"},{"name":"assistant","description":"The AI assistant Pixel and Bit: whether it shows for this visitor, and one message in with its answer, cards and quick replies"},{"name":"auth","description":"Sign-in, sign-out, the session, the csrf token, email verification and password reset"},{"name":"backups","description":"Backups of a server and their downloads"},{"name":"billing","description":"Plans, checkout, add-ons, coupons, referrals, invoices and the Stripe webhook"},{"name":"catalog","description":"The published catalog of games, regions, plans and add-ons, and the versions each game can run"},{"name":"console","description":"The live console and the command catalogue of a server"},{"name":"databases","description":"The MariaDB of a server: state, password, rotation and the server.cfg line"},{"name":"discord","description":"The interactions endpoint of the Discord bot"},{"name":"discord-reward","description":"The reward for joining the Discord community"},{"name":"files","description":"The file manager and SFTP access of a server"},{"name":"flags","description":"The feature flags that apply to the caller"},{"name":"free-tier","description":"The Free allowance of the account and what it spent"},{"name":"integrations","description":"The Discord webhook of a server"},{"name":"invoicing","description":"The callback of the fiscal invoicing provider"},{"name":"legal","description":"Content reports and contract withdrawals that need no account"},{"name":"mcp","description":"The read-only Model Context Protocol server for AI agents (Streamable HTTP, JSON responses, no session): games, requirements, plans and prices, the Free tier, public servers, status and guides"},{"name":"meta","description":"The health probe and this document"},{"name":"network","description":"Address, subdomain, custom domain and Bedrock access of a server"},{"name":"notifications","description":"The in-panel notifications of the account"},{"name":"oauth","description":"Sign-in and account linking through Discord and Google"},{"name":"players","description":"Players, whitelist, bans and operators of a server"},{"name":"plugins","description":"Plugins, mods and modpacks of a server"},{"name":"public","description":"Read-only data anyone may fetch without an account: games, plans, public servers, counters, status, the Free hourglass and the blog"},{"name":"restores","description":"Restoring a server from one of its backups"},{"name":"schedule","description":"Scheduled restarts, backups and commands of a server"},{"name":"servers","description":"Create, list, start, stop and delete game servers, and their public listing"},{"name":"settings","description":"The game settings and configuration files of a server"},{"name":"signup","description":"The steps of the account creation wizard"},{"name":"statistics","description":"Resource usage, player counts and events of a server"},{"name":"support","description":"Support tickets and their attachments"},{"name":"worlds","description":"Worlds of a server: upload, generate, switch and download"}],"components":{"securitySchemes":{"sessionCookie":{"type":"apiKey","in":"cookie","name":"__Host-1up_session","description":"The httpOnly session cookie the sign-in sets for the browser"},"csrfToken":{"type":"apiKey","in":"header","name":"x-csrf-token","description":"The token GET /auth/csrf returns, echoed on every state-changing request next to the __Host-1up_csrf cookie"}}},"paths":{"/health":{"get":{"operationId":"getHealth","summary":"Report that the process is up and the version it runs","tags":["meta"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]},"version":{"type":"string"}},"required":["status","version"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/catalog":{"get":{"operationId":"getCatalog","summary":"Serve the published catalog as one document: games, regions, plans and add-ons","tags":["catalog"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"games":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"coverUrl":{"type":["string","null"]},"iconUrl":{"type":["string","null"]},"minRamMb":{"type":"integer","minimum":0},"recommendedRamMb":{"type":"integer","minimum":0},"diskMb":{"type":"integer","minimum":0},"ports":{"type":"array","items":{"type":"string"}},"estimatedPingMs":{"type":["integer","null"],"minimum":0},"visibility":{"type":"string"},"planIds":{"type":"array","items":{"type":"string"}},"freeTime":{"type":["object","null"],"properties":{"mult":{"type":"number","minimum":1},"ok":{"type":"boolean"},"dailyMinutes":{"type":"integer","minimum":0},"monthlyMinutes":{"type":"integer","minimum":0},"upsellPlanId":{"type":["string","null"]}},"required":["mult","ok","dailyMinutes","monthlyMinutes","upsellPlanId"],"additionalProperties":false},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"isDefault":{"type":"boolean"}},"required":["version","isDefault"],"additionalProperties":false}},"templates":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"defaultVersion":{"type":["string","null"]},"isRecommended":{"type":"boolean"},"minPlanId":{"type":["string","null"]}},"required":["slug","name","defaultVersion","isRecommended","minPlanId"],"additionalProperties":false}}},"required":["slug","name","category","coverUrl","iconUrl","minRamMb","recommendedRamMb","diskMb","ports","estimatedPingMs","visibility","planIds","freeTime","versions","templates"],"additionalProperties":false}},"regions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"city":{"type":"string"},"estimatedPingMs":{"type":["integer","null"],"minimum":0},"pingUrl":{"type":["string","null"]},"isDefault":{"type":"boolean"}},"required":["code","name","city","estimatedPingMs","pingUrl","isDefault"],"additionalProperties":false}},"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"priceMonthlyCents":{"type":"integer","minimum":0},"priceAnnualCents":{"type":"integer","minimum":0},"isFeatured":{"type":"boolean"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"allowsMods":{"type":"boolean"},"quotas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":["integer","null"],"minimum":0},"unlimited":{"type":"boolean"}},"required":["key","value","unlimited"],"additionalProperties":false}}},"required":["id","name","priceMonthlyCents","priceAnnualCents","isFeatured","accent","allowsMods","quotas"],"additionalProperties":false}},"addons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"priceMonthlyCents":{"type":"integer","minimum":0},"quotaKey":{"type":["string","null"]},"quotaStep":{"type":["integer","null"],"minimum":0},"maxQuantity":{"type":["integer","null"],"minimum":0},"requiresPaidPlan":{"type":"boolean"}},"required":["id","name","priceMonthlyCents","quotaKey","quotaStep","maxQuantity","requiresPaidPlan"],"additionalProperties":false}}},"required":["games","regions","plans","addons"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/catalog/games/:gameSlug/versions":{"get":{"operationId":"listGameVersions","summary":"List every version a template of a game can run, grouped and tagged for the create wizard","tags":["catalog"],"parameters":[{"name":"gameSlug","in":"path","required":true,"schema":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},{"name":"template","in":"query","required":true,"schema":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9._-]*$"}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"gameSlug":{"type":"string"},"template":{"type":"string"},"source":{"type":"string","enum":["mojang","catalog"]},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"group":{"type":"string","enum":["stable","previous","preview"]},"tag":{"type":["string","null"],"enum":["latest","mods","experimental",null]},"isDefault":{"type":"boolean"}},"required":["version","group","tag","isDefault"],"additionalProperties":false}}},"required":["gameSlug","template","source","versions"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/geo":{"get":{"operationId":"getViewerGeo","summary":"Report the country the edge located the viewer in, or null when it is unknown","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":["string","null"],"pattern":"^[A-Z]{2}$"}},"required":["country"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/discord/interactions":{"post":{"operationId":"receiveDiscordInteraction","summary":"Answer a Discord slash command after verifying its Ed25519 signature","tags":["discord"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"integer"},"data":{"oneOf":[{"type":"object","properties":{"content":{"type":"string"},"flags":{"type":"integer"},"allowed_mentions":{"type":"object","properties":{"parse":{"type":"array","items":{"type":"string"}}},"required":["parse"],"additionalProperties":false},"components":{"type":"array","items":{"type":"object","properties":{"type":{"type":"integer"},"components":{"type":"array","items":{"type":"object","properties":{"type":{"type":"integer"},"style":{"type":"integer"},"label":{"type":"string"},"custom_id":{"type":"string"}},"required":["type","style","label","custom_id"],"additionalProperties":false}}},"required":["type","components"],"additionalProperties":false}}},"required":["content","flags","allowed_mentions"],"additionalProperties":false},{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false}}},"required":["choices"],"additionalProperties":false}]}},"required":["type"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/invoicing/ticketbai/webhook":{"post":{"operationId":"receiveTicketbaiWebhook","summary":"Receive a ticketbaiws status change, verify its HMAC over the raw body and settle the invoice","tags":["invoicing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean","enum":[true]},"outcome":{"type":"string","enum":["applied","stale","ignored"]}},"required":["received","outcome"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/consent-region":{"get":{"operationId":"getConsentRegion","summary":"Tell the cookie banner whether the viewer must opt in (strict) or may opt out (notice)","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"region":{"type":"string","enum":["strict","notice"]}},"required":["region"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/consents":{"post":{"operationId":"recordConsent","summary":"Keep the proof of a cookie choice: version, categories, region, GPC and the account","tags":["public"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"analytics":{"type":"boolean"},"adMeasurement":{"type":"boolean"},"version":{"type":"string","pattern":"^[0-9A-Za-z.-]{1,32}$"},"region":{"type":"string","enum":["strict","notice"]},"gpc":{"type":"boolean"}},"required":["analytics","adMeasurement","version","region","gpc"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"decidedAt":{"type":"string","format":"date-time"}},"required":["id","decidedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/ping":{"get":{"operationId":"ping","summary":"Answer empty and uncached so a browser can time its round trip to this region","tags":["public"],"parameters":[],"security":[],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/games":{"get":{"operationId":"listPublicGames","summary":"List the games the catalog publishes with their versions and templates","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"games":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"coverUrl":{"type":["string","null"]},"iconUrl":{"type":["string","null"]},"minRamMb":{"type":"integer","minimum":0},"recommendedRamMb":{"type":"integer","minimum":0},"diskMb":{"type":"integer","minimum":0},"ports":{"type":"array","items":{"type":"string"}},"estimatedPingMs":{"type":["integer","null"],"minimum":0},"visibility":{"type":"string"},"planIds":{"type":"array","items":{"type":"string"}},"freeTime":{"type":["object","null"],"properties":{"mult":{"type":"number","minimum":1},"ok":{"type":"boolean"},"dailyMinutes":{"type":"integer","minimum":0},"monthlyMinutes":{"type":"integer","minimum":0},"upsellPlanId":{"type":["string","null"]}},"required":["mult","ok","dailyMinutes","monthlyMinutes","upsellPlanId"],"additionalProperties":false},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"isDefault":{"type":"boolean"}},"required":["version","isDefault"],"additionalProperties":false}},"templates":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"defaultVersion":{"type":["string","null"]},"isRecommended":{"type":"boolean"},"minPlanId":{"type":["string","null"]}},"required":["slug","name","defaultVersion","isRecommended","minPlanId"],"additionalProperties":false}}},"required":["slug","name","category","coverUrl","iconUrl","minRamMb","recommendedRamMb","diskMb","ports","estimatedPingMs","visibility","planIds","freeTime","versions","templates"],"additionalProperties":false}}},"required":["games"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/plans":{"get":{"operationId":"listPublicPlans","summary":"List the published plans with their quotas and the published add-ons","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currencies":{"type":"array","items":{"type":"string","enum":["eur","usd","gbp","brl","pln","czk","huf","ron","sek","dkk","nok","chf","mxn","cad","aud"]}},"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"priceMonthlyCents":{"type":"integer","minimum":0},"priceAnnualCents":{"type":"integer","minimum":0},"isFeatured":{"type":"boolean"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"allowsMods":{"type":"boolean"},"quotas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":["integer","null"],"minimum":0},"unlimited":{"type":"boolean"}},"required":["key","value","unlimited"],"additionalProperties":false}},"prices":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","name","priceMonthlyCents","priceAnnualCents","isFeatured","accent","allowsMods","quotas","prices"],"additionalProperties":false}},"addons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"priceMonthlyCents":{"type":"integer","minimum":0},"quotaKey":{"type":["string","null"]},"quotaStep":{"type":["integer","null"],"minimum":0},"maxQuantity":{"type":["integer","null"],"minimum":0},"requiresPaidPlan":{"type":"boolean"},"prices":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","name","priceMonthlyCents","quotaKey","quotaStep","maxQuantity","requiresPaidPlan","prices"],"additionalProperties":false}},"paymentsOpen":{"type":"boolean"},"publishableKey":{"type":"string"}},"required":["currencies","plans","addons","paymentsOpen","publishableKey"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/servers":{"get":{"operationId":"listPublicServers","summary":"List the servers their owners published, filtered, sorted and paged by cursor","tags":["public"],"parameters":[{"name":"game","in":"query","required":false,"schema":{"type":"string","maxLength":32,"pattern":"^[a-z0-9-]+$"}},{"name":"tag","in":"query","required":false,"schema":{"type":"string","enum":["survival","creative","minigames","pvp","modpack","roleplay"]}},{"name":"region","in":"query","required":false,"schema":{"type":"string","maxLength":32,"pattern":"^[a-z0-9-]+$"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"hasFreeSlots","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"bedrock","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["players","ping","free-slots","name","newest"],"default":"players"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":12,"maximum":60,"default":24}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"servers":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"tag":{"type":"string","enum":["survival","creative","minigames","pvp","modpack","roleplay"]},"description":{"type":"string"},"address":{"type":"string"},"gameSlug":{"type":"string"},"version":{"type":"string"},"regionCode":{"type":"string"},"bedrock":{"type":"boolean"},"online":{"type":"integer","minimum":0},"slots":{"type":"integer","minimum":0},"pingMs":{"type":"integer","minimum":0},"publishedAt":{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$"},"hasJoinPassword":{"type":"boolean"},"inviteOnly":{"type":"boolean"}},"required":["slug","name","tag","description","address","gameSlug","version","regionCode","bedrock","online","slots","pingMs","publishedAt","hasJoinPassword","inviteOnly"],"additionalProperties":false}},"gameCounts":{"type":"array","items":{"type":"object","properties":{"gameSlug":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["gameSlug","count"],"additionalProperties":false}},"pageSize":{"type":"integer","minimum":12,"maximum":60},"total":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]}},"required":["servers","gameCounts","pageSize","total","nextCursor"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/join/:slug":{"get":{"operationId":"getPublicJoin","summary":"Show the address and the join instructions of the server an invite link names","tags":["public"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{3,32}$"}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"gameSlug":{"type":"string"},"host":{"type":"string"},"port":{"type":["integer","null"],"minimum":1,"maximum":65535},"bedrockPort":{"type":["integer","null"],"minimum":1,"maximum":65535},"queryPort":{"type":["integer","null"],"minimum":1,"maximum":65535},"online":{"type":"boolean"},"passwordGate":{"type":"boolean"},"listing":{"type":["object","null"],"properties":{"tag":{"type":"string","enum":["survival","creative","minigames","pvp","modpack","roleplay"]},"description":{"type":"string"},"version":{"type":"string"},"regionCode":{"type":"string"},"playersOnline":{"type":"integer","minimum":0},"slots":{"type":"integer","minimum":0}},"required":["tag","description","version","regionCode","playersOnline","slots"],"additionalProperties":false}},"required":["slug","name","gameSlug","host","port","bedrockPort","queryPort","online","passwordGate","listing"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/counters":{"get":{"operationId":"getPublicCounters","summary":"Count what the catalog publishes and how many servers and players are live","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"games":{"type":"integer","minimum":0},"regions":{"type":"integer","minimum":0},"plans":{"type":"integer","minimum":0},"servers":{"type":"object","properties":{"published":{"type":"integer","minimum":0},"online":{"type":"integer","minimum":0},"players":{"type":"integer","minimum":0}},"required":["published","online","players"],"additionalProperties":false},"onlineByGame":{"type":"object","properties":{},"additionalProperties":false},"startSecondsByGame":{"type":"object","properties":{},"additionalProperties":false}},"required":["games","regions","plans","servers","onlineByGame","startSecondsByGame"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/stats":{"get":{"operationId":"getPublicStats","summary":"Show the latest daily snapshot of accounts, servers, player hours and players","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"integer","minimum":0},"servers":{"type":"integer","minimum":0},"playerHours":{"type":"integer","minimum":0},"players":{"type":"integer","minimum":0},"takenOn":{"type":["string","null"],"format":"date-time"}},"required":["users","servers","playerHours","players","takenOn"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/status":{"get":{"operationId":"getPublicStatus","summary":"Report the platform status and the regions that can take a server","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok","degraded","down"]},"regions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"city":{"type":"string"},"status":{"type":"string","enum":["operational"]}},"required":["code","name","city","status"],"additionalProperties":false}},"uptime":{"type":"object","properties":{"percent":{"type":["number","null"],"minimum":0,"maximum":100},"windowDays":{"type":"integer","minimum":1}},"required":["percent","windowDays"],"additionalProperties":false},"systems":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["panel","api","game","daemon","auth","billing","worlds","db"]},"status":{"type":"string","enum":["ok","degraded","down","maintenance"]},"uptimePercent":{"type":["number","null"]},"bars":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"level":{"type":"string","enum":["ok","degraded","down","unknown"]},"percent":{"type":["number","null"]}},"required":["day","level","percent"],"additionalProperties":false}}},"required":["key","status","uptimePercent","bars"],"additionalProperties":false}},"incidents":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"title":{"type":"string"},"severity":{"type":"string","enum":["p1","p2","p3"]},"status":{"type":"string","enum":["investigating","identified","recovering","resolved"]},"systems":{"type":"array","items":{"type":"string","enum":["panel","api","game","daemon","auth","billing","worlds","db"]}},"createdAt":{"type":"string"}},"required":["reference","title","severity","status","systems","createdAt"],"additionalProperties":false}},"oauthProviders":{"type":"array","items":{"type":"string","enum":["discord","google"]}},"freeQueue":{"type":"integer","minimum":0}},"required":["status","regions","uptime","systems","incidents","oauthProviders","freeQueue"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/free-time":{"get":{"operationId":"getPublicFreeTime","summary":"Show the Free hourglass parameters: the switch, the Free base, the weights, the step and the caps","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"baseRamMb":{"type":"integer","minimum":0},"baseDiskMb":{"type":"integer","minimum":0},"dailyMinutes":{"type":"integer","minimum":0},"monthlyMinutes":{"type":"integer","minimum":0},"weightRam":{"type":"number","minimum":0,"maximum":1},"weightDisk":{"type":"number","minimum":0,"maximum":1},"step":{"type":"number"},"maxMult":{"type":"number","minimum":1},"maxRamGb":{"type":"integer","minimum":0},"maxDiskGb":{"type":"integer","minimum":0},"excluded":{"type":"array","items":{"type":"string"}}},"required":["enabled","baseRamMb","baseDiskMb","dailyMinutes","monthlyMinutes","weightRam","weightDisk","step","maxMult","maxRamGb","maxDiskGb","excluded"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/join/:slug/whitelist":{"post":{"operationId":"joinWithPassword","summary":"Add a player to the whitelist of a server when the join password matches","tags":["public"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{3,32}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"player":{"type":"string","pattern":"^\\.?\\w(?:[\\w ]{0,14}\\w)?$"},"password":{"type":"string","minLength":1,"maxLength":128}},"required":["player","password"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"player":{"type":"string"}},"required":["player"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/join-password":{"get":{"operationId":"readJoinPassword","summary":"Read whether a server asks joining players for a password and whether its owner can read it back","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"enabled":{"type":"boolean"},"readable":{"type":"boolean"}},"required":["available","enabled","readable"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"setJoinPassword","summary":"Set or clear the join password a player types on the server page to be whitelisted","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":["string","null"],"minLength":4,"maxLength":128}},"required":["password"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"enabled":{"type":"boolean"},"readable":{"type":"boolean"}},"required":["available","enabled","readable"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/join-password/secret":{"get":{"operationId":"readJoinPasswordSecret","summary":"Read the join password a game keeps in its own settings, for those who may change it","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":["string","null"]}},"required":["password"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/game-account":{"get":{"operationId":"readGameAccount","summary":"Read whether the owner signed this server in to their own game account, never the token","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["signed_out","signed_in","lapsed"]},"profileName":{"type":["string","null"]},"lapsesAt":{"type":["string","null"],"format":"date-time"}},"required":["status","profileName","lapsesAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/game-account/sign-in":{"post":{"operationId":"startGameSignIn","summary":"Start a device-code sign-in to the game account of the owner and answer the code to type","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"userCode":{"type":"string"},"verificationUri":{"type":"string"},"verificationUriComplete":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"intervalSeconds":{"type":"integer","minimum":1}},"required":["userCode","verificationUri","verificationUriComplete","expiresAt","intervalSeconds"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/game-account/sign-in/poll":{"post":{"operationId":"pollGameSignIn","summary":"Ask whether the owner approved the device-code sign-in, and keep the grant sealed when they did","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","signed_in","denied","expired"]},"profileName":{"type":["string","null"]}},"required":["status","profileName"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/game-account/sign-out":{"post":{"operationId":"signOutGameAccount","summary":"Sign the server out of the game account of the owner and delete the sealed grant","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["signed_out","signed_in","lapsed"]},"profileName":{"type":["string","null"]},"lapsesAt":{"type":["string","null"],"format":"date-time"}},"required":["status","profileName","lapsesAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/mail/unsubscribe":{"post":{"operationId":"unsubscribeFromOffers","summary":"Stop news and offers by email for the account the link names, one click (RFC 8058)","tags":["public"],"parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"List-Unsubscribe":{"type":"string","enum":["One-Click"]}},"additionalProperties":false}}}},"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/rights-requests":{"post":{"operationId":"registerRightsRequest","summary":"Register a data protection rights request from a user, a player or a visitor","tags":["public"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["access","copy","rectification","erasure","restriction","objection","do_not_sell","appeal"]},"requester":{"type":"string","enum":["user","player","visitor"]},"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","maxLength":254},"playerName":{"type":"string","minLength":1,"maxLength":64},"serverAddress":{"type":"string","minLength":1,"maxLength":255},"details":{"type":"string","minLength":1,"maxLength":4000},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},"required":["type","requester","name","email","details","locale"],"additionalProperties":false}}}},"security":[],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"reference":{"type":"string"},"receivedAt":{"type":"string","format":"date-time"},"dueAt":{"type":"string","format":"date-time"}},"required":["reference","receivedAt","dueAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/legal/reports":{"post":{"operationId":"submitContentReport","summary":"Report illegal content, abuse, a copyright infringement or a counter-notice without an account","tags":["legal"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["illegal-content","copyright","counter-notice","child-safety","abuse"]},"location":{"type":"string","minLength":1,"maxLength":500},"details":{"type":"string","minLength":10,"maxLength":5000},"work":{"type":"string","maxLength":1000},"name":{"type":"string","maxLength":200},"email":{"type":"string","maxLength":254},"goodFaith":{"type":"boolean","enum":[true]},"sworn":{"type":"boolean","enum":[true]},"signature":{"type":"string","maxLength":200},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"captchaToken":{"type":"string","maxLength":2048}},"required":["kind","location","details","goodFaith","locale"],"additionalProperties":false}}}},"security":[],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"reference":{"type":"string"}},"required":["reference"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/legal/withdrawals":{"post":{"operationId":"submitContractWithdrawal","summary":"Withdraw from a contract within fourteen days without signing in and get an acknowledgement by email","tags":["legal"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","maxLength":254},"order":{"type":"string","maxLength":120},"confirmed":{"type":"boolean","enum":[true]},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},"required":["name","email","confirmed","locale"],"additionalProperties":false}}}},"security":[],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"reference":{"type":"string","pattern":"^W-[0-9A-F]{10}$"},"receivedAt":{"type":"string","format":"date-time"}},"required":["reference","receivedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/terms":{"get":{"operationId":"getTermsAcceptance","summary":"Read the terms version the account accepted and whether a material change asks for acceptance again","tags":["account"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"acceptedVersion":{"type":"string"},"currentVersion":{"type":"string"},"required":{"type":"boolean"}},"required":["acceptedVersion","currentVersion","required"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"acceptTerms","summary":"Accept the terms of service version in force","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},"required":["version","locale"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"acceptedVersion":{"type":"string"},"currentVersion":{"type":"string"},"required":{"type":"boolean"}},"required":["acceptedVersion","currentVersion","required"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/blog/:locale":{"get":{"operationId":"listPublicBlogPosts","summary":"List the live posts of the blog in one language, newest first","tags":["public"],"parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"posts":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"category":{"type":"string"},"authorName":{"type":["string","null"]},"publishedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"readingMinutes":{"type":"integer","minimum":1},"coverUrl":{"type":["string","null"]},"coverAlt":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["slug","title","excerpt","category","authorName","publishedAt","updatedAt","readingMinutes","coverUrl","coverAlt","tags"],"additionalProperties":false}}},"required":["locale","posts"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/blog/:locale/guides":{"get":{"operationId":"listPublicBlogGameGuides","summary":"List the newest live posts of each game page, or of one game, in one language","tags":["public"],"parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},{"name":"game","in":"query","required":false,"schema":{"type":"string","enum":["minecraft-java-edition","minecraft-bedrock-edition","valheim","terraria","palworld","rust","ark-survival-ascended","7-days-to-die","project-zomboid","v-rising","enshrouded","conan-exiles","sons-of-the-forest","dont-starve-together","core-keeper","vintage-story","necesse","astroneer","garrys-mod","factorio","satisfactory","counter-strike-2","unturned","dayz","squad","ark-survival-evolved","arma-reforger","runescape-dragonwilds","team-fortress-2","left-4-dead-2","counter-strike-source","counter-strike-1-6","the-isle","barotrauma","scp-secret-laboratory","counter-strike-condition-zero","day-of-defeat","team-fortress-classic","half-life-deathmatch","killing-floor-2","soulmask","abiotic-factor","return-to-moria","icarus","space-engineers","euro-truck-simulator-2","american-truck-simulator","the-forest","fivem","hytale"]}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"games":{"type":"array","items":{"type":"object","properties":{"game":{"type":"string"},"posts":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"category":{"type":"string"},"authorName":{"type":["string","null"]},"publishedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"readingMinutes":{"type":"integer","minimum":1},"coverUrl":{"type":["string","null"]},"coverAlt":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["slug","title","excerpt","category","authorName","publishedAt","updatedAt","readingMinutes","coverUrl","coverAlt","tags"],"additionalProperties":false}}},"required":["game","posts"],"additionalProperties":false}}},"required":["locale","games"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/blog/:locale/posts/:slug":{"get":{"operationId":"readPublicBlogPost","summary":"Read one live post with its published languages and the related posts","tags":["public"],"parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","maxLength":70,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"post":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"category":{"type":"string"},"authorName":{"type":["string","null"]},"publishedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"readingMinutes":{"type":"integer","minimum":1},"coverUrl":{"type":["string","null"]},"coverAlt":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"body":{"type":"string"},"metaTitle":{"type":"string"},"metaDescription":{"type":"string"},"indexable":{"type":"boolean"},"howto":{"type":"boolean"},"itemList":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name","url"],"additionalProperties":false}},"alternates":{"type":"array","items":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"slug":{"type":"string"}},"required":["locale","slug"],"additionalProperties":false}}},"required":["slug","title","excerpt","category","authorName","publishedAt","updatedAt","readingMinutes","coverUrl","coverAlt","tags","body","metaTitle","metaDescription","indexable","howto","itemList","alternates"],"additionalProperties":false},"related":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"category":{"type":"string"},"authorName":{"type":["string","null"]},"publishedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"readingMinutes":{"type":"integer","minimum":1},"coverUrl":{"type":["string","null"]},"coverAlt":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["slug","title","excerpt","category","authorName","publishedAt","updatedAt","readingMinutes","coverUrl","coverAlt","tags"],"additionalProperties":false}}},"required":["locale","post","related"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/mcp":{"post":{"operationId":"callMcpServer","summary":"Answer one JSON-RPC message of the read-only Model Context Protocol server for AI agents","tags":["mcp"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"oneOf":[{"type":"string","maxLength":128},{"type":"integer"}]},"method":{"type":"string","maxLength":128},"params":{"type":"object","properties":{},"additionalProperties":true}},"required":["jsonrpc","method"],"additionalProperties":false}}}},"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"oneOf":[{"type":"string"},{"type":"number"}]},"result":{"type":"object","properties":{},"additionalProperties":true},"error":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["jsonrpc","id"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"406":{"description":"The Accept header does not list both application/json and text/event-stream","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/csrf":{"get":{"operationId":"getCsrfToken","summary":"Mint the csrf token every state-changing auth request has to echo","tags":["auth"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"csrfToken":{"type":"string"}},"required":["csrfToken"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/signup-captcha":{"get":{"operationId":"getSignupCaptcha","summary":"Say whether the signup form must solve a captcha before it posts","tags":["auth"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"required":{"type":"boolean"}},"required":["required"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/signup":{"post":{"operationId":"signup","summary":"Open an account with a player name, an email, a password and the age gate","tags":["auth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"password":{"type":"string","minLength":8,"maxLength":128},"displayName":{"type":"string","minLength":2,"maxLength":32},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"acceptTerms":{"type":"boolean","enum":[true]},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"},"captchaToken":{"type":"string","maxLength":2048}},"required":["email","password","displayName","dateOfBirth","acceptTerms"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["accepted"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/verify-email":{"post":{"operationId":"verifyEmail","summary":"Consume a verification token and mark the address of its account verified","tags":["auth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","maxLength":256}},"required":["token"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/resend-verification":{"post":{"operationId":"resendVerification","summary":"Send the verification mail again to an address that has not confirmed yet","tags":["auth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"}},"required":["email"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["accepted"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/login":{"post":{"operationId":"login","summary":"Exchange an email and a password for a session cookie","tags":["auth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"password":{"type":"string","minLength":8,"maxLength":128},"totpCode":{"type":"string","pattern":"^\\d+$"},"backupCode":{"type":"string","minLength":8,"maxLength":16},"rememberDevice":{"type":"boolean"}},"required":["email","password"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":["object","null"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"displayName":{"type":"string"},"username":{"type":"string"},"emailVerified":{"type":"boolean"},"avatarUrl":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","email","displayName","username","emailVerified","avatarUrl","createdAt"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/logout":{"post":{"operationId":"logout","summary":"Revoke the session the request carries and clear its cookies","tags":["auth"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/session":{"get":{"operationId":"getSession","summary":"Describe the account the session cookie belongs to","tags":["auth"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":["object","null"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"displayName":{"type":"string"},"username":{"type":"string"},"emailVerified":{"type":"boolean"},"avatarUrl":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","email","displayName","username","emailVerified","avatarUrl","createdAt"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/password-reset":{"post":{"operationId":"requestPasswordReset","summary":"Mail a single-use link that lets the owner of an address choose a new password","tags":["auth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"}},"required":["email"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["accepted"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/password-reset/confirm":{"post":{"operationId":"confirmPasswordReset","summary":"Consume a reset token, store the new password and revoke every session","tags":["auth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","maxLength":256},"password":{"type":"string","minLength":8,"maxLength":128}},"required":["token","password"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/signup/start":{"post":{"operationId":"startSignup","summary":"Open a signup session with an email and a password; no account exists yet","tags":["signup"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"password":{"type":"string","minLength":8,"maxLength":128},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"},"captchaToken":{"type":"string","maxLength":2048},"source":{"type":"object","properties":{"referrerHost":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?$"},"landingPath":{"type":"string","pattern":"^\\/[A-Za-z0-9/._~-]{0,299}$"},"utmSource":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utmMedium":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utmCampaign":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"}},"additionalProperties":false}},"required":["email","password"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"signup":{"type":"object","properties":{"method":{"type":"string","enum":["email","discord","google"]},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"nickname":{"type":["string","null"]},"suggestedNickname":{"type":["string","null"]},"dateOfBirth":{"type":["string","null"]},"productNews":{"type":"boolean"}},"required":["method","email","emailVerified","nickname","suggestedNickname","dateOfBirth","productNews"],"additionalProperties":false}},"required":["signup"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/signup/state":{"get":{"operationId":"readSignup","summary":"Describe the signup session the cookie carries","tags":["signup"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"signup":{"type":"object","properties":{"method":{"type":"string","enum":["email","discord","google"]},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"nickname":{"type":["string","null"]},"suggestedNickname":{"type":["string","null"]},"dateOfBirth":{"type":["string","null"]},"productNews":{"type":"boolean"}},"required":["method","email","emailVerified","nickname","suggestedNickname","dateOfBirth","productNews"],"additionalProperties":false}},"required":["signup"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/nick/available":{"get":{"operationId":"checkNickname","summary":"Say whether a player name is free and suggest a free one when it is not","tags":["signup"],"parameters":[{"name":"nick","in":"query","required":true,"schema":{"type":"string","maxLength":32}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"valid":{"type":"boolean"},"suggestion":{"type":["string","null"]}},"required":["available","valid","suggestion"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/signup/profile":{"post":{"operationId":"saveSignupProfile","summary":"Hold the player name and store the birthdate on the signup session","tags":["signup"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nickname":{"type":"string","pattern":"^[A-Za-z0-9_]{3,16}$"},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"productNews":{"type":"boolean","default":false}},"required":["nickname","dateOfBirth"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"signup":{"type":"object","properties":{"method":{"type":"string","enum":["email","discord","google"]},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"nickname":{"type":["string","null"]},"suggestedNickname":{"type":["string","null"]},"dateOfBirth":{"type":["string","null"]},"productNews":{"type":"boolean"}},"required":["method","email","emailVerified","nickname","suggestedNickname","dateOfBirth","productNews"],"additionalProperties":false}},"required":["signup"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/signup/coupons/validate":{"post":{"operationId":"validateSignupCoupon","summary":"Quote a promo code against the plan and cycle chosen on the signup","tags":["signup"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":32},"plan":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"cycle":{"type":"string","enum":["month","year"]}},"required":["code","plan","cycle"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer","minimum":1},"cycles":{"type":["integer","null"],"minimum":1},"eligible":{"type":"boolean"},"eligiblePlans":{"type":"array","items":{"type":"string"}},"requiresCard":{"type":"boolean"},"subtotalCents":{"type":"integer","minimum":0},"discountCents":{"type":"integer","minimum":0},"totalCents":{"type":"integer","minimum":0},"unlockedPlan":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"priceMonthlyCents":{"type":"integer","minimum":0},"priceAnnualCents":{"type":"integer","minimum":0}},"required":["id","name","priceMonthlyCents","priceAnnualCents"],"additionalProperties":false}},"required":["code","type","value","cycles","eligible","eligiblePlans","requiresCard","subtotalCents","discountCents","totalCents","unlockedPlan"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/signup/complete":{"post":{"operationId":"completeSignup","summary":"Create the account, record the terms, apply a free-months code and sign in","tags":["signup"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"cycle":{"type":"string","enum":["month","year"]},"couponCode":{"type":"string","minLength":1,"maxLength":32},"promo":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9-]{1,31}$"},"acceptTerms":{"type":"boolean","enum":[true]},"termsLocale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},"required":["plan","cycle","acceptTerms","termsLocale"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"displayName":{"type":"string"},"username":{"type":"string"},"emailVerified":{"type":"boolean"},"avatarUrl":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","email","displayName","username","emailVerified","avatarUrl","createdAt"],"additionalProperties":false},"next":{"type":"object","properties":{"kind":{"type":"string","enum":["portal","checkout"]},"planId":{"type":"string"},"interval":{"type":"string","enum":["month","year"]},"couponCode":{"type":["string","null"]}},"required":["kind"],"additionalProperties":false},"promo":{"type":["object","null"],"properties":{"code":{"type":"string"},"outcome":{"type":"string","enum":["applied","pending","promo_unavailable"]}},"required":["code","outcome"],"additionalProperties":false}},"required":["user","next"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/attribution":{"post":{"operationId":"recordAttribution","summary":"Keep the first and last ad click or campaign that brought a new account, for 90 days","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first":{"type":"object","properties":{"landedAt":{"type":"string","format":"date-time"},"gclid":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},"gbraid":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},"wbraid":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},"utm_source":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utm_medium":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utm_campaign":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utm_term":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utm_content":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"}},"required":["landedAt"],"additionalProperties":false},"last":{"type":"object","properties":{"landedAt":{"type":"string","format":"date-time"},"gclid":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},"gbraid":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},"wbraid":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},"utm_source":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utm_medium":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utm_campaign":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utm_term":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utm_content":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"}},"required":["landedAt"],"additionalProperties":false}},"required":["first","last"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"stored":{"type":"integer","minimum":0,"maximum":2}},"required":["stored"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security":{"get":{"operationId":"getAccountSecurity","summary":"Describe the second factor, the password and the linked providers of the account","tags":["account-security"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"twoFactor":{"type":"object","properties":{"enabled":{"type":"boolean"},"pending":{"type":"boolean"},"configuredAt":{"type":["string","null"],"format":"date-time"},"required":{"type":"boolean"},"unusedBackupCodes":{"type":"integer","minimum":0}},"required":["enabled","pending","configuredAt","required","unusedBackupCodes"],"additionalProperties":false},"passwordSet":{"type":"boolean"},"connectedAccounts":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["discord","google"]},"username":{"type":["string","null"]},"linkedAt":{"type":"string","format":"date-time"}},"required":["provider","username","linkedAt"],"additionalProperties":false}}},"required":["twoFactor","passwordSet","connectedAccounts"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/reauth":{"post":{"operationId":"reauthenticate","summary":"Open the short window in which the security actions of the account are allowed","tags":["account-security"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":8,"maxLength":128}},"required":["password"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"expiresInSeconds":{"type":"integer","minimum":1}},"required":["expiresInSeconds"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/password":{"post":{"operationId":"changePassword","summary":"Replace the password, revoke every session and open a fresh one for this browser","tags":["account-security"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currentPassword":{"type":"string","minLength":8,"maxLength":128},"newPassword":{"type":"string","minLength":8,"maxLength":128}},"required":["currentPassword","newPassword"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/two-factor/enrol":{"post":{"operationId":"enrolTwoFactor","summary":"Mint an unconfirmed TOTP secret and return its otpauth uri once","tags":["account-security"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string"},"otpauthUri":{"type":"string"}},"required":["secret","otpauthUri"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/two-factor/confirm":{"post":{"operationId":"confirmTwoFactor","summary":"Prove possession of the enrolled secret, enable it and return the backup codes","tags":["account-security"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d+$"}},"required":["code"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"codes":{"type":"array","items":{"type":"string"}}},"required":["codes"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/two-factor/disable":{"post":{"operationId":"disableTwoFactor","summary":"Prove a fresh second factor (exactly one of totpCode or backupCode), then drop the secret, every backup code and every trusted device, and rotate this session only","tags":["account-security"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"totpCode":{"type":"string","pattern":"^\\d+$"},"backupCode":{"type":"string","minLength":8,"maxLength":16}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"VALIDATION_ERROR, or INVALID_TWO_FACTOR_CODE carrying attemptsLeft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"STAFF_TWO_FACTOR_REQUIRED for an account holding an admin grant, checked before the code; or a missing csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"CONFLICT when the second factor is not enabled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"TWO_FACTOR_LOCKED carrying retryAfterSeconds for a TOTP code after 5 wrong codes in 5 minutes, or RATE_LIMITED","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/backup-codes":{"post":{"operationId":"regenerateBackupCodes","summary":"Prove a fresh second factor (exactly one of totpCode or backupCode), then issue ten new xxxx-xxxx backup codes shown only in this answer and invalidate every previous one","tags":["account-security"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"totpCode":{"type":"string","pattern":"^\\d+$"},"backupCode":{"type":"string","minLength":8,"maxLength":16}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"codes":{"type":"array","items":{"type":"string"}}},"required":["codes"],"additionalProperties":false}}}},"400":{"description":"VALIDATION_ERROR, or INVALID_TWO_FACTOR_CODE carrying attemptsLeft","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"CONFLICT when the second factor is not enabled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"TWO_FACTOR_LOCKED carrying retryAfterSeconds for a TOTP code after 5 wrong codes in 5 minutes, or RATE_LIMITED","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/sessions":{"get":{"operationId":"listAccountSessions","summary":"List the live sessions of the account with their device, place and last activity","tags":["account-security"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"device":{"type":["string","null"]},"location":{"type":["string","null"],"pattern":"^[A-Z]{2}$"},"createdAt":{"type":"string","format":"date-time"},"lastSeenAt":{"type":"string","format":"date-time"},"current":{"type":"boolean"},"support":{"type":"boolean"}},"required":["id","device","location","createdAt","lastSeenAt","current","support"],"additionalProperties":false}}},"required":["sessions"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/sessions/revoke":{"post":{"operationId":"revokeAccountSession","summary":"Revoke one session of the account and drop it from the session store","tags":["account-security"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"integer","minimum":0}},"required":["revoked"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/sessions/revoke-others":{"post":{"operationId":"revokeOtherAccountSessions","summary":"Revoke every session of the account except the one making the request","tags":["account-security"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"integer","minimum":0}},"required":["revoked"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/oauth/discord/start":{"post":{"operationId":"startDiscordLogin","summary":"Open a discord authorization flow bound to this browser and answer its url","tags":["oauth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"},"returnTo":{"type":"string","maxLength":512},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"acceptTerms":{"type":"boolean","enum":[true]},"source":{"type":"object","properties":{"referrerHost":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?$"},"landingPath":{"type":"string","pattern":"^\\/[A-Za-z0-9/._~-]{0,299}$"},"utmSource":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utmMedium":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utmCampaign":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"}},"additionalProperties":false}},"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"authorizationUrl":{"type":"string"}},"required":["authorizationUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/oauth/discord/callback":{"get":{"operationId":"completeDiscordFlow","summary":"Consume the discord authorization code and send the browser to its destination","tags":["oauth"],"parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"state","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"error","in":"query","required":false,"schema":{"type":"string","maxLength":512}}],"security":[],"responses":{"302":{"description":"The browser continues at the location the answer names","headers":{"Cache-Control":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/oauth/discord/link":{"post":{"operationId":"linkDiscordAccount","summary":"Open a discord flow that links the provider account to the signed-in account","tags":["oauth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"},"intent":{"type":"string","enum":["link","reward"],"default":"link"}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"authorizationUrl":{"type":"string"}},"required":["authorizationUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/oauth/discord/reauth":{"post":{"operationId":"reauthenticateWithDiscord","summary":"Open a discord re-consent flow that reauthenticates the signed-in account","tags":["oauth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"},"returnTo":{"type":"string","maxLength":512}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"authorizationUrl":{"type":"string"}},"required":["authorizationUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/oauth/discord/unlink":{"post":{"operationId":"unlinkDiscordAccount","summary":"Drop the discord identity of the account unless it is its last way of signing in","tags":["oauth"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/oauth/google/start":{"post":{"operationId":"startGoogleLogin","summary":"Open a google authorization flow bound to this browser and answer its url","tags":["oauth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"},"returnTo":{"type":"string","maxLength":512},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"acceptTerms":{"type":"boolean","enum":[true]},"source":{"type":"object","properties":{"referrerHost":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?$"},"landingPath":{"type":"string","pattern":"^\\/[A-Za-z0-9/._~-]{0,299}$"},"utmSource":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utmMedium":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"},"utmCampaign":{"type":"string","pattern":"^[\\p{Ll}\\p{Lo}\\p{N} ._~+-]{1,100}$"}},"additionalProperties":false}},"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"authorizationUrl":{"type":"string"}},"required":["authorizationUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/oauth/google/callback":{"get":{"operationId":"completeGoogleFlow","summary":"Consume the google authorization code and send the browser to its destination","tags":["oauth"],"parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"state","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"error","in":"query","required":false,"schema":{"type":"string","maxLength":512}}],"security":[],"responses":{"302":{"description":"The browser continues at the location the answer names","headers":{"Cache-Control":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/oauth/google/link":{"post":{"operationId":"linkGoogleAccount","summary":"Open a google flow that links the provider account to the signed-in account","tags":["oauth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"authorizationUrl":{"type":"string"}},"required":["authorizationUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/oauth/google/reauth":{"post":{"operationId":"reauthenticateWithGoogle","summary":"Open a google re-consent flow that reauthenticates the signed-in account","tags":["oauth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"},"returnTo":{"type":"string","maxLength":512}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"authorizationUrl":{"type":"string"}},"required":["authorizationUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/security/oauth/google/unlink":{"post":{"operationId":"unlinkGoogleAccount","summary":"Drop the google identity of the account unless it is its last way of signing in","tags":["oauth"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/auth/oauth/challenge":{"post":{"operationId":"completeOAuthSecondFactor","summary":"Answer the second factor an oauth login demanded and open the session","tags":["oauth"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"string","maxLength":256},"totpCode":{"type":"string","pattern":"^\\d+$"},"backupCode":{"type":"string","minLength":8,"maxLength":16},"rememberDevice":{"type":"boolean"}},"required":["ticket"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string"}},"required":["destination"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account":{"get":{"operationId":"getAccount","summary":"Read the profile, the preferences, the notification matrix and the pending jobs","tags":["account"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{"displayName":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"avatarUrl":{"type":["string","null"]}},"required":["displayName","username","email","emailVerified","avatarUrl"],"additionalProperties":false},"preferences":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"timezone":{"type":"string","maxLength":64},"appearance":{"type":"string","enum":["dark","light","system"]},"listedPublicly":{"type":"boolean"}},"required":["locale","timezone","appearance","listedPublicly"],"additionalProperties":false},"notifications":{"type":"object","properties":{"server_down":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"daily_time_warning":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"free_time_ended":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_full":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_completed":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_missing":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"billing":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"product_news":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false}},"required":["server_down","daily_time_warning","free_time_ended","server_full","backup_completed","backup_missing","billing","product_news"],"additionalProperties":false},"dataExport":{"type":["object","null"],"properties":{"status":{"type":"string","enum":["pending","ready","failed"]},"requestedAt":{"type":"string","format":"date-time"}},"required":["status","requestedAt"],"additionalProperties":false},"deletion":{"type":["object","null"],"properties":{"requestedAt":{"type":"string","format":"date-time"},"scheduledAt":{"type":"string","format":"date-time"}},"required":["requestedAt","scheduledAt"],"additionalProperties":false}},"required":["profile","preferences","notifications","dataExport","deletion"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/profile":{"post":{"operationId":"updateAccountProfile","summary":"Replace the display name and the username of the account","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":2,"maxLength":32},"username":{"type":"string","minLength":3,"maxLength":24,"pattern":"^[a-z0-9_]+$"}},"required":["displayName","username"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{"displayName":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"avatarUrl":{"type":["string","null"]}},"required":["displayName","username","email","emailVerified","avatarUrl"],"additionalProperties":false}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/profile/email":{"post":{"operationId":"requestAccountEmailChange","summary":"Mail a confirmation link to the new address without touching the current one","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"}},"required":["email"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["accepted"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/profile/email/confirm":{"post":{"operationId":"confirmAccountEmailChange","summary":"Consume the link, move the account to the new address and drop every session","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","maxLength":256}},"required":["token"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/profile/avatar":{"post":{"operationId":"uploadAccountAvatar","summary":"Store the avatar of the account in the object store and point the profile at it","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp"]},"data":{"type":"string","maxLength":2796204}},"required":["contentType","data"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{"displayName":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"avatarUrl":{"type":["string","null"]}},"required":["displayName","username","email","emailVerified","avatarUrl"],"additionalProperties":false}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/profile/avatar/remove":{"post":{"operationId":"removeAccountAvatar","summary":"Drop the avatar and fall back to the initials of the account","tags":["account"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{"displayName":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"avatarUrl":{"type":["string","null"]}},"required":["displayName","username","email","emailVerified","avatarUrl"],"additionalProperties":false}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/preferences":{"post":{"operationId":"updateAccountPreferences","summary":"Save the language, the timezone, the appearance and the privacy flags","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"timezone":{"type":"string","maxLength":64},"appearance":{"type":"string","enum":["dark","light","system"]},"listedPublicly":{"type":"boolean"}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"preferences":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"timezone":{"type":"string","maxLength":64},"appearance":{"type":"string","enum":["dark","light","system"]},"listedPublicly":{"type":"boolean"}},"required":["locale","timezone","appearance","listedPublicly"],"additionalProperties":false}},"required":["preferences"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/notifications":{"post":{"operationId":"updateAccountNotifications","summary":"Save the whole notification matrix of the account in one call","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notifications":{"type":"object","properties":{"server_down":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"daily_time_warning":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"free_time_ended":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_full":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_completed":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_missing":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"billing":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"product_news":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false}},"required":["server_down","daily_time_warning","free_time_ended","server_full","backup_completed","backup_missing","billing","product_news"],"additionalProperties":false}},"required":["notifications"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"notifications":{"type":"object","properties":{"server_down":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"daily_time_warning":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"free_time_ended":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_full":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_completed":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_missing":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"billing":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"product_news":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false}},"required":["server_down","daily_time_warning","free_time_ended","server_full","backup_completed","backup_missing","billing","product_news"],"additionalProperties":false}},"required":["notifications"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/data-export":{"post":{"operationId":"requestAccountDataExport","summary":"Queue the zip with the servers, the invoices and the tickets of the account","tags":["account"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"],"default":"es"}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","ready","failed"]},"requestedAt":{"type":"string","format":"date-time"}},"required":["status","requestedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/deletion":{"post":{"operationId":"requestAccountDeletion","summary":"Schedule the account for deletion after the grace period the law asks for","tags":["account"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"deletion":{"type":["object","null"],"properties":{"requestedAt":{"type":"string","format":"date-time"},"scheduledAt":{"type":"string","format":"date-time"}},"required":["requestedAt","scheduledAt"],"additionalProperties":false}},"required":["deletion"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/account/deletion/cancel":{"post":{"operationId":"cancelAccountDeletion","summary":"Call off a scheduled deletion while the grace period is still running","tags":["account"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"deletion":{"type":["object","null"],"properties":{"requestedAt":{"type":"string","format":"date-time"},"scheduledAt":{"type":"string","format":"date-time"}},"required":["requestedAt","scheduledAt"],"additionalProperties":false}},"required":["deletion"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/entitlements":{"get":{"operationId":"getBillingEntitlements","summary":"Describe the plan of the account, the quotas it grants and the servers it allows","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"subscriptionId":{"type":["string","null"]},"quotas":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":["integer","null"]},"unlimited":{"type":"boolean"}},"required":["key","value","unlimited"],"additionalProperties":false}},"servers":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]},"unlimited":{"type":"boolean"},"remaining":{"type":["integer","null"]},"allowed":{"type":"boolean"}},"required":["used","limit","unlimited","remaining","allowed"],"additionalProperties":false},"backups":{"type":"object","properties":{"held":{"type":"integer","minimum":0},"limit":{"type":["integer","null"],"minimum":0},"unlimited":{"type":"boolean"}},"required":["held","limit","unlimited"],"additionalProperties":false}},"required":["planId","subscriptionId","quotas","servers","backups"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/checkout":{"post":{"operationId":"startBillingCheckout","summary":"Open a subscription and return the secret the Payment Element confirms","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"interval":{"type":"string","enum":["month","year"]},"couponCode":{"type":"string","maxLength":32},"promo":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9-]{1,31}$"},"analytics":{"type":"object","properties":{"clientId":{"type":"string","pattern":"^\\d{1,20}\\.\\d{1,20}$"},"sessionId":{"type":"string","pattern":"^\\d{1,20}$"}},"required":["clientId","sessionId"],"additionalProperties":false},"attemptId":{"type":"string"},"currency":{"type":"string","enum":["eur","usd","gbp","brl","pln","czk","huf","ron","sek","dkk","nok","chf","mxn","cad","aud"]}},"required":["planId","interval"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"subscriptionId":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused"]},"planId":{"type":"string"},"interval":{"type":"string","enum":["month","year"]},"clientSecret":{"type":["string","null"]},"publishableKey":{"type":"string"},"creditCents":{"type":"integer","minimum":0},"invoiceId":{"type":["string","null"]},"valueCents":{"type":["integer","null"]},"currency":{"type":"string","enum":["eur","usd","gbp","brl","pln","czk","huf","ron","sek","dkk","nok","chf","mxn","cad","aud"]},"currencyLocked":{"type":"boolean"},"amountDueMinor":{"type":["integer","null"]},"renewalMinor":{"type":["integer","null"]},"uncoveredServers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string","enum":["ram_mb","disk_mb"]},"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planRamMb":{"type":["integer","null"]},"planDiskMb":{"type":["integer","null"]}},"required":["serverId","name","reason","ramMb","diskMb","planRamMb","planDiskMb"],"additionalProperties":false}}},"required":["subscriptionId","status","planId","interval","clientSecret","publishableKey","creditCents","invoiceId","valueCents","currency","currencyLocked","amountDueMinor","renewalMinor","uncoveredServers"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["hosted"]},"url":{"type":"string"},"planId":{"type":"string"},"interval":{"type":"string","enum":["month","year"]},"currency":{"type":"string","enum":["eur","usd","gbp","brl","pln","czk","huf","ron","sek","dkk","nok","chf","mxn","cad","aud"]},"currencyLocked":{"type":"boolean"},"uncoveredServers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string","enum":["ram_mb","disk_mb"]},"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planRamMb":{"type":["integer","null"]},"planDiskMb":{"type":["integer","null"]}},"required":["serverId","name","reason","ramMb","diskMb","planRamMb","planDiskMb"],"additionalProperties":false}}},"required":["mode","url","planId","interval","currency","currencyLocked","uncoveredServers"],"additionalProperties":false}]}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/currency":{"get":{"operationId":"getBillingCurrency","summary":"Tell the currency the account pays in, whether it is fixed, and the one suggested","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":["string","null"],"enum":["eur","usd","gbp","brl","pln","czk","huf","ron","sek","dkk","nok","chf","mxn","cad","aud",null]},"locked":{"type":"boolean"},"suggested":{"type":"string","enum":["eur","usd","gbp","brl","pln","czk","huf","ron","sek","dkk","nok","chf","mxn","cad","aud"]}},"required":["currency","locked","suggested"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/checkout/status":{"get":{"operationId":"getBillingCheckoutStatus","summary":"Read the status of a checkout the account opened, after a payment that left the page","tags":["billing"],"parameters":[{"name":"subscriptionId","in":"query","required":true,"schema":{"type":"string","pattern":"^sub_[A-Za-z0-9_]{1,64}$"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"subscriptionId":{"type":"string"},"planId":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused"]},"interval":{"type":["string","null"],"enum":["month","year",null]},"invoiceId":{"type":["string","null"]},"valueCents":{"type":["integer","null"]}},"required":["subscriptionId","planId","status","interval","invoiceId","valueCents"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/plan-change/preview":{"get":{"operationId":"previewBillingPlanChange","summary":"Quote a plan change: credit for the unused days, charge for the ones left and what is due today","tags":["billing"],"parameters":[{"name":"planId","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currentPlanId":{"type":"string"},"targetPlanId":{"type":"string"},"interval":{"type":"string","enum":["month","year"]},"direction":{"type":"string","enum":["upgrade","downgrade","unchanged"]},"currency":{"type":"string"},"cycleEnd":{"type":["string","null"]},"prorationAt":{"type":"string"},"daysLeft":{"type":"integer"},"creditCents":{"type":"integer"},"chargeCents":{"type":"integer"},"dueTodayCents":{"type":"integer"},"carriedCreditCents":{"type":"integer"},"renewalCents":{"type":"integer"},"requiresCheckout":{"type":"boolean"},"servers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"safeModeReason":{"type":["string","null"],"enum":["ram_mb","disk_mb","servers",null]},"restarts":{"type":"boolean"}},"required":["serverId","name","safeModeReason","restarts"],"additionalProperties":false}},"uncoveredServers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string","enum":["ram_mb","disk_mb"]},"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planRamMb":{"type":["integer","null"]},"planDiskMb":{"type":["integer","null"]}},"required":["serverId","name","reason","ramMb","diskMb","planRamMb","planDiskMb"],"additionalProperties":false}}},"required":["currentPlanId","targetPlanId","interval","direction","currency","cycleEnd","prorationAt","daysLeft","creditCents","chargeCents","dueTodayCents","carriedCreditCents","renewalCents","requiresCheckout","servers","uncoveredServers"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/plan-change":{"post":{"operationId":"applyBillingPlanChange","summary":"Move the subscription of the account to another plan and settle the proration","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"currentPlanId":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"prorationAt":{"type":"string","format":"date-time"},"dueTodayCents":{"type":"integer","minimum":0}},"required":["planId","currentPlanId","prorationAt","dueTodayCents"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currentPlanId":{"type":"string"},"targetPlanId":{"type":"string"},"interval":{"type":"string","enum":["month","year"]},"direction":{"type":"string","enum":["upgrade","downgrade","unchanged"]},"currency":{"type":"string"},"cycleEnd":{"type":["string","null"]},"prorationAt":{"type":"string"},"daysLeft":{"type":"integer"},"creditCents":{"type":"integer"},"chargeCents":{"type":"integer"},"dueTodayCents":{"type":"integer"},"carriedCreditCents":{"type":"integer"},"renewalCents":{"type":"integer"},"requiresCheckout":{"type":"boolean"},"servers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"safeModeReason":{"type":["string","null"],"enum":["ram_mb","disk_mb","servers",null]},"restarts":{"type":"boolean"}},"required":["serverId","name","safeModeReason","restarts"],"additionalProperties":false}},"uncoveredServers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string","enum":["ram_mb","disk_mb"]},"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planRamMb":{"type":["integer","null"]},"planDiskMb":{"type":["integer","null"]}},"required":["serverId","name","reason","ramMb","diskMb","planRamMb","planDiskMb"],"additionalProperties":false}},"subscriptionId":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused"]}},"required":["currentPlanId","targetPlanId","interval","direction","currency","cycleEnd","prorationAt","daysLeft","creditCents","chargeCents","dueTodayCents","carriedCreditCents","renewalCents","requiresCheckout","servers","uncoveredServers","subscriptionId","status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/addons":{"get":{"operationId":"getBillingAddons","summary":"List the add-ons the account can carry and what it still covers","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"interval":{"type":"string","enum":["month","year"]},"currency":{"type":"string"},"cycleEnd":{"type":["string","null"]},"prorationAt":{"type":"string"},"daysLeft":{"type":"integer"},"dueTodayCents":{"type":"integer"},"addonsMonthlyCents":{"type":"integer"},"addonsDiscountCents":{"type":"integer"},"renewalCents":{"type":"integer"},"lines":{"type":"array","items":{"type":"object","properties":{"addonId":{"type":"string"},"name":{"type":"string"},"quotaKey":{"type":["string","null"]},"quotaStep":{"type":["integer","null"]},"unitAmountCents":{"type":"integer"},"maxQuantity":{"type":"integer"},"quantity":{"type":"integer"},"billedQuantity":{"type":"integer"},"coveredQuantity":{"type":"integer"},"coveredUntil":{"type":["string","null"]},"dueTodayCents":{"type":"integer"},"monthlyCents":{"type":"integer"}},"required":["addonId","name","quotaKey","quotaStep","unitAmountCents","maxQuantity","quantity","billedQuantity","coveredQuantity","coveredUntil","dueTodayCents","monthlyCents"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["ram_below_requirement"]},"ramMb":{"type":"integer"},"requiredRamMb":{"type":"integer"}},"required":["code","ramMb","requiredRamMb"],"additionalProperties":false}},"servers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"safeModeReason":{"type":["string","null"],"enum":["ram_mb","disk_mb","servers",null]},"restarts":{"type":"boolean"}},"required":["serverId","name","safeModeReason","restarts"],"additionalProperties":false}}},"required":["planId","interval","currency","cycleEnd","prorationAt","daysLeft","dueTodayCents","addonsMonthlyCents","addonsDiscountCents","renewalCents","lines","warnings","servers"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/addons/preview":{"post":{"operationId":"previewBillingAddons","summary":"Quote a draft of add-on quantities against the days left of the cycle","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"addonId":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"quantity":{"type":"integer","minimum":0,"maximum":8}},"required":["addonId","quantity"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"interval":{"type":"string","enum":["month","year"]},"currency":{"type":"string"},"cycleEnd":{"type":["string","null"]},"prorationAt":{"type":"string"},"daysLeft":{"type":"integer"},"dueTodayCents":{"type":"integer"},"addonsMonthlyCents":{"type":"integer"},"addonsDiscountCents":{"type":"integer"},"renewalCents":{"type":"integer"},"lines":{"type":"array","items":{"type":"object","properties":{"addonId":{"type":"string"},"name":{"type":"string"},"quotaKey":{"type":["string","null"]},"quotaStep":{"type":["integer","null"]},"unitAmountCents":{"type":"integer"},"maxQuantity":{"type":"integer"},"quantity":{"type":"integer"},"billedQuantity":{"type":"integer"},"coveredQuantity":{"type":"integer"},"coveredUntil":{"type":["string","null"]},"dueTodayCents":{"type":"integer"},"monthlyCents":{"type":"integer"}},"required":["addonId","name","quotaKey","quotaStep","unitAmountCents","maxQuantity","quantity","billedQuantity","coveredQuantity","coveredUntil","dueTodayCents","monthlyCents"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["ram_below_requirement"]},"ramMb":{"type":"integer"},"requiredRamMb":{"type":"integer"}},"required":["code","ramMb","requiredRamMb"],"additionalProperties":false}},"servers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"safeModeReason":{"type":["string","null"],"enum":["ram_mb","disk_mb","servers",null]},"restarts":{"type":"boolean"}},"required":["serverId","name","safeModeReason","restarts"],"additionalProperties":false}}},"required":["planId","interval","currency","cycleEnd","prorationAt","daysLeft","dueTodayCents","addonsMonthlyCents","addonsDiscountCents","renewalCents","lines","warnings","servers"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/addons/change":{"post":{"operationId":"applyBillingAddons","summary":"Move the add-on quantities of the subscription and settle what is added","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"addonId":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"quantity":{"type":"integer","minimum":0,"maximum":8}},"required":["addonId","quantity"],"additionalProperties":false}},"prorationAt":{"type":"string","format":"date-time"},"dueTodayCents":{"type":"integer","minimum":0}},"required":["items","prorationAt","dueTodayCents"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"interval":{"type":"string","enum":["month","year"]},"currency":{"type":"string"},"cycleEnd":{"type":["string","null"]},"prorationAt":{"type":"string"},"daysLeft":{"type":"integer"},"dueTodayCents":{"type":"integer"},"addonsMonthlyCents":{"type":"integer"},"addonsDiscountCents":{"type":"integer"},"renewalCents":{"type":"integer"},"lines":{"type":"array","items":{"type":"object","properties":{"addonId":{"type":"string"},"name":{"type":"string"},"quotaKey":{"type":["string","null"]},"quotaStep":{"type":["integer","null"]},"unitAmountCents":{"type":"integer"},"maxQuantity":{"type":"integer"},"quantity":{"type":"integer"},"billedQuantity":{"type":"integer"},"coveredQuantity":{"type":"integer"},"coveredUntil":{"type":["string","null"]},"dueTodayCents":{"type":"integer"},"monthlyCents":{"type":"integer"}},"required":["addonId","name","quotaKey","quotaStep","unitAmountCents","maxQuantity","quantity","billedQuantity","coveredQuantity","coveredUntil","dueTodayCents","monthlyCents"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["ram_below_requirement"]},"ramMb":{"type":"integer"},"requiredRamMb":{"type":"integer"}},"required":["code","ramMb","requiredRamMb"],"additionalProperties":false}},"servers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"safeModeReason":{"type":["string","null"],"enum":["ram_mb","disk_mb","servers",null]},"restarts":{"type":"boolean"}},"required":["serverId","name","safeModeReason","restarts"],"additionalProperties":false}},"subscriptionId":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused"]}},"required":["planId","interval","currency","cycleEnd","prorationAt","daysLeft","dueTodayCents","addonsMonthlyCents","addonsDiscountCents","renewalCents","lines","warnings","servers","subscriptionId","status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/stripe/webhook":{"post":{"operationId":"receiveStripeWebhook","summary":"Receive a Stripe event, verify its signature and apply it once","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean"},"outcome":{"type":"string","enum":["applied","duplicate","ignored","stale","unprocessable"]}},"required":["received","outcome"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/checkout/consent":{"post":{"operationId":"recordBillingCheckoutConsent","summary":"Record the immediate-start and automatic-renewal consents the buyer ticked before paying","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subscriptionId":{"type":"string","pattern":"^sub_[A-Za-z0-9_]{1,64}$"},"immediateStart":{"type":"boolean","enum":[true]},"autoRenewal":{"type":"boolean","enum":[true]},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"residence":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["subscriptionId","immediateStart","autoRenewal","locale"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"acceptedAt":{"type":"string","format":"date-time"}},"required":["acceptedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/interval-change/offer":{"get":{"operationId":"getBillingAnnualOffer","summary":"Describe the open campaign offer for moving the subscription to annual billing","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"offer":{"type":["object","null"],"properties":{"points":{"type":"integer"},"expiresAt":{"type":"string","format":"date-time"}},"required":["points","expiresAt"],"additionalProperties":false}},"required":["offer"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/interval-change/preview":{"post":{"operationId":"previewBillingIntervalChange","summary":"Quote the switch from monthly to annual billing: annual price, discount, credit for the unused days and what is due today","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"couponCode":{"type":"string","maxLength":32}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"currency":{"type":"string"},"monthlyCents":{"type":"integer"},"annualCents":{"type":"integer"},"discount":{"type":["object","null"],"properties":{"source":{"type":"string","enum":["offer","coupon"]},"code":{"type":"string"},"points":{"type":"integer"},"scope":{"type":"string","enum":["first_year","all_renewals"]},"discountCents":{"type":"integer"}},"required":["source","code","points","scope","discountCents"],"additionalProperties":false},"offer":{"type":["object","null"],"properties":{"points":{"type":"integer"},"expiresAt":{"type":"string","format":"date-time"}},"required":["points","expiresAt"],"additionalProperties":false},"endingCouponCode":{"type":["string","null"]},"cycleEnd":{"type":"string","format":"date-time"},"daysLeft":{"type":"integer"},"creditCents":{"type":"integer"},"chargeCents":{"type":"integer"},"dueTodayCents":{"type":"integer"},"renewalCents":{"type":"integer"},"renewsOn":{"type":"string","format":"date-time"}},"required":["planId","currency","monthlyCents","annualCents","discount","offer","endingCouponCode","cycleEnd","daysLeft","creditCents","chargeCents","dueTodayCents","renewalCents","renewsOn"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/interval-change":{"post":{"operationId":"applyBillingIntervalChange","summary":"Move the monthly subscription to the annual price of the same plan and charge the difference today","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"couponCode":{"type":"string","maxLength":32},"dueTodayCents":{"type":"integer","minimum":0},"immediateStart":{"type":"boolean","enum":[true]},"autoRenewal":{"type":"boolean","enum":[true]},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"residence":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["dueTodayCents","immediateStart","autoRenewal","locale"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"currency":{"type":"string"},"monthlyCents":{"type":"integer"},"annualCents":{"type":"integer"},"discount":{"type":["object","null"],"properties":{"source":{"type":"string","enum":["offer","coupon"]},"code":{"type":"string"},"points":{"type":"integer"},"scope":{"type":"string","enum":["first_year","all_renewals"]},"discountCents":{"type":"integer"}},"required":["source","code","points","scope","discountCents"],"additionalProperties":false},"offer":{"type":["object","null"],"properties":{"points":{"type":"integer"},"expiresAt":{"type":"string","format":"date-time"}},"required":["points","expiresAt"],"additionalProperties":false},"endingCouponCode":{"type":["string","null"]},"cycleEnd":{"type":"string","format":"date-time"},"daysLeft":{"type":"integer"},"creditCents":{"type":"integer"},"chargeCents":{"type":"integer"},"dueTodayCents":{"type":"integer"},"renewalCents":{"type":"integer"},"renewsOn":{"type":"string","format":"date-time"},"subscriptionId":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused"]}},"required":["planId","currency","monthlyCents","annualCents","discount","offer","endingCouponCode","cycleEnd","daysLeft","creditCents","chargeCents","dueTodayCents","renewalCents","renewsOn","subscriptionId","status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/checkout/steps":{"post":{"operationId":"recordCheckoutStep","summary":"Keep one step of a checkout attempt: opened, payment form ready, consents, pay pressed, failed or closed","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"surface":{"type":"string","enum":["pricing","modal","signup"]},"step":{"type":"string"},"attemptId":{"type":"string"},"planId":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"interval":{"type":"string","enum":["month","year"]},"currency":{"type":"string","pattern":"^[a-z]{3}$"},"detail":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","surface","step"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/pricing/steps":{"post":{"operationId":"recordPricingStep","summary":"Count a pricing page view or a plan choice, with no identifier of the visitor","tags":["public"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"step":{"type":"string","enum":["pricing_viewed","plan_selected"]},"planId":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"interval":{"type":"string","enum":["month","year"]},"currency":{"type":"string","pattern":"^[a-z]{3}$"}},"required":["id","step"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/checkout/survey":{"post":{"operationId":"openCheckoutSurvey","summary":"Open the one checkout survey of the account for its latest unpaid checkout, and say whether to ask it","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ask":{"type":"boolean"}},"required":["ask"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/checkout/survey/answer":{"post":{"operationId":"answerCheckoutSurvey","summary":"Answer the open checkout survey of the account with one fixed reason","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"answer":{"type":"string","enum":["price","paymentMethod","currency","moreFreeHours","notReady","other"]},"otherText":{"type":"string","maxLength":500}},"required":["answer"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"CONFLICT when the account has no open checkout survey","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/checkout/survey/dismiss":{"post":{"operationId":"dismissCheckoutSurvey","summary":"Dismiss the open checkout survey of the account, which counts as asked","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"CONFLICT when the account has no open checkout survey","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/checkout-survey/answer":{"post":{"operationId":"answerCheckoutSurveyByMail","summary":"Answer the checkout survey asked by mail, with the one-time link token instead of a session","tags":["public"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"answer":{"type":"string","enum":["price","paymentMethod","currency","moreFreeHours","notReady","other"]},"otherText":{"type":"string","maxLength":500},"token":{"type":"string","maxLength":256}},"required":["answer","token"],"additionalProperties":false}}}},"security":[],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"INVALID_TOKEN when the link is unknown, already answered or expired","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/courtesy-ending":{"get":{"operationId":"readCourtesyEnding","summary":"Read the courtesy plan that ended on the account and was not dismissed yet, null when there is none","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ending":{"type":["object","null"],"properties":{"planId":{"type":"string"},"planName":{"type":"string"},"endedAt":{"type":"string","format":"date-time"}},"required":["planId","planName","endedAt"],"additionalProperties":false}},"required":["ending"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/courtesy-ending/dismiss":{"post":{"operationId":"dismissCourtesyEnding","summary":"Dismiss the notice of the courtesy plan that ended, so the panel does not show it again","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/hours-offer":{"post":{"operationId":"claimHoursOffer","summary":"Claim the one first-month offer of a Free account that used up its hours, null when it does not apply","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"offer":{"type":["object","null"],"properties":{"couponCode":{"type":"string"},"percent":{"type":"number"},"planIds":{"type":"array","items":{"type":"string"}}},"required":["couponCode","percent","planIds"],"additionalProperties":false}},"required":["offer"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/lifecycle":{"get":{"operationId":"getBillingLifecycle","summary":"Describe pause, cancel, refund and the payment method of the account","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused","none"]},"planId":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"periodEnd":{"type":["string","null"]},"pause":{"type":"object","properties":{"monthsUsed":{"type":"integer","minimum":0,"maximum":3},"maxMonths":{"type":"integer"},"resumesAt":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"allowed":{"type":"boolean"}},"required":["monthsUsed","maxMonths","resumesAt","priceCents","currency","allowed"],"additionalProperties":false},"refund":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"paymentMethod":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["card","paypal"]},"brand":{"type":"string"},"last4":{"type":["string","null"]},"expMonth":{"type":["integer","null"],"minimum":1,"maximum":12},"expYear":{"type":["integer","null"]},"holder":{"type":["string","null"]},"wallet":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","brand","last4","expMonth","expYear","holder","wallet","email"],"additionalProperties":false},"creditCents":{"type":"integer"},"creditCurrency":{"type":"string"},"creditSources":{"type":"array","items":{"type":"string","enum":["referral","downgrade","launch","other"]}},"nextInvoice":{"type":["object","null"],"properties":{"at":{"type":"string"},"amountCents":{"type":"integer","minimum":0},"currency":{"type":"string"}},"required":["at","amountCents","currency"],"additionalProperties":false},"courtesyEndsAt":{"type":["string","null"],"format":"date-time"},"withdrawal":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"scheduledChange":{"type":["object","null"],"properties":{"planId":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["planId","at"],"additionalProperties":false}},"required":["currency","status","planId","cancelAtPeriodEnd","periodEnd","pause","refund","paymentMethod","creditCents","creditCurrency","creditSources","nextInvoice","courtesyEndsAt","withdrawal","scheduledChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/pause":{"post":{"operationId":"pauseBillingSubscription","summary":"Swap the live plan for the pause price and keep the world, backups and address","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused","none"]},"planId":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"periodEnd":{"type":["string","null"]},"pause":{"type":"object","properties":{"monthsUsed":{"type":"integer","minimum":0,"maximum":3},"maxMonths":{"type":"integer"},"resumesAt":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"allowed":{"type":"boolean"}},"required":["monthsUsed","maxMonths","resumesAt","priceCents","currency","allowed"],"additionalProperties":false},"refund":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"paymentMethod":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["card","paypal"]},"brand":{"type":"string"},"last4":{"type":["string","null"]},"expMonth":{"type":["integer","null"],"minimum":1,"maximum":12},"expYear":{"type":["integer","null"]},"holder":{"type":["string","null"]},"wallet":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","brand","last4","expMonth","expYear","holder","wallet","email"],"additionalProperties":false},"creditCents":{"type":"integer"},"creditCurrency":{"type":"string"},"creditSources":{"type":"array","items":{"type":"string","enum":["referral","downgrade","launch","other"]}},"nextInvoice":{"type":["object","null"],"properties":{"at":{"type":"string"},"amountCents":{"type":"integer","minimum":0},"currency":{"type":"string"}},"required":["at","amountCents","currency"],"additionalProperties":false},"courtesyEndsAt":{"type":["string","null"],"format":"date-time"},"withdrawal":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"scheduledChange":{"type":["object","null"],"properties":{"planId":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["planId","at"],"additionalProperties":false}},"required":["currency","status","planId","cancelAtPeriodEnd","periodEnd","pause","refund","paymentMethod","creditCents","creditCurrency","creditSources","nextInvoice","courtesyEndsAt","withdrawal","scheduledChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/resume":{"post":{"operationId":"resumeBillingSubscription","summary":"Put the paused subscription back on the plan it was on","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused","none"]},"planId":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"periodEnd":{"type":["string","null"]},"pause":{"type":"object","properties":{"monthsUsed":{"type":"integer","minimum":0,"maximum":3},"maxMonths":{"type":"integer"},"resumesAt":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"allowed":{"type":"boolean"}},"required":["monthsUsed","maxMonths","resumesAt","priceCents","currency","allowed"],"additionalProperties":false},"refund":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"paymentMethod":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["card","paypal"]},"brand":{"type":"string"},"last4":{"type":["string","null"]},"expMonth":{"type":["integer","null"],"minimum":1,"maximum":12},"expYear":{"type":["integer","null"]},"holder":{"type":["string","null"]},"wallet":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","brand","last4","expMonth","expYear","holder","wallet","email"],"additionalProperties":false},"creditCents":{"type":"integer"},"creditCurrency":{"type":"string"},"creditSources":{"type":"array","items":{"type":"string","enum":["referral","downgrade","launch","other"]}},"nextInvoice":{"type":["object","null"],"properties":{"at":{"type":"string"},"amountCents":{"type":"integer","minimum":0},"currency":{"type":"string"}},"required":["at","amountCents","currency"],"additionalProperties":false},"courtesyEndsAt":{"type":["string","null"],"format":"date-time"},"withdrawal":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"scheduledChange":{"type":["object","null"],"properties":{"planId":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["planId","at"],"additionalProperties":false}},"required":["currency","status","planId","cancelAtPeriodEnd","periodEnd","pause","refund","paymentMethod","creditCents","creditCurrency","creditSources","nextInvoice","courtesyEndsAt","withdrawal","scheduledChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/cancel":{"post":{"operationId":"cancelBillingSubscription","summary":"Cancel the subscription at the end of the current period, with an optional reason","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["price","stoppedPlaying","otherProvider","technical","eventOnly","other"]},"detail":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused","none"]},"planId":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"periodEnd":{"type":["string","null"]},"pause":{"type":"object","properties":{"monthsUsed":{"type":"integer","minimum":0,"maximum":3},"maxMonths":{"type":"integer"},"resumesAt":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"allowed":{"type":"boolean"}},"required":["monthsUsed","maxMonths","resumesAt","priceCents","currency","allowed"],"additionalProperties":false},"refund":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"paymentMethod":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["card","paypal"]},"brand":{"type":"string"},"last4":{"type":["string","null"]},"expMonth":{"type":["integer","null"],"minimum":1,"maximum":12},"expYear":{"type":["integer","null"]},"holder":{"type":["string","null"]},"wallet":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","brand","last4","expMonth","expYear","holder","wallet","email"],"additionalProperties":false},"creditCents":{"type":"integer"},"creditCurrency":{"type":"string"},"creditSources":{"type":"array","items":{"type":"string","enum":["referral","downgrade","launch","other"]}},"nextInvoice":{"type":["object","null"],"properties":{"at":{"type":"string"},"amountCents":{"type":"integer","minimum":0},"currency":{"type":"string"}},"required":["at","amountCents","currency"],"additionalProperties":false},"courtesyEndsAt":{"type":["string","null"],"format":"date-time"},"withdrawal":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"scheduledChange":{"type":["object","null"],"properties":{"planId":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["planId","at"],"additionalProperties":false}},"required":["currency","status","planId","cancelAtPeriodEnd","periodEnd","pause","refund","paymentMethod","creditCents","creditCurrency","creditSources","nextInvoice","courtesyEndsAt","withdrawal","scheduledChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/keep":{"post":{"operationId":"keepBillingSubscription","summary":"Clear a scheduled cancel so the subscription renews at the end of the period","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused","none"]},"planId":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"periodEnd":{"type":["string","null"]},"pause":{"type":"object","properties":{"monthsUsed":{"type":"integer","minimum":0,"maximum":3},"maxMonths":{"type":"integer"},"resumesAt":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"allowed":{"type":"boolean"}},"required":["monthsUsed","maxMonths","resumesAt","priceCents","currency","allowed"],"additionalProperties":false},"refund":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"paymentMethod":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["card","paypal"]},"brand":{"type":"string"},"last4":{"type":["string","null"]},"expMonth":{"type":["integer","null"],"minimum":1,"maximum":12},"expYear":{"type":["integer","null"]},"holder":{"type":["string","null"]},"wallet":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","brand","last4","expMonth","expYear","holder","wallet","email"],"additionalProperties":false},"creditCents":{"type":"integer"},"creditCurrency":{"type":"string"},"creditSources":{"type":"array","items":{"type":"string","enum":["referral","downgrade","launch","other"]}},"nextInvoice":{"type":["object","null"],"properties":{"at":{"type":"string"},"amountCents":{"type":"integer","minimum":0},"currency":{"type":"string"}},"required":["at","amountCents","currency"],"additionalProperties":false},"courtesyEndsAt":{"type":["string","null"],"format":"date-time"},"withdrawal":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"scheduledChange":{"type":["object","null"],"properties":{"planId":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["planId","at"],"additionalProperties":false}},"required":["currency","status","planId","cancelAtPeriodEnd","periodEnd","pause","refund","paymentMethod","creditCents","creditCurrency","creditSources","nextInvoice","courtesyEndsAt","withdrawal","scheduledChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/payment-method/setup":{"post":{"operationId":"setupBillingPaymentMethod","summary":"Open a Stripe SetupIntent for the Stripe customer of the signed-in account","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"clientSecret":{"type":"string"},"publishableKey":{"type":"string"}},"required":["clientSecret","publishableKey"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/payment-method":{"post":{"operationId":"saveBillingPaymentMethod","summary":"Make the card of a confirmed SetupIntent of the account its default payment method","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"setupIntentId":{"type":"string","pattern":"^seti_[A-Za-z0-9]{1,120}$"}},"required":["setupIntentId"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused","none"]},"planId":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"periodEnd":{"type":["string","null"]},"pause":{"type":"object","properties":{"monthsUsed":{"type":"integer","minimum":0,"maximum":3},"maxMonths":{"type":"integer"},"resumesAt":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"allowed":{"type":"boolean"}},"required":["monthsUsed","maxMonths","resumesAt","priceCents","currency","allowed"],"additionalProperties":false},"refund":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"paymentMethod":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["card","paypal"]},"brand":{"type":"string"},"last4":{"type":["string","null"]},"expMonth":{"type":["integer","null"],"minimum":1,"maximum":12},"expYear":{"type":["integer","null"]},"holder":{"type":["string","null"]},"wallet":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","brand","last4","expMonth","expYear","holder","wallet","email"],"additionalProperties":false},"creditCents":{"type":"integer"},"creditCurrency":{"type":"string"},"creditSources":{"type":"array","items":{"type":"string","enum":["referral","downgrade","launch","other"]}},"nextInvoice":{"type":["object","null"],"properties":{"at":{"type":"string"},"amountCents":{"type":"integer","minimum":0},"currency":{"type":"string"}},"required":["at","amountCents","currency"],"additionalProperties":false},"courtesyEndsAt":{"type":["string","null"],"format":"date-time"},"withdrawal":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"scheduledChange":{"type":["object","null"],"properties":{"planId":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["planId","at"],"additionalProperties":false}},"required":["currency","status","planId","cancelAtPeriodEnd","periodEnd","pause","refund","paymentMethod","creditCents","creditCurrency","creditSources","nextInvoice","courtesyEndsAt","withdrawal","scheduledChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/refund":{"post":{"operationId":"refundBillingSubscription","summary":"Refund the first paid invoice within seven days and move the account to Free","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused","none"]},"planId":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"periodEnd":{"type":["string","null"]},"pause":{"type":"object","properties":{"monthsUsed":{"type":"integer","minimum":0,"maximum":3},"maxMonths":{"type":"integer"},"resumesAt":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"allowed":{"type":"boolean"}},"required":["monthsUsed","maxMonths","resumesAt","priceCents","currency","allowed"],"additionalProperties":false},"refund":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"paymentMethod":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["card","paypal"]},"brand":{"type":"string"},"last4":{"type":["string","null"]},"expMonth":{"type":["integer","null"],"minimum":1,"maximum":12},"expYear":{"type":["integer","null"]},"holder":{"type":["string","null"]},"wallet":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","brand","last4","expMonth","expYear","holder","wallet","email"],"additionalProperties":false},"creditCents":{"type":"integer"},"creditCurrency":{"type":"string"},"creditSources":{"type":"array","items":{"type":"string","enum":["referral","downgrade","launch","other"]}},"nextInvoice":{"type":["object","null"],"properties":{"at":{"type":"string"},"amountCents":{"type":"integer","minimum":0},"currency":{"type":"string"}},"required":["at","amountCents","currency"],"additionalProperties":false},"courtesyEndsAt":{"type":["string","null"],"format":"date-time"},"withdrawal":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"scheduledChange":{"type":["object","null"],"properties":{"planId":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["planId","at"],"additionalProperties":false}},"required":["currency","status","planId","cancelAtPeriodEnd","periodEnd","pause","refund","paymentMethod","creditCents","creditCurrency","creditSources","nextInvoice","courtesyEndsAt","withdrawal","scheduledChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/withdraw":{"post":{"operationId":"withdrawBillingContract","summary":"Withdraw from the contract within fourteen days, refund the unused days and move the account to Free","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"status":{"type":"string","enum":["incomplete","incomplete_expired","trialing","active","past_due","canceled","unpaid","paused","none"]},"planId":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"periodEnd":{"type":["string","null"]},"pause":{"type":"object","properties":{"monthsUsed":{"type":"integer","minimum":0,"maximum":3},"maxMonths":{"type":"integer"},"resumesAt":{"type":["string","null"]},"priceCents":{"type":"integer"},"currency":{"type":"string"},"allowed":{"type":"boolean"}},"required":["monthsUsed","maxMonths","resumesAt","priceCents","currency","allowed"],"additionalProperties":false},"refund":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"paymentMethod":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["card","paypal"]},"brand":{"type":"string"},"last4":{"type":["string","null"]},"expMonth":{"type":["integer","null"],"minimum":1,"maximum":12},"expYear":{"type":["integer","null"]},"holder":{"type":["string","null"]},"wallet":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","brand","last4","expMonth","expYear","holder","wallet","email"],"additionalProperties":false},"creditCents":{"type":"integer"},"creditCurrency":{"type":"string"},"creditSources":{"type":"array","items":{"type":"string","enum":["referral","downgrade","launch","other"]}},"nextInvoice":{"type":["object","null"],"properties":{"at":{"type":"string"},"amountCents":{"type":"integer","minimum":0},"currency":{"type":"string"}},"required":["at","amountCents","currency"],"additionalProperties":false},"courtesyEndsAt":{"type":["string","null"],"format":"date-time"},"withdrawal":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiresAt":{"type":["string","null"]}},"required":["eligible","expiresAt"],"additionalProperties":false},"scheduledChange":{"type":["object","null"],"properties":{"planId":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["planId","at"],"additionalProperties":false}},"required":["currency","status","planId","cancelAtPeriodEnd","periodEnd","pause","refund","paymentMethod","creditCents","creditCurrency","creditSources","nextInvoice","courtesyEndsAt","withdrawal","scheduledChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/invoices":{"get":{"operationId":"getBillingInvoices","summary":"List the invoices of the account with their number, concept, amount and status","tags":["billing"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":24}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"issuedAt":{"type":"string"},"status":{"type":"string","enum":["open","paid","void","uncollectible","refunded","partially_rectified","rectified"]},"currency":{"type":"string"},"totalCents":{"type":"integer"},"taxCents":{"type":"integer"},"planId":{"type":["string","null"]},"interval":{"type":["string","null"],"enum":["month","year",null]},"addons":{"type":"array","items":{"type":"object","properties":{"addonId":{"type":"string"},"quantity":{"type":"integer"}},"required":["addonId","quantity"],"additionalProperties":false}},"taxLines":{"type":"array","items":{"type":"object","properties":{"amountCents":{"type":"integer"},"taxableAmountCents":{"type":"integer"},"rateBp":{"type":"integer"},"country":{"type":["string","null"]},"taxabilityReason":{"type":"string"}},"required":["amountCents","taxableAmountCents","rateBp","country","taxabilityReason"],"additionalProperties":false}},"hasPdf":{"type":"boolean"},"document":{"type":"object","properties":{"kind":{"type":"string","enum":["simplified","full","rectifying","substitute"]},"description":{"type":["string","null"]},"fullInvoice":{"type":"string","enum":["available","requested","expired","none"]},"fullInvoiceUntil":{"type":["string","null"]},"replacedBy":{"type":["string","null"]}},"required":["kind","description","fullInvoice","fullInvoiceUntil","replacedBy"],"additionalProperties":false}},"required":["number","issuedAt","status","currency","totalCents","taxCents","planId","interval","addons","taxLines","hasPdf"],"additionalProperties":false}}},"required":["invoices"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/invoices/:number/pdf":{"get":{"operationId":"getBillingInvoicePdf","summary":"Answer with a signed link to the pdf of an invoice of the account","tags":["billing"],"parameters":[{"name":"number","in":"path","required":true,"schema":{"oneOf":[{"type":"string","pattern":"^[FR]-\\d{4}-\\d{2}\\d{2,}$"},{"type":"string","pattern":"^(?:S|C|RS|RC|I)\\d{4}-\\d{6,}$"}]}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/invoices/:number/full-invoice":{"post":{"operationId":"requestBillingFullInvoice","summary":"Replace a simplified invoice of the account with a full invoice carrying its fiscal data","tags":["billing"],"parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string","pattern":"^(?:S|C|RS|RC|I)\\d{4}-\\d{6,}$"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"number":{"type":"string"}},"required":["number"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/fiscal-profile":{"get":{"operationId":"getBillingFiscalProfile","summary":"Read the fiscal data the invoices of the account carry","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":["object","null"],"properties":{"entityType":{"type":"string","enum":["individual","association","company"]},"legalName":{"type":"string"},"taxId":{"type":["string","null"]},"addressLine":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}},"required":["entityType","legalName","taxId","addressLine","postalCode","city","country"],"additionalProperties":false}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"saveBillingFiscalProfile","summary":"Replace the fiscal data of the account and send it to its Stripe customer","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entityType":{"type":"string","enum":["individual","association","company"]},"legalName":{"type":"string","minLength":1,"maxLength":120},"taxId":{"type":["string","null"],"maxLength":24,"default":null},"addressLine":{"type":"string","minLength":1,"maxLength":120},"postalCode":{"type":"string","minLength":1,"maxLength":16},"city":{"type":"string","minLength":1,"maxLength":120},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["entityType","legalName","addressLine","postalCode","city","country"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":["object","null"],"properties":{"entityType":{"type":"string","enum":["individual","association","company"]},"legalName":{"type":"string"},"taxId":{"type":["string","null"]},"addressLine":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}},"required":["entityType","legalName","taxId","addressLine","postalCode","city","country"],"additionalProperties":false}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/referrals":{"get":{"operationId":"getBillingReferrals","summary":"Count the friends the account invited, those who paid and the credit it earned","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"invited":{"type":"integer","minimum":0},"converted":{"type":"integer","minimum":0},"earnedCents":{"type":"integer","minimum":0}},"required":["invited","converted","earnedCents"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/coupons/validate":{"post":{"operationId":"validateBillingCoupon","summary":"Check a coupon against the plan and interval the account is about to pay","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":32},"planId":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"interval":{"type":"string","enum":["month","year"]}},"required":["code","planId","interval"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"planId":{"type":"string"},"terms":{"type":"object","properties":{"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer"},"cycles":{"type":["integer","null"]},"annualScope":{"type":["string","null"],"enum":["first_year","all_renewals",null]},"addonIds":{"type":"array","items":{"type":"string"}}},"required":["type","value","cycles"],"additionalProperties":false},"quote":{"type":"object","properties":{"subtotalCents":{"type":"integer"},"discountCents":{"type":"integer"},"totalCents":{"type":"integer"},"discountedCycles":{"type":["integer","null"]},"renewalCents":{"type":"integer"}},"required":["subtotalCents","discountCents","totalCents","discountedCycles","renewalCents"],"additionalProperties":false}},"required":["code","planId","terms","quote"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/coupons":{"get":{"operationId":"readBillingCoupon","summary":"Read the coupon that will land on the next invoice, if one is held","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"coupon":{"type":["object","null"],"properties":{"code":{"type":"string"},"planId":{"type":"string"},"terms":{"type":"object","properties":{"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer"},"cycles":{"type":["integer","null"]},"annualScope":{"type":["string","null"],"enum":["first_year","all_renewals",null]},"addonIds":{"type":"array","items":{"type":"string"}}},"required":["type","value","cycles"],"additionalProperties":false}},"required":["code","planId","terms"],"additionalProperties":false},"addonCoupon":{"type":["object","null"],"properties":{"code":{"type":"string"},"planId":{"type":"string"},"terms":{"type":"object","properties":{"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer"},"cycles":{"type":["integer","null"]},"annualScope":{"type":["string","null"],"enum":["first_year","all_renewals",null]},"addonIds":{"type":"array","items":{"type":"string"}}},"required":["type","value","cycles"],"additionalProperties":false}},"required":["code","planId","terms"],"additionalProperties":false}},"required":["coupon","addonCoupon"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"applyBillingCoupon","summary":"Apply a coupon to the live subscription, or start the plan upgrade an upgrade code grants","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":32}},"required":["code"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"planId":{"type":"string"},"terms":{"type":"object","properties":{"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer"},"cycles":{"type":["integer","null"]},"annualScope":{"type":["string","null"],"enum":["first_year","all_renewals",null]},"addonIds":{"type":"array","items":{"type":"string"}}},"required":["type","value","cycles"],"additionalProperties":false},"quote":{"type":"object","properties":{"subtotalCents":{"type":"integer"},"discountCents":{"type":"integer"},"totalCents":{"type":"integer"},"discountedCycles":{"type":["integer","null"]},"renewalCents":{"type":"integer"}},"required":["subtotalCents","discountCents","totalCents","discountedCycles","renewalCents"],"additionalProperties":false}},"required":["code","planId","terms","quote"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/upgrade":{"get":{"operationId":"readBillingUpgrade","summary":"Read the plan upgrade a code grants without a card, or the offer to stay once it ended","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":["object","null"],"properties":{"planId":{"type":"string"},"planName":{"type":"string"},"basePlanName":{"type":"string"},"endsAt":{"type":"string","format":"date-time"}},"required":["planId","planName","basePlanName","endsAt"],"additionalProperties":false},"offer":{"type":["object","null"],"properties":{"planId":{"type":"string"},"planName":{"type":"string"}},"required":["planId","planName"],"additionalProperties":false}},"required":["active","offer"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/coupons/clear":{"post":{"operationId":"clearBillingCoupon","summary":"Remove the coupon from the live subscription","tags":["billing"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"coupon":{"type":["object","null"],"properties":{"code":{"type":"string"},"planId":{"type":"string"},"terms":{"type":"object","properties":{"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer"},"cycles":{"type":["integer","null"]},"annualScope":{"type":["string","null"],"enum":["first_year","all_renewals",null]},"addonIds":{"type":"array","items":{"type":"string"}}},"required":["type","value","cycles"],"additionalProperties":false}},"required":["code","planId","terms"],"additionalProperties":false},"addonCoupon":{"type":["object","null"],"properties":{"code":{"type":"string"},"planId":{"type":"string"},"terms":{"type":"object","properties":{"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer"},"cycles":{"type":["integer","null"]},"annualScope":{"type":["string","null"],"enum":["first_year","all_renewals",null]},"addonIds":{"type":"array","items":{"type":"string"}}},"required":["type","value","cycles"],"additionalProperties":false}},"required":["code","planId","terms"],"additionalProperties":false}},"required":["coupon","addonCoupon"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/season":{"get":{"operationId":"readSeason","summary":"Read the seasonal theme live in an area, with its offer and texts in a locale","tags":["public"],"parameters":[{"name":"locale","in":"query","required":true,"schema":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},{"name":"area","in":"query","required":true,"schema":{"type":"string","enum":["web","registro","panel"]}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"season":{"type":["object","null"],"properties":{"theme":{"type":"string","enum":["halloween","blackfriday","navidad"]},"area":{"type":"string","enum":["web","registro","panel"]},"palette":{"type":"object","properties":{"acc":{"type":"string"},"accHi":{"type":"string"},"accRgb":{"type":"string"},"acc2":{"type":"string"},"bg":{"type":"string"},"bgRgb":{"type":"string"},"s1":{"type":"string"},"s2":{"type":"string"},"deep":{"type":"string"},"glow2":{"type":"string"},"mark":{"type":"string"}},"required":["acc","accHi","accRgb","acc2","bg","bgRgb","s1","s2","deep","glow2","mark"],"additionalProperties":false},"toggles":{"type":"object","properties":{"ribbon":{"type":"boolean"},"card":{"type":"boolean"},"fx":{"type":"boolean"},"mark":{"type":"boolean"},"cta":{"type":"boolean"}},"required":["ribbon","card","fx","mark","cta"],"additionalProperties":false},"fxLevel":{"type":"string","enum":["suave","normal","intensa"]},"code":{"type":"string"},"until":{"type":"string"},"plans":{"type":"array","items":{"type":"string"}},"allowAnnual":{"type":"boolean"},"texts":{"type":"object","properties":{"text":{"type":"string"},"discount":{"type":"string"},"offer":{"type":"string"},"ctaTitle":{"type":"string"}},"required":["text","discount","offer","ctaTitle"],"additionalProperties":false},"illustrationUrl":{"type":["string","null"]}},"required":["theme","area","palette","toggles","fxLevel","code","until","plans","allowAnnual","texts","illustrationUrl"],"additionalProperties":false}},"required":["season"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/season.css":{"get":{"operationId":"readSeasonStylesheet","summary":"Serve the palette variables of the live seasonal theme for each area that shows it","tags":["public"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"text/css":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/billing/coupon/apply":{"post":{"operationId":"applySeasonCoupon","summary":"Apply an offer code to the next invoice, or answer why it cannot be applied","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":32},"replace":{"type":"boolean"},"reactivate":{"type":"boolean"}},"required":["code"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["applied","already_applied","coupon_invalid","promo_over","plan_free","plan_ineligible","annual_not_allowed","subscription_canceled","other_coupon"]},"code":{"type":"string"},"theme":{"type":["string","null"],"enum":["halloween","blackfriday","navidad",null]},"terms":{"type":["object","null"],"properties":{"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer"},"cycles":{"type":["integer","null"]}},"required":["type","value","cycles"],"additionalProperties":false},"until":{"type":["string","null"]},"plans":{"type":"array","items":{"type":"string"}},"planId":{"type":["string","null"]},"planName":{"type":["string","null"]},"current":{"type":["object","null"],"properties":{"code":{"type":"string"},"terms":{"type":"object","properties":{"type":{"type":"string","enum":["pct","fixed","months","upgrade","annual","addon"]},"value":{"type":"integer"},"cycles":{"type":["integer","null"]}},"required":["type","value","cycles"],"additionalProperties":false}},"required":["code","terms"],"additionalProperties":false},"quote":{"type":["object","null"],"properties":{"beforeCents":{"type":"integer"},"afterCents":{"type":"integer"},"currency":{"type":"string"}},"required":["beforeCents","afterCents","currency"],"additionalProperties":false},"nextInvoiceAt":{"type":["string","null"],"format":"date-time"}},"required":["outcome","code","theme","terms","until","plans","planId","planName","current","quote","nextInvoiceAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/assistant/state":{"get":{"operationId":"readAssistantState","summary":"Say whether the AI assistant shows on a surface for this visitor, with its persona and server context","tags":["assistant"],"parameters":[{"name":"surface","in":"query","required":true,"schema":{"type":"string","enum":["public","portal"]}},{"name":"locale","in":"query","required":true,"schema":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},{"name":"serverId","in":"query","required":false,"schema":{"type":"string"}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"surface":{"type":"string","enum":["public","portal"]},"enabled":{"type":"boolean"},"persona":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"greeting":{"type":"string"},"chips":{"type":"array","items":{"type":"string"}}},"required":["name","role","greeting","chips"],"additionalProperties":false},"server":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"planId":{"type":"string"},"gameSlug":{"type":"string"},"gameVersion":{"type":"string"},"versionFixed":{"type":"boolean"}},"required":["id","name","state","planId","gameSlug","gameVersion","versionFixed"],"additionalProperties":false},"paymentFailed":{"type":"boolean"},"triggers":{"type":"object","properties":{"crash":{"type":"object","properties":{"on":{"type":"boolean"},"style":{"type":"string","enum":["open","notice"]},"delaySeconds":{"type":"integer","minimum":0}},"required":["on","style","delaySeconds"],"additionalProperties":false},"payfail":{"type":"object","properties":{"on":{"type":"boolean"},"style":{"type":"string","enum":["open","notice"]},"delaySeconds":{"type":"integer","minimum":0}},"required":["on","style","delaySeconds"],"additionalProperties":false},"cancel":{"type":"object","properties":{"on":{"type":"boolean"},"style":{"type":"string","enum":["open","notice"]},"delaySeconds":{"type":"integer","minimum":0}},"required":["on","style","delaySeconds"],"additionalProperties":false},"limit":{"type":"object","properties":{"on":{"type":"boolean"},"style":{"type":"string","enum":["open","notice"]},"delaySeconds":{"type":"integer","minimum":0}},"required":["on","style","delaySeconds"],"additionalProperties":false},"full":{"type":"object","properties":{"on":{"type":"boolean"},"style":{"type":"string","enum":["open","notice"]},"delaySeconds":{"type":"integer","minimum":0}},"required":["on","style","delaySeconds"],"additionalProperties":false},"pricing":{"type":"object","properties":{"on":{"type":"boolean"},"style":{"type":"string","enum":["open","notice"]},"delaySeconds":{"type":"integer","minimum":0}},"required":["on","style","delaySeconds"],"additionalProperties":false},"exit":{"type":"object","properties":{"on":{"type":"boolean"},"style":{"type":"string","enum":["open","notice"]},"delaySeconds":{"type":"integer","minimum":0}},"required":["on","style","delaySeconds"],"additionalProperties":false}},"required":["crash","payfail","cancel","limit","full","pricing","exit"],"additionalProperties":false}},"required":["surface","enabled","persona","server","paymentFailed","triggers"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The portal surface needs a session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The visitor is banned from the assistant","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/assistant/message":{"post":{"operationId":"sendAssistantMessage","summary":"Send one message to the AI assistant and get its answer with cards and quick replies","tags":["assistant"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"surface":{"type":"string","enum":["public","portal"]},"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"conversationId":{"type":"string"},"serverId":{"type":"string"},"text":{"type":"string","minLength":1,"maxLength":1000},"pick":{"type":"object","properties":{"step":{"type":"string","enum":["game","template","players","region","name","plan"]},"value":{"type":"string","minLength":1,"maxLength":64}},"required":["step","value"],"additionalProperties":false}},"required":["surface","locale","text"],"additionalProperties":false}}}},"security":[{"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"conversationId":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["assistant"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","role","text","createdAt"],"additionalProperties":false}},"cards":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["plan"]},"currency":{"type":"string","enum":["EUR"]},"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"monthlyCents":{"type":"integer","minimum":0},"slots":{"type":["integer","null"],"minimum":0},"ramMb":{"type":["integer","null"],"minimum":0},"hoursPerMonth":{"type":["integer","null"],"minimum":0},"allowsMods":{"type":"boolean"}},"required":["id","name","accent","monthlyCents","slots","ramMb","hoursPerMonth","allowsMods"],"additionalProperties":false}},"required":["kind","currency","plan"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["plans"]},"currency":{"type":"string","enum":["EUR"]},"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"monthlyCents":{"type":"integer","minimum":0},"slots":{"type":["integer","null"],"minimum":0},"ramMb":{"type":["integer","null"],"minimum":0},"hoursPerMonth":{"type":["integer","null"],"minimum":0},"allowsMods":{"type":"boolean"}},"required":["id","name","accent","monthlyCents","slots","ramMb","hoursPerMonth","allowsMods"],"additionalProperties":false}}},"required":["kind","currency","plans"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["cta"]},"target":{"type":"string","enum":["signup","pricing","billing","payment","cancel","support"]},"danger":{"type":"boolean"}},"required":["kind","target","danger"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["action"]},"id":{"type":"string"},"action":{"type":"string","enum":["restart","logs","coupon","upgrade","extend","version","backup","ticket","create"]},"mode":{"type":"string","enum":["confirm","auto"]},"state":{"type":"string","enum":["proposed","running","done","failed"]},"serverId":{"type":["string","null"]},"params":{"type":"object","properties":{},"additionalProperties":false}},"required":["kind","id","action","mode","state","serverId","params"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["denied"]},"action":{"type":"string","enum":["restart","logs","coupon","upgrade","extend","version","backup","ticket","create"]},"ticketActionId":{"type":"string"}},"required":["kind","action"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["checkout"]},"planId":{"type":"string"},"reason":{"type":"string","enum":["assistant"]}},"required":["kind","planId","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ticket"]},"state":{"type":"string","enum":["offered"]},"actionId":{"type":"string"}},"required":["kind","state"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ticket"]},"state":{"type":"string","enum":["created"]},"ticketId":{"type":"string"},"number":{"type":"integer","minimum":1}},"required":["kind","state","ticketId","number"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ban"]},"message":{"type":"string"}},"required":["kind","message"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["create-step"]},"step":{"type":"string","enum":["game","template","players","region","name","plan"]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"recommended":{"type":"boolean"},"fits":{"type":"boolean"},"ramMb":{"type":["integer","null"],"minimum":0},"pingMs":{"type":["integer","null"],"minimum":0}},"required":["value","label","recommended","fits","ramMb","pingMs"],"additionalProperties":false}}},"required":["kind","step","options"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["server"]},"serverId":{"type":"string"},"name":{"type":"string"},"gameSlug":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["kind","serverId","name","gameSlug","state"],"additionalProperties":false}]}},"chips":{"type":"array","items":{"type":"string"}}},"required":["conversationId","messages","cards","chips"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The portal surface needs a session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The visitor is banned from the assistant","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The conversation belongs to another visitor or surface","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The assistant is turned off on this surface","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/assistant/actions/:id/confirm":{"post":{"operationId":"confirmAssistantAction","summary":"Run an action the portal assistant proposed, after checking its mode, caps and server ownership again","tags":["assistant"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}},"required":["locale"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"conversationId":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["assistant"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","role","text","createdAt"],"additionalProperties":false}},"cards":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["plan"]},"currency":{"type":"string","enum":["EUR"]},"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"monthlyCents":{"type":"integer","minimum":0},"slots":{"type":["integer","null"],"minimum":0},"ramMb":{"type":["integer","null"],"minimum":0},"hoursPerMonth":{"type":["integer","null"],"minimum":0},"allowsMods":{"type":"boolean"}},"required":["id","name","accent","monthlyCents","slots","ramMb","hoursPerMonth","allowsMods"],"additionalProperties":false}},"required":["kind","currency","plan"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["plans"]},"currency":{"type":"string","enum":["EUR"]},"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"monthlyCents":{"type":"integer","minimum":0},"slots":{"type":["integer","null"],"minimum":0},"ramMb":{"type":["integer","null"],"minimum":0},"hoursPerMonth":{"type":["integer","null"],"minimum":0},"allowsMods":{"type":"boolean"}},"required":["id","name","accent","monthlyCents","slots","ramMb","hoursPerMonth","allowsMods"],"additionalProperties":false}}},"required":["kind","currency","plans"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["cta"]},"target":{"type":"string","enum":["signup","pricing","billing","payment","cancel","support"]},"danger":{"type":"boolean"}},"required":["kind","target","danger"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["action"]},"id":{"type":"string"},"action":{"type":"string","enum":["restart","logs","coupon","upgrade","extend","version","backup","ticket","create"]},"mode":{"type":"string","enum":["confirm","auto"]},"state":{"type":"string","enum":["proposed","running","done","failed"]},"serverId":{"type":["string","null"]},"params":{"type":"object","properties":{},"additionalProperties":false}},"required":["kind","id","action","mode","state","serverId","params"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["denied"]},"action":{"type":"string","enum":["restart","logs","coupon","upgrade","extend","version","backup","ticket","create"]},"ticketActionId":{"type":"string"}},"required":["kind","action"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["checkout"]},"planId":{"type":"string"},"reason":{"type":"string","enum":["assistant"]}},"required":["kind","planId","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ticket"]},"state":{"type":"string","enum":["offered"]},"actionId":{"type":"string"}},"required":["kind","state"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ticket"]},"state":{"type":"string","enum":["created"]},"ticketId":{"type":"string"},"number":{"type":"integer","minimum":1}},"required":["kind","state","ticketId","number"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ban"]},"message":{"type":"string"}},"required":["kind","message"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["create-step"]},"step":{"type":"string","enum":["game","template","players","region","name","plan"]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"recommended":{"type":"boolean"},"fits":{"type":"boolean"},"ramMb":{"type":["integer","null"],"minimum":0},"pingMs":{"type":["integer","null"],"minimum":0}},"required":["value","label","recommended","fits","ramMb","pingMs"],"additionalProperties":false}}},"required":["kind","step","options"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["server"]},"serverId":{"type":"string"},"name":{"type":"string"},"gameSlug":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["kind","serverId","name","gameSlug","state"],"additionalProperties":false}]}},"chips":{"type":"array","items":{"type":"string"}}},"required":["conversationId","messages","cards","chips"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The action needs a session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The visitor is banned from the assistant","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The action belongs to another account or does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The action was already answered, has expired, or the assistant is turned off","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/assistant/event":{"post":{"operationId":"openAssistantEvent","summary":"Open the portal assistant on a proactive event (crash, payment failure, cancel, Free limit, full server)","tags":["assistant"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"event":{"type":"string","enum":["crash","payfail","cancel","limit","full"]},"conversationId":{"type":"string"},"serverId":{"type":"string"}},"required":["locale","event"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"conversationId":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["assistant"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","role","text","createdAt"],"additionalProperties":false}},"cards":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["plan"]},"currency":{"type":"string","enum":["EUR"]},"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"monthlyCents":{"type":"integer","minimum":0},"slots":{"type":["integer","null"],"minimum":0},"ramMb":{"type":["integer","null"],"minimum":0},"hoursPerMonth":{"type":["integer","null"],"minimum":0},"allowsMods":{"type":"boolean"}},"required":["id","name","accent","monthlyCents","slots","ramMb","hoursPerMonth","allowsMods"],"additionalProperties":false}},"required":["kind","currency","plan"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["plans"]},"currency":{"type":"string","enum":["EUR"]},"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"monthlyCents":{"type":"integer","minimum":0},"slots":{"type":["integer","null"],"minimum":0},"ramMb":{"type":["integer","null"],"minimum":0},"hoursPerMonth":{"type":["integer","null"],"minimum":0},"allowsMods":{"type":"boolean"}},"required":["id","name","accent","monthlyCents","slots","ramMb","hoursPerMonth","allowsMods"],"additionalProperties":false}}},"required":["kind","currency","plans"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["cta"]},"target":{"type":"string","enum":["signup","pricing","billing","payment","cancel","support"]},"danger":{"type":"boolean"}},"required":["kind","target","danger"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["action"]},"id":{"type":"string"},"action":{"type":"string","enum":["restart","logs","coupon","upgrade","extend","version","backup","ticket","create"]},"mode":{"type":"string","enum":["confirm","auto"]},"state":{"type":"string","enum":["proposed","running","done","failed"]},"serverId":{"type":["string","null"]},"params":{"type":"object","properties":{},"additionalProperties":false}},"required":["kind","id","action","mode","state","serverId","params"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["denied"]},"action":{"type":"string","enum":["restart","logs","coupon","upgrade","extend","version","backup","ticket","create"]},"ticketActionId":{"type":"string"}},"required":["kind","action"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["checkout"]},"planId":{"type":"string"},"reason":{"type":"string","enum":["assistant"]}},"required":["kind","planId","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ticket"]},"state":{"type":"string","enum":["offered"]},"actionId":{"type":"string"}},"required":["kind","state"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ticket"]},"state":{"type":"string","enum":["created"]},"ticketId":{"type":"string"},"number":{"type":"integer","minimum":1}},"required":["kind","state","ticketId","number"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ban"]},"message":{"type":"string"}},"required":["kind","message"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["create-step"]},"step":{"type":"string","enum":["game","template","players","region","name","plan"]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"recommended":{"type":"boolean"},"fits":{"type":"boolean"},"ramMb":{"type":["integer","null"],"minimum":0},"pingMs":{"type":["integer","null"],"minimum":0}},"required":["value","label","recommended","fits","ramMb","pingMs"],"additionalProperties":false}}},"required":["kind","step","options"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["server"]},"serverId":{"type":"string"},"name":{"type":"string"},"gameSlug":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["kind","serverId","name","gameSlug","state"],"additionalProperties":false}]}},"chips":{"type":"array","items":{"type":"string"}}},"required":["conversationId","messages","cards","chips"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The portal assistant needs a session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The visitor is banned from the assistant","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The conversation or the server belongs to another account","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The portal assistant or this event is turned off","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/assistant/create-draft":{"post":{"operationId":"resumeAssistantCreate","summary":"Resume the server the portal assistant is helping to create, after a checkout or a page change","tags":["assistant"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]},"conversationId":{"type":"string"}},"required":["locale","conversationId"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"conversationId":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["assistant"]},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","role","text","createdAt"],"additionalProperties":false}},"cards":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["plan"]},"currency":{"type":"string","enum":["EUR"]},"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"monthlyCents":{"type":"integer","minimum":0},"slots":{"type":["integer","null"],"minimum":0},"ramMb":{"type":["integer","null"],"minimum":0},"hoursPerMonth":{"type":["integer","null"],"minimum":0},"allowsMods":{"type":"boolean"}},"required":["id","name","accent","monthlyCents","slots","ramMb","hoursPerMonth","allowsMods"],"additionalProperties":false}},"required":["kind","currency","plan"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["plans"]},"currency":{"type":"string","enum":["EUR"]},"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"monthlyCents":{"type":"integer","minimum":0},"slots":{"type":["integer","null"],"minimum":0},"ramMb":{"type":["integer","null"],"minimum":0},"hoursPerMonth":{"type":["integer","null"],"minimum":0},"allowsMods":{"type":"boolean"}},"required":["id","name","accent","monthlyCents","slots","ramMb","hoursPerMonth","allowsMods"],"additionalProperties":false}}},"required":["kind","currency","plans"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["cta"]},"target":{"type":"string","enum":["signup","pricing","billing","payment","cancel","support"]},"danger":{"type":"boolean"}},"required":["kind","target","danger"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["action"]},"id":{"type":"string"},"action":{"type":"string","enum":["restart","logs","coupon","upgrade","extend","version","backup","ticket","create"]},"mode":{"type":"string","enum":["confirm","auto"]},"state":{"type":"string","enum":["proposed","running","done","failed"]},"serverId":{"type":["string","null"]},"params":{"type":"object","properties":{},"additionalProperties":false}},"required":["kind","id","action","mode","state","serverId","params"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["denied"]},"action":{"type":"string","enum":["restart","logs","coupon","upgrade","extend","version","backup","ticket","create"]},"ticketActionId":{"type":"string"}},"required":["kind","action"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["checkout"]},"planId":{"type":"string"},"reason":{"type":"string","enum":["assistant"]}},"required":["kind","planId","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ticket"]},"state":{"type":"string","enum":["offered"]},"actionId":{"type":"string"}},"required":["kind","state"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ticket"]},"state":{"type":"string","enum":["created"]},"ticketId":{"type":"string"},"number":{"type":"integer","minimum":1}},"required":["kind","state","ticketId","number"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["ban"]},"message":{"type":"string"}},"required":["kind","message"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["create-step"]},"step":{"type":"string","enum":["game","template","players","region","name","plan"]},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"recommended":{"type":"boolean"},"fits":{"type":"boolean"},"ramMb":{"type":["integer","null"],"minimum":0},"pingMs":{"type":["integer","null"],"minimum":0}},"required":["value","label","recommended","fits","ramMb","pingMs"],"additionalProperties":false}}},"required":["kind","step","options"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["server"]},"serverId":{"type":"string"},"name":{"type":"string"},"gameSlug":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["kind","serverId","name","gameSlug","state"],"additionalProperties":false}]}},"chips":{"type":"array","items":{"type":"string"}}},"required":["conversationId","messages","cards","chips"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The portal assistant needs a session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The visitor is banned from the assistant","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"The conversation belongs to another account","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"The portal assistant is turned off","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/panel-promo/active":{"get":{"operationId":"readActivePanelPromo","summary":"Read the promo the account is eligible for now, so the checkout can pre-fill its coupon","tags":["servers"],"parameters":[{"name":"locale","in":"query","required":true,"schema":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":["object","null"],"properties":{"mode":{"type":"string","enum":["apply","choose"]},"source":{"type":"string","enum":["season","coupon"]},"theme":{"type":["string","null"],"enum":["halloween","blackfriday","navidad",null]},"locale":{"type":"string","enum":["es","en","pt","fr","de","it"]},"code":{"type":"string"},"couponType":{"type":"string","enum":["pct","fixed","months"]},"value":{"type":"number"},"discount":{"type":"string"},"detail":{"type":"string"},"headline":{"type":"string"},"endsAt":{"type":["string","null"],"format":"date-time"},"colors":{"type":"object","properties":{"acc":{"type":"string"},"accRgb":{"type":"string"},"s1":{"type":"string"}},"required":["acc","accRgb","s1"],"additionalProperties":false},"dismiss":{"type":"string","enum":["last48","never"]}},"required":["mode","source","theme","locale","code","couponType","value","discount","detail","headline","endsAt","colors","dismiss"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"PANEL_PROMO_NOT_LIVE: the code is not the promo the banner announces now","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/panel-promo/dismiss":{"post":{"operationId":"dismissPanelPromo","summary":"Close the dashboard promo banner for the account, as the dismiss policy of the promo allows","tags":["servers"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":2,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]+$"}},"required":["code"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"PANEL_PROMO_NOT_LIVE: the code is not the promo the banner announces now","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/panel-promo/events":{"post":{"operationId":"recordPanelPromoEvent","summary":"Count an impression or a click of the dashboard promo banner","tags":["servers"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":2,"maxLength":32,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]+$"},"kind":{"type":"string","enum":["impression","click","checkout","removed"]}},"required":["code","kind"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"204":{"description":"Empty response","headers":{"Cache-Control":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"PANEL_PROMO_NOT_LIVE: the code is not the promo the banner announces now","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notifications":{"get":{"operationId":"listNotifications","summary":"Read the notifications of the bell and how many are still unread","tags":["notifications"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"event":{"type":"string","enum":["server_down","daily_time_warning","free_time_ended","server_full","backup_completed","backup_missing","billing","product_news","support_session","support_reply","support_resolved","abuse_warning","incident_update","first_player","server_relocated","promo_granted","account_suspended","account_reinstated","access_removed","access_role_changed"]},"params":{"type":"object","properties":{},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time"},"read":{"type":"boolean"}},"required":["id","event","params","createdAt","read"],"additionalProperties":false}},"unread":{"type":"integer","minimum":0}},"required":["notifications","unread"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notifications/read":{"post":{"operationId":"markNotificationsRead","summary":"Mark every notification of the reader as read","tags":["notifications"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"event":{"type":"string","enum":["server_down","daily_time_warning","free_time_ended","server_full","backup_completed","backup_missing","billing","product_news","support_session","support_reply","support_resolved","abuse_warning","incident_update","first_player","server_relocated","promo_granted","account_suspended","account_reinstated","access_removed","access_role_changed"]},"params":{"type":"object","properties":{},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time"},"read":{"type":"boolean"}},"required":["id","event","params","createdAt","read"],"additionalProperties":false}},"unread":{"type":"integer","minimum":0}},"required":["notifications","unread"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support":{"get":{"operationId":"readSupportOverview","summary":"Read the SLA of the plan, the contextual help and the tickets of the account","tags":["support"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"helpTopics":{"type":"array","items":{"type":"string","enum":["lag","bedrock","freeHours","connect","backups"]}},"servers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"payments":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}},"backups":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}},"tickets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"integer"},"title":{"type":"string"},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"department":{"type":"string","enum":["technical","billing","accounts","moderation","general"]},"status":{"type":"string","enum":["open","waiting","done"]},"planId":{"type":"string"},"serverId":{"type":["string","null"]},"serverName":{"type":["string","null"]},"messageCount":{"type":"integer"},"attachmentCount":{"type":"integer"},"unread":{"type":"boolean"},"unreadCount":{"type":"integer","minimum":0},"firstResponseAt":{"type":["string","null"],"format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastActivityAt":{"type":"string","format":"date-time"},"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}}},"required":["id","reference","title","category","department","status","planId","serverId","serverName","messageCount","attachmentCount","unread","unreadCount","firstResponseAt","resolvedAt","createdAt","updatedAt","lastActivityAt","links"],"additionalProperties":false}}},"required":["planId","helpTopics","servers","payments","backups","tickets"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support/tickets":{"post":{"operationId":"openSupportTicket","summary":"Open a ticket, with the last console lines of the server attached","tags":["support"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":["string","null"],"minLength":6,"maxLength":90,"default":null},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"body":{"type":"string","minLength":1,"maxLength":20000},"serverId":{"type":["string","null"],"default":null},"links":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["server","backup"]},"id":{"type":"string"}},"required":["kind","id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["payment"]},"id":{"type":"string","pattern":"^[A-Za-z0-9_]{1,255}$"}},"required":["kind","id"],"additionalProperties":false}]},"default":[]},"attachConsoleLog":{"type":"boolean","default":true},"recentRequests":{"type":"array","items":{"type":"object","properties":{"requestId":{"type":"string"},"method":{"type":"string","enum":["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},"route":{"type":"string","maxLength":300,"pattern":"^\\S+$"},"status":{"type":["integer","null"],"minimum":100,"maximum":599},"at":{"type":"string","format":"date-time"}},"required":["requestId","method","route","status","at"],"additionalProperties":false},"default":[]}},"required":["category","body"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"integer"},"title":{"type":"string"},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"department":{"type":"string","enum":["technical","billing","accounts","moderation","general"]},"status":{"type":"string","enum":["open","waiting","done"]},"planId":{"type":"string"},"serverId":{"type":["string","null"]},"serverName":{"type":["string","null"]},"messageCount":{"type":"integer"},"attachmentCount":{"type":"integer"},"unread":{"type":"boolean"},"unreadCount":{"type":"integer","minimum":0},"firstResponseAt":{"type":["string","null"],"format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastActivityAt":{"type":"string","format":"date-time"}},"required":["id","reference","title","category","department","status","planId","serverId","serverName","messageCount","attachmentCount","unread","unreadCount","firstResponseAt","resolvedAt","createdAt","updatedAt","lastActivityAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string","enum":["user","agent","system"]},"authorName":{"type":"string"},"body":{"type":"string"},"detail":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","authorName","body","detail","createdAt"],"additionalProperties":false}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"messageId":{"type":["string","null"]},"kind":{"type":"string","enum":["console_log","capture"]},"name":{"type":"string"},"contentType":{"type":"string"},"lineCount":{"type":"integer"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","messageId","kind","name","contentType","lineCount","sizeBytes","createdAt"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}}},"required":["ticket","messages","attachments","links"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support/tickets/:ticketId":{"get":{"operationId":"readSupportTicket","summary":"Read the thread of a ticket of the account and mark it as read","tags":["support"],"parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"integer"},"title":{"type":"string"},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"department":{"type":"string","enum":["technical","billing","accounts","moderation","general"]},"status":{"type":"string","enum":["open","waiting","done"]},"planId":{"type":"string"},"serverId":{"type":["string","null"]},"serverName":{"type":["string","null"]},"messageCount":{"type":"integer"},"attachmentCount":{"type":"integer"},"unread":{"type":"boolean"},"unreadCount":{"type":"integer","minimum":0},"firstResponseAt":{"type":["string","null"],"format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastActivityAt":{"type":"string","format":"date-time"}},"required":["id","reference","title","category","department","status","planId","serverId","serverName","messageCount","attachmentCount","unread","unreadCount","firstResponseAt","resolvedAt","createdAt","updatedAt","lastActivityAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string","enum":["user","agent","system"]},"authorName":{"type":"string"},"body":{"type":"string"},"detail":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","authorName","body","detail","createdAt"],"additionalProperties":false}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"messageId":{"type":["string","null"]},"kind":{"type":"string","enum":["console_log","capture"]},"name":{"type":"string"},"contentType":{"type":"string"},"lineCount":{"type":"integer"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","messageId","kind","name","contentType","lineCount","sizeBytes","createdAt"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}}},"required":["ticket","messages","attachments","links"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support/tickets/:ticketId/messages":{"post":{"operationId":"replySupportTicket","summary":"Answer support on a ticket of the account and resume the SLA clock","tags":["support"],"parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":20000}},"required":["body"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"integer"},"title":{"type":"string"},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"department":{"type":"string","enum":["technical","billing","accounts","moderation","general"]},"status":{"type":"string","enum":["open","waiting","done"]},"planId":{"type":"string"},"serverId":{"type":["string","null"]},"serverName":{"type":["string","null"]},"messageCount":{"type":"integer"},"attachmentCount":{"type":"integer"},"unread":{"type":"boolean"},"unreadCount":{"type":"integer","minimum":0},"firstResponseAt":{"type":["string","null"],"format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastActivityAt":{"type":"string","format":"date-time"}},"required":["id","reference","title","category","department","status","planId","serverId","serverName","messageCount","attachmentCount","unread","unreadCount","firstResponseAt","resolvedAt","createdAt","updatedAt","lastActivityAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string","enum":["user","agent","system"]},"authorName":{"type":"string"},"body":{"type":"string"},"detail":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","authorName","body","detail","createdAt"],"additionalProperties":false}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"messageId":{"type":["string","null"]},"kind":{"type":"string","enum":["console_log","capture"]},"name":{"type":"string"},"contentType":{"type":"string"},"lineCount":{"type":"integer"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","messageId","kind","name","contentType","lineCount","sizeBytes","createdAt"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}}},"required":["ticket","messages","attachments","links"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support/tickets/:ticketId/attachments":{"post":{"operationId":"attachSupportTicketLog","summary":"Attach the last console lines of the server of the ticket","tags":["support"],"parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"integer"},"title":{"type":"string"},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"department":{"type":"string","enum":["technical","billing","accounts","moderation","general"]},"status":{"type":"string","enum":["open","waiting","done"]},"planId":{"type":"string"},"serverId":{"type":["string","null"]},"serverName":{"type":["string","null"]},"messageCount":{"type":"integer"},"attachmentCount":{"type":"integer"},"unread":{"type":"boolean"},"unreadCount":{"type":"integer","minimum":0},"firstResponseAt":{"type":["string","null"],"format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastActivityAt":{"type":"string","format":"date-time"}},"required":["id","reference","title","category","department","status","planId","serverId","serverName","messageCount","attachmentCount","unread","unreadCount","firstResponseAt","resolvedAt","createdAt","updatedAt","lastActivityAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string","enum":["user","agent","system"]},"authorName":{"type":"string"},"body":{"type":"string"},"detail":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","authorName","body","detail","createdAt"],"additionalProperties":false}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"messageId":{"type":["string","null"]},"kind":{"type":"string","enum":["console_log","capture"]},"name":{"type":"string"},"contentType":{"type":"string"},"lineCount":{"type":"integer"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","messageId","kind","name","contentType","lineCount","sizeBytes","createdAt"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}}},"required":["ticket","messages","attachments","links"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support/tickets/:ticketId/captures":{"post":{"operationId":"attachSupportTicketCapture","summary":"Attach a screenshot the account uploads from the browser to its own ticket","tags":["support"],"parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"default":""},"contentType":{"type":["string","null"],"enum":["image/png","image/jpeg","text/plain","application/pdf",null],"default":null},"data":{"type":"string","maxLength":13981016},"messageId":{"type":["string","null"],"default":null}},"required":["data"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"integer"},"title":{"type":"string"},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"department":{"type":"string","enum":["technical","billing","accounts","moderation","general"]},"status":{"type":"string","enum":["open","waiting","done"]},"planId":{"type":"string"},"serverId":{"type":["string","null"]},"serverName":{"type":["string","null"]},"messageCount":{"type":"integer"},"attachmentCount":{"type":"integer"},"unread":{"type":"boolean"},"unreadCount":{"type":"integer","minimum":0},"firstResponseAt":{"type":["string","null"],"format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastActivityAt":{"type":"string","format":"date-time"}},"required":["id","reference","title","category","department","status","planId","serverId","serverName","messageCount","attachmentCount","unread","unreadCount","firstResponseAt","resolvedAt","createdAt","updatedAt","lastActivityAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string","enum":["user","agent","system"]},"authorName":{"type":"string"},"body":{"type":"string"},"detail":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","authorName","body","detail","createdAt"],"additionalProperties":false}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"messageId":{"type":["string","null"]},"kind":{"type":"string","enum":["console_log","capture"]},"name":{"type":"string"},"contentType":{"type":"string"},"lineCount":{"type":"integer"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","messageId","kind","name","contentType","lineCount","sizeBytes","createdAt"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}}},"required":["ticket","messages","attachments","links"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support/tickets/:ticketId/captures/:attachmentId":{"get":{"operationId":"readSupportTicketCapture","summary":"Serve the screenshot of a ticket of the account, never from a public bucket","tags":["support"],"parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support/tickets/:ticketId/resolve":{"post":{"operationId":"resolveSupportTicket","summary":"Close a ticket of the account","tags":["support"],"parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"integer"},"title":{"type":"string"},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"department":{"type":"string","enum":["technical","billing","accounts","moderation","general"]},"status":{"type":"string","enum":["open","waiting","done"]},"planId":{"type":"string"},"serverId":{"type":["string","null"]},"serverName":{"type":["string","null"]},"messageCount":{"type":"integer"},"attachmentCount":{"type":"integer"},"unread":{"type":"boolean"},"unreadCount":{"type":"integer","minimum":0},"firstResponseAt":{"type":["string","null"],"format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastActivityAt":{"type":"string","format":"date-time"}},"required":["id","reference","title","category","department","status","planId","serverId","serverName","messageCount","attachmentCount","unread","unreadCount","firstResponseAt","resolvedAt","createdAt","updatedAt","lastActivityAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string","enum":["user","agent","system"]},"authorName":{"type":"string"},"body":{"type":"string"},"detail":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","authorName","body","detail","createdAt"],"additionalProperties":false}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"messageId":{"type":["string","null"]},"kind":{"type":"string","enum":["console_log","capture"]},"name":{"type":"string"},"contentType":{"type":"string"},"lineCount":{"type":"integer"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","messageId","kind","name","contentType","lineCount","sizeBytes","createdAt"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}}},"required":["ticket","messages","attachments","links"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/support/tickets/:ticketId/reopen":{"post":{"operationId":"reopenSupportTicket","summary":"Reopen a closed ticket of the account and start the SLA clock again","tags":["support"],"parameters":[{"name":"ticketId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"integer"},"title":{"type":"string"},"category":{"type":"string","enum":["server","billing","account","backups","abuse","other"]},"department":{"type":"string","enum":["technical","billing","accounts","moderation","general"]},"status":{"type":"string","enum":["open","waiting","done"]},"planId":{"type":"string"},"serverId":{"type":["string","null"]},"serverName":{"type":["string","null"]},"messageCount":{"type":"integer"},"attachmentCount":{"type":"integer"},"unread":{"type":"boolean"},"unreadCount":{"type":"integer","minimum":0},"firstResponseAt":{"type":["string","null"],"format":"date-time"},"resolvedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastActivityAt":{"type":"string","format":"date-time"}},"required":["id","reference","title","category","department","status","planId","serverId","serverName","messageCount","attachmentCount","unread","unreadCount","firstResponseAt","resolvedAt","createdAt","updatedAt","lastActivityAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string","enum":["user","agent","system"]},"authorName":{"type":"string"},"body":{"type":"string"},"detail":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","author","authorName","body","detail","createdAt"],"additionalProperties":false}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"messageId":{"type":["string","null"]},"kind":{"type":"string","enum":["console_log","capture"]},"name":{"type":"string"},"contentType":{"type":"string"},"lineCount":{"type":"integer"},"sizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","messageId","kind","name","contentType","lineCount","sizeBytes","createdAt"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["server","payment","backup"]},"id":{"type":"string"},"name":{"type":["string","null"]},"serverName":{"type":["string","null"]},"planId":{"type":["string","null"]},"amountCents":{"type":["integer","null"]},"currency":{"type":["string","null"]},"at":{"type":["string","null"],"format":"date-time"},"state":{"type":["string","null"]}},"required":["kind","id","name","serverName","planId","amountCents","currency","at","state"],"additionalProperties":false}}},"required":["ticket","messages","attachments","links"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers":{"get":{"operationId":"getServerDashboard","summary":"Read the servers of the account with their live metrics and the plan allowance; with a locale, also the promo banner the account is eligible for","tags":["servers"],"parameters":[{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["es","en","pt-BR","pt-PT","fr","de","it","ru","uk"]}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"planAccent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"quotas":{"type":"object","properties":{"servers":{"type":"object","properties":{"value":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["value","unlimited"],"additionalProperties":false},"slots":{"type":"object","properties":{"value":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["value","unlimited"],"additionalProperties":false},"ramMb":{"type":"object","properties":{"value":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["value","unlimited"],"additionalProperties":false},"diskMb":{"type":"object","properties":{"value":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["value","unlimited"],"additionalProperties":false}},"required":["servers","slots","ramMb","diskMb"],"additionalProperties":false},"unlimitedHours":{"type":"boolean"},"uptimePercent30d":{"type":["number","null"]},"serversUsed":{"type":"number"},"allocated":{"type":"object","properties":{"ramMb":{"type":"number"},"diskMb":{"type":"number"}},"required":["ramMb","diskMb"],"additionalProperties":false},"canCreateServer":{"type":"boolean"},"free":{"type":["object","null"],"properties":{"sessionSecondsLimit":{"type":"number"},"sessionSecondsLeft":{"type":"number"},"monthlySecondsLimit":{"type":"number"},"monthlySecondsUsed":{"type":"number"},"resetsAt":{"type":"string","format":"date-time"},"sessionEndsAt":{"type":["string","null"],"format":"date-time"},"exhausted":{"type":["string","null"],"enum":["day","month",null]},"bonusSecondsLeft":{"type":"integer","minimum":0},"timeMultiplier":{"type":"number","minimum":1},"stoppedAt":{"type":["string","null"],"format":"date-time"}},"required":["sessionSecondsLimit","sessionSecondsLeft","monthlySecondsLimit","monthlySecondsUsed","resetsAt","sessionEndsAt","exhausted","bonusSecondsLeft","timeMultiplier"],"additionalProperties":false},"servers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"gameSlug":{"type":"string"},"gameVersion":{"type":"string"},"regionCode":{"type":"string"},"regionPingMs":{"type":["number","null"]},"planId":{"type":"string"},"planAccent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"isFree":{"type":"boolean"},"timeMultiplier":{"type":"number","minimum":1},"safeMode":{"type":"boolean"},"safeModeReason":{"type":["string","null"],"enum":["ram_mb","disk_mb","servers",null]},"address":{"type":["object","null"],"properties":{"host":{"type":"string"},"port":{"type":"number"}},"required":["host","port"],"additionalProperties":false},"players":{"type":"object","properties":{"online":{"type":["number","null"]},"slots":{"type":["number","null"]},"names":{"type":"array","items":{"type":"string"}}},"required":["online","slots","names"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuPercent":{"type":["number","null"]},"cpuLimitMillicores":{"type":["number","null"]},"memoryUsedMb":{"type":["number","null"]},"memoryLimitMb":{"type":["number","null"]},"diskUsedMb":{"type":["number","null"]},"diskLimitMb":{"type":["number","null"]},"tps":{"type":["number","null"]},"tickMs":{"type":["number","null"]},"networkInBytesPerSecond":{"type":["number","null"]},"networkOutBytesPerSecond":{"type":["number","null"]}},"required":["cpuPercent","cpuLimitMillicores","memoryUsedMb","memoryLimitMb","diskUsedMb","diskLimitMb","tps","tickMs","networkInBytesPerSecond","networkOutBytesPerSecond"],"additionalProperties":false},"trashedAt":{"type":["string","null"],"format":"date-time"},"purgeAfter":{"type":["string","null"],"format":"date-time"},"uptimeSeconds":{"type":["number","null"]},"onlineSince":{"type":["string","null"],"format":"date-time"},"lastBackupAt":{"type":["string","null"],"format":"date-time"},"lastSessionAt":{"type":["string","null"],"format":"date-time"},"liveUnavailable":{"type":"boolean","enum":[true]},"liveStale":{"type":"boolean","enum":[true]}},"required":["id","name","slug","gameSlug","gameVersion","regionCode","regionPingMs","planId","planAccent","state","isFree","timeMultiplier","safeMode","safeModeReason","address","players","resources","trashedAt","purgeAfter","uptimeSeconds","onlineSince","lastBackupAt","lastSessionAt"],"additionalProperties":false}},"trashed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"gameSlug":{"type":"string"},"gameVersion":{"type":"string"},"regionCode":{"type":"string"},"regionPingMs":{"type":["number","null"]},"planId":{"type":"string"},"planAccent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"isFree":{"type":"boolean"},"timeMultiplier":{"type":"number","minimum":1},"safeMode":{"type":"boolean"},"safeModeReason":{"type":["string","null"],"enum":["ram_mb","disk_mb","servers",null]},"address":{"type":["object","null"],"properties":{"host":{"type":"string"},"port":{"type":"number"}},"required":["host","port"],"additionalProperties":false},"players":{"type":"object","properties":{"online":{"type":["number","null"]},"slots":{"type":["number","null"]},"names":{"type":"array","items":{"type":"string"}}},"required":["online","slots","names"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuPercent":{"type":["number","null"]},"cpuLimitMillicores":{"type":["number","null"]},"memoryUsedMb":{"type":["number","null"]},"memoryLimitMb":{"type":["number","null"]},"diskUsedMb":{"type":["number","null"]},"diskLimitMb":{"type":["number","null"]},"tps":{"type":["number","null"]},"tickMs":{"type":["number","null"]},"networkInBytesPerSecond":{"type":["number","null"]},"networkOutBytesPerSecond":{"type":["number","null"]}},"required":["cpuPercent","cpuLimitMillicores","memoryUsedMb","memoryLimitMb","diskUsedMb","diskLimitMb","tps","tickMs","networkInBytesPerSecond","networkOutBytesPerSecond"],"additionalProperties":false},"trashedAt":{"type":["string","null"],"format":"date-time"},"purgeAfter":{"type":["string","null"],"format":"date-time"},"uptimeSeconds":{"type":["number","null"]},"onlineSince":{"type":["string","null"],"format":"date-time"},"lastBackupAt":{"type":["string","null"],"format":"date-time"},"lastSessionAt":{"type":["string","null"],"format":"date-time"},"liveUnavailable":{"type":"boolean","enum":[true]},"liveStale":{"type":"boolean","enum":[true]}},"required":["id","name","slug","gameSlug","gameVersion","regionCode","regionPingMs","planId","planAccent","state","isFree","timeMultiplier","safeMode","safeModeReason","address","players","resources","trashedAt","purgeAfter","uptimeSeconds","onlineSince","lastBackupAt","lastSessionAt"],"additionalProperties":false}},"trashDays":{"type":"integer","minimum":1},"promo":{"type":["object","null"],"properties":{"mode":{"type":"string","enum":["apply","choose"]},"source":{"type":"string","enum":["season","coupon"]},"theme":{"type":["string","null"],"enum":["halloween","blackfriday","navidad",null]},"locale":{"type":"string","enum":["es","en","pt","fr","de","it"]},"code":{"type":"string"},"couponType":{"type":"string","enum":["pct","fixed","months"]},"value":{"type":"number"},"discount":{"type":"string"},"detail":{"type":"string"},"headline":{"type":"string"},"endsAt":{"type":["string","null"],"format":"date-time"},"colors":{"type":"object","properties":{"acc":{"type":"string"},"accRgb":{"type":"string"},"s1":{"type":"string"}},"required":["acc","accRgb","s1"],"additionalProperties":false},"dismiss":{"type":"string","enum":["last48","never"]}},"required":["mode","source","theme","locale","code","couponType","value","discount","detail","headline","endsAt","colors","dismiss"],"additionalProperties":false}},"required":["planId","planAccent","quotas","unlimitedHours","uptimePercent30d","serversUsed","allocated","canCreateServer","free","servers","trashed","trashDays","promo"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"createServer","summary":"Create a server for the account and queue its provisioning","tags":["servers"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gameSlug":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"name":{"type":"string","minLength":1,"maxLength":48},"slug":{"type":"string","minLength":3,"maxLength":32,"pattern":"^[a-z0-9-]{3,32}$"},"regionCode":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"template":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"version":{"type":"string","maxLength":32},"mode":{"type":"string","enum":["survival","creative","hardcore","adventure","classic","expert","master","journey","coop","competitive","peaceful","pve","pvp","pvpve","casual"]},"difficulty":{"type":"string","enum":["peaceful","easy","normal","hard","soft","tough"]},"maxPlayers":{"type":"integer","minimum":1,"maximum":255},"pvp":{"type":"boolean"},"whitelist":{"type":"boolean"},"onlineMode":{"type":"boolean"},"ramMb":{"type":"integer","minimum":512,"maximum":32768},"diskMb":{"type":"integer","minimum":1024,"maximum":102400},"eulaAccepted":{"type":"boolean"},"secret":{"type":"string","maxLength":4096},"public":{"type":"boolean"},"password":{"type":"string","maxLength":128},"seed":{"type":"string","maxLength":128},"world":{"type":"object","properties":{},"additionalProperties":false},"presentation":{"type":"object","properties":{},"additionalProperties":false},"icon":{"type":"string","maxLength":87384},"database":{"type":"boolean"}},"required":["gameSlug","name","slug","regionCode","template","version","mode","difficulty","maxPlayers","pvp","whitelist","ramMb","diskMb"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"address":{"type":["object","null"],"properties":{"host":{"type":"string"},"port":{"type":"number"}},"required":["host","port"],"additionalProperties":false}},"required":["serverId","name","slug","state","address"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/allowance":{"get":{"operationId":"getServerCreateAllowance","summary":"Read what the plan of the account still allows the create wizard to spend","tags":["servers"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"canCreateServer":{"type":"boolean"},"servers":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["used","limit","unlimited"],"additionalProperties":false},"ramMb":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["used","limit","unlimited"],"additionalProperties":false},"diskMb":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["used","limit","unlimited"],"additionalProperties":false},"slots":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["used","limit","unlimited"],"additionalProperties":false},"nodeRamMb":{"type":"object","properties":{},"additionalProperties":false}},"required":["planId","canCreateServer","servers","ramMb","diskMb","slots","nodeRamMb"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/slug-availability":{"get":{"operationId":"getServerSlugAvailability","summary":"Tell the create wizard whether the address it previews is still free","tags":["servers"],"parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":32,"pattern":"^[a-z0-9-]{3,32}$"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"available":{"type":"boolean"}},"required":["slug","available"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/overview":{"get":{"operationId":"getServerOverview","summary":"Read the overview of one server with its resources, players, console and activity","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"server":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"gameSlug":{"type":"string"},"gameVersion":{"type":"string"},"regionCode":{"type":"string"},"regionPingMs":{"type":["number","null"]},"planId":{"type":"string"},"planAccent":{"type":"string","enum":["slate","sky","lime","pink","amber","violet","green","orange"]},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"isFree":{"type":"boolean"},"timeMultiplier":{"type":"number","minimum":1},"safeMode":{"type":"boolean"},"safeModeReason":{"type":["string","null"],"enum":["ram_mb","disk_mb","servers",null]},"address":{"type":["object","null"],"properties":{"host":{"type":"string"},"port":{"type":"number"}},"required":["host","port"],"additionalProperties":false},"players":{"type":"object","properties":{"online":{"type":["number","null"]},"slots":{"type":["number","null"]},"names":{"type":"array","items":{"type":"string"}}},"required":["online","slots","names"],"additionalProperties":false},"resources":{"type":"object","properties":{"cpuPercent":{"type":["number","null"]},"cpuLimitMillicores":{"type":["number","null"]},"memoryUsedMb":{"type":["number","null"]},"memoryLimitMb":{"type":["number","null"]},"diskUsedMb":{"type":["number","null"]},"diskLimitMb":{"type":["number","null"]},"tps":{"type":["number","null"]},"tickMs":{"type":["number","null"]},"networkInBytesPerSecond":{"type":["number","null"]},"networkOutBytesPerSecond":{"type":["number","null"]}},"required":["cpuPercent","cpuLimitMillicores","memoryUsedMb","memoryLimitMb","diskUsedMb","diskLimitMb","tps","tickMs","networkInBytesPerSecond","networkOutBytesPerSecond"],"additionalProperties":false},"trashedAt":{"type":["string","null"],"format":"date-time"},"purgeAfter":{"type":["string","null"],"format":"date-time"},"uptimeSeconds":{"type":["number","null"]},"onlineSince":{"type":["string","null"],"format":"date-time"},"lastBackupAt":{"type":["string","null"],"format":"date-time"},"lastSessionAt":{"type":["string","null"],"format":"date-time"},"liveUnavailable":{"type":"boolean","enum":[true]},"liveStale":{"type":"boolean","enum":[true]}},"required":["id","name","slug","gameSlug","gameVersion","regionCode","regionPingMs","planId","planAccent","state","isFree","timeMultiplier","safeMode","safeModeReason","address","players","resources","trashedAt","purgeAfter","uptimeSeconds","onlineSince","lastBackupAt","lastSessionAt"],"additionalProperties":false},"availabilityPercent30d":{"type":["number","null"]},"online":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"op":{"type":"boolean"},"sessionMs":{"type":["number","null"]},"pingMs":{"type":["number","null"]},"steam":{"type":"object","properties":{"steamId":{"type":"string","pattern":"^7656119\\d{10}$"},"avatarUrl":{"type":["string","null"]},"createdYear":{"type":["integer","null"]},"hoursPlayed":{"type":["integer","null"],"minimum":0},"vac":{"type":["object","null"],"properties":{"bans":{"type":"integer","minimum":1},"gameBans":{"type":"integer","minimum":0},"daysSinceLastBan":{"type":"integer","minimum":0}},"required":["bans","gameBans","daysSinceLastBan"],"additionalProperties":false}},"required":["steamId","avatarUrl","createdYear","hoursPlayed","vac"],"additionalProperties":false},"nonSteam":{"type":"boolean","enum":[true]}},"required":["name","op","sessionMs","pingMs"],"additionalProperties":false}},"lastBackup":{"type":["object","null"],"properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"},"sizeBytes":{"type":"number"},"name":{"type":["string","null"]}},"required":["id","at","sizeBytes","name"],"additionalProperties":false},"nextTask":{"type":["object","null"],"properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"}},"required":["id","at","kind","name"],"additionalProperties":false},"free":{"type":["object","null"],"properties":{"sessionSecondsLimit":{"type":"number"},"sessionSecondsLeft":{"type":"number"},"monthlySecondsLimit":{"type":"number"},"monthlySecondsUsed":{"type":"number"},"resetsAt":{"type":"string","format":"date-time"},"sessionEndsAt":{"type":["string","null"],"format":"date-time"},"exhausted":{"type":["string","null"],"enum":["day","month",null]},"bonusSecondsLeft":{"type":"integer","minimum":0},"timeMultiplier":{"type":"number","minimum":1},"stoppedAt":{"type":["string","null"],"format":"date-time"}},"required":["sessionSecondsLimit","sessionSecondsLeft","monthlySecondsLimit","monthlySecondsUsed","resetsAt","sessionEndsAt","exhausted","bonusSecondsLeft","timeMultiplier"],"additionalProperties":false},"unlimitedHours":{"type":"boolean"},"queuePosition":{"type":["number","null"]},"queueEtaSeconds":{"type":["number","null"]},"queueHold":{"type":"object","properties":{"reason":{"type":"string","enum":["node-full","node-unavailable"]},"nodeName":{"type":"string"}},"required":["reason","nodeName"],"additionalProperties":false},"console":{"type":"array","items":{"type":"string"}},"joinPorts":{"type":"object","properties":{"bedrockPort":{"type":["number","null"]},"queryPort":{"type":["number","null"]}},"required":["bedrockPort","queryPort"],"additionalProperties":false},"joinPassword":{"type":"string"},"trashDays":{"type":"integer","minimum":1},"awaitingFirstPlayer":{"type":"boolean"},"freeTimeLegacyBlocked":{"type":"boolean","enum":[true]},"activity":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"},"actor":{"type":["string","null"]},"kind":{"type":"string","enum":["state","progress","failure"]},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"step":{"type":["string","null"]}},"required":["id","at","actor","kind","state","step"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"},"actor":{"type":["string","null"]},"kind":{"type":"string","enum":["join","leave"]}},"required":["id","at","actor","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"},"actor":{"type":["string","null"]},"kind":{"type":"string","enum":["backup"]},"name":{"type":["string","null"]},"origin":{"type":"string","enum":["manual","daily","pre_restore","pre_version_change","pre_world_change","pre_migration","pre_database_change","archive"]},"failed":{"type":"boolean"},"sizeBytes":{"type":"integer","minimum":0}},"required":["id","at","actor","kind","name","origin","failed","sizeBytes"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"},"actor":{"type":["string","null"]},"kind":{"type":"string","enum":["command"]},"command":{"type":"string"},"bySupport":{"type":"boolean","enum":[true]}},"required":["id","at","actor","kind","command"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"},"actor":{"type":["string","null"]},"kind":{"type":"string","enum":["support"]},"action":{"type":"string","enum":["server.power","console.command","players.manage","backups.create","backups.manage","files.manage","plugins.manage","schedule.manage","settings.manage","owner","member.invited","member.resent","member.revoked","member.joined","member.role","member.removed","member.left","database.remote_changed","database.enabled","database.disabled","database.password_viewed","database.password_rotated","database.config_written","database.pma_opened","database.imported","database.exported","database.wiped"]}},"required":["id","at","actor","kind","action"],"additionalProperties":false}]}},"billingSuspension":{"type":["object","null"],"properties":{"failedChargeAt":{"type":"string","format":"date-time"},"retentionDays":{"type":"integer","minimum":0}},"required":["failedChargeAt","retentionDays"],"additionalProperties":false},"idleSleep":{"type":["object","null"],"properties":{"minutes":{"type":"integer","minimum":1},"at":{"type":"string","format":"date-time"}},"required":["minutes","at"],"additionalProperties":false},"template":{"type":["string","null"]},"unavailable":{"type":"array","items":{"type":"string","enum":["metrics","online","console"]}}},"required":["server","availabilityPercent30d","online","lastBackup","nextTask","free","unlimitedHours","queuePosition","queueEtaSeconds","console","joinPorts","trashDays","activity","billingSuspension","idleSleep","template"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/power":{"post":{"operationId":"runServerPowerAction","summary":"Queue a start, a stop or a restart of the server","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["start","stop","restart"]}},"required":["action"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["serverId","state"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/kill":{"post":{"operationId":"killServer","summary":"Queue a forced stop that deletes the pod of the server without the save grace period","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["serverId","state"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/restore":{"post":{"operationId":"restoreTrashedServer","summary":"Take the server out of the trash before the grace period ends","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["serverId","state"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/free-tier/usage":{"get":{"operationId":"getFreeTierUsage","summary":"Read the free allowance of the account, what it spent and when it resets","tags":["free-tier"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string"},"unlimitedHours":{"type":"boolean"},"free":{"type":["object","null"],"properties":{"sessionSecondsLimit":{"type":"number"},"sessionSecondsLeft":{"type":"number"},"monthlySecondsLimit":{"type":"number"},"monthlySecondsUsed":{"type":"number"},"resetsAt":{"type":"string","format":"date-time"},"sessionEndsAt":{"type":["string","null"],"format":"date-time"},"exhausted":{"type":["string","null"],"enum":["day","month",null]},"bonusSecondsLeft":{"type":"integer","minimum":0},"timeMultiplier":{"type":"number","minimum":1},"stoppedAt":{"type":["string","null"],"format":"date-time"}},"required":["sessionSecondsLimit","sessionSecondsLeft","monthlySecondsLimit","monthlySecondsUsed","resetsAt","sessionEndsAt","exhausted","bonusSecondsLeft","timeMultiplier"],"additionalProperties":false}},"required":["planId","unlimitedHours","free"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/ads/placement":{"get":{"operationId":"readAdPlacement","summary":"Read the ad units the account is shown, none outside the Free ads arm","tags":["ads"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"rewardedAdUnit":{"type":["string","null"]},"panelAdUnits":{"type":"object","properties":{"top":{"type":["string","null"]},"rail":{"type":["string","null"]},"inflow":{"type":["string","null"]},"end":{"type":["string","null"]},"sticky":{"type":["string","null"]},"wizard":{"type":["string","null"]}},"required":["top","rail","inflow","end","sticky","wizard"],"additionalProperties":false},"sessionBonusAvailable":{"type":"boolean"}},"required":["rewardedAdUnit","panelAdUnits","sessionBonusAvailable"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/ads/blog-placement":{"get":{"operationId":"readBlogAdPlacement","summary":"Read the ad unit of the blog articles, none for an account whose plan shows no ads","tags":["ads"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"blogAdUnit":{"type":["string","null"]}},"required":["blogAdUnit"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/session-bonus/offer":{"post":{"operationId":"offerSessionBonus","summary":"Issue the single-use nonce a rewarded ad redeems for one more hour of a Free session","tags":["ads"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"nonce":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}},"required":["nonce","expiresAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/session-bonus":{"post":{"operationId":"grantSessionBonus","summary":"Redeem the nonce of a watched rewarded ad for 60 minutes of the current Free session, three times a day","tags":["ads"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonce":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}},"required":["nonce"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"grantedSeconds":{"type":"integer"},"grantIndex":{"type":"integer","minimum":1,"maximum":3}},"required":["grantedSeconds","grantIndex"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/console/commands":{"post":{"operationId":"runServerConsoleCommand","summary":"Run one command of the catalogue on the server through RCON","tags":["console"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"command":{"type":"string","maxLength":256},"confirmed":{"type":"boolean","enum":[true]}},"required":["command"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"command":{"type":"string"},"reply":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["command","reply","at"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/players":{"get":{"operationId":"listServerPlayers","summary":"Read the online, whitelist, operator and banned lists of a server","tags":["players"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"whitelistEnabled":{"type":"boolean"},"online":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"op":{"type":"boolean"},"sessionMs":{"type":["number","null"]},"pingMs":{"type":["number","null"]},"steam":{"type":"object","properties":{"steamId":{"type":"string","pattern":"^7656119\\d{10}$"},"avatarUrl":{"type":["string","null"]},"createdYear":{"type":["integer","null"]},"hoursPlayed":{"type":["integer","null"],"minimum":0},"vac":{"type":["object","null"],"properties":{"bans":{"type":"integer","minimum":1},"gameBans":{"type":"integer","minimum":0},"daysSinceLastBan":{"type":"integer","minimum":0}},"required":["bans","gameBans","daysSinceLastBan"],"additionalProperties":false}},"required":["steamId","avatarUrl","createdYear","hoursPlayed","vac"],"additionalProperties":false},"nonSteam":{"type":"boolean","enum":[true]}},"required":["name","op","sessionMs","pingMs"],"additionalProperties":false}},"whitelist":{"type":"array","items":{"type":"string"}},"ops":{"type":"array","items":{"type":"string"}},"banned":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":["string","null"]}},"required":["name","reason"],"additionalProperties":false}},"slots":{"type":["number","null"]}},"required":["whitelistEnabled","online","whitelist","ops","banned","slots"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/players/activity":{"get":{"operationId":"readServerPlayerActivity","summary":"Read the unique players per day and the connection history of a server","tags":["players"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"uniquesByDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"players":{"type":"number"}},"required":["day","players"],"additionalProperties":false}},"peak":{"type":["object","null"],"properties":{"day":{"type":"string"},"players":{"type":"number"}},"required":["day","players"],"additionalProperties":false},"connections":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"at":{"type":"string"},"kind":{"type":"string","enum":["join","leave"]},"sessionMs":{"type":["number","null"]}},"required":["name","at","kind","sessionMs"],"additionalProperties":false}}},"required":["uniquesByDay","peak","connections"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/players/whitelist":{"post":{"operationId":"updateServerWhitelist","summary":"Toggle the whitelist or add names to it through RCON","tags":["players"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"names":{"type":"string","maxLength":4096}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"whitelistEnabled":{"type":"boolean"},"online":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"op":{"type":"boolean"},"sessionMs":{"type":["number","null"]},"pingMs":{"type":["number","null"]},"steam":{"type":"object","properties":{"steamId":{"type":"string","pattern":"^7656119\\d{10}$"},"avatarUrl":{"type":["string","null"]},"createdYear":{"type":["integer","null"]},"hoursPlayed":{"type":["integer","null"],"minimum":0},"vac":{"type":["object","null"],"properties":{"bans":{"type":"integer","minimum":1},"gameBans":{"type":"integer","minimum":0},"daysSinceLastBan":{"type":"integer","minimum":0}},"required":["bans","gameBans","daysSinceLastBan"],"additionalProperties":false}},"required":["steamId","avatarUrl","createdYear","hoursPlayed","vac"],"additionalProperties":false},"nonSteam":{"type":"boolean","enum":[true]}},"required":["name","op","sessionMs","pingMs"],"additionalProperties":false}},"whitelist":{"type":"array","items":{"type":"string"}},"ops":{"type":"array","items":{"type":"string"}},"banned":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":["string","null"]}},"required":["name","reason"],"additionalProperties":false}},"slots":{"type":["number","null"]}},"required":["whitelistEnabled","online","whitelist","ops","banned","slots"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/players/actions":{"post":{"operationId":"runServerPlayerAction","summary":"Kick, ban, pardon, op, teleport, change gamemode or message a player","tags":["players"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["kick","ban","pardon","op","deop","tp","gamemode","msg","whitelist_add","whitelist_remove"]},"player":{"type":"string","maxLength":17,"pattern":"^\\.?\\w(?:[\\w ]{0,14}\\w)?$"},"target":{"type":"string","maxLength":16,"pattern":"^\\w(?:[\\w ]{0,14}\\w)?$"},"reason":{"type":"string","maxLength":80},"mode":{"type":"string","enum":["survival","creative","adventure","spectator"]},"message":{"type":"string","maxLength":200}},"required":["action","player"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"whitelistEnabled":{"type":"boolean"},"online":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"op":{"type":"boolean"},"sessionMs":{"type":["number","null"]},"pingMs":{"type":["number","null"]},"steam":{"type":"object","properties":{"steamId":{"type":"string","pattern":"^7656119\\d{10}$"},"avatarUrl":{"type":["string","null"]},"createdYear":{"type":["integer","null"]},"hoursPlayed":{"type":["integer","null"],"minimum":0},"vac":{"type":["object","null"],"properties":{"bans":{"type":"integer","minimum":1},"gameBans":{"type":"integer","minimum":0},"daysSinceLastBan":{"type":"integer","minimum":0}},"required":["bans","gameBans","daysSinceLastBan"],"additionalProperties":false}},"required":["steamId","avatarUrl","createdYear","hoursPlayed","vac"],"additionalProperties":false},"nonSteam":{"type":"boolean","enum":[true]}},"required":["name","op","sessionMs","pingMs"],"additionalProperties":false}},"whitelist":{"type":"array","items":{"type":"string"}},"ops":{"type":"array","items":{"type":"string"}},"banned":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":["string","null"]}},"required":["name","reason"],"additionalProperties":false}},"slots":{"type":["number","null"]}},"required":["whitelistEnabled","online","whitelist","ops","banned","slots"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/players/lists/:tab":{"get":{"operationId":"readServerPlayerListFile","summary":"Read an admin, ban or allow list the game keeps in a file","tags":["players"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tab","in":"path","required":true,"schema":{"type":"string","enum":["whitelist","ops","banned"]}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"applies":{"type":"string","enum":["live","start"]},"ranks":{"type":"array","items":{"type":"string"}},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"rank":{"type":["string","null"]}},"required":["id","rank"],"additionalProperties":false}}},"required":["path","applies","ranks","entries"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"changeServerPlayerListFile","summary":"Add an id to or remove it from a list the game keeps in a file","tags":["players"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"tab","in":"path","required":true,"schema":{"type":"string","enum":["whitelist","ops","banned"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["add","remove"]},"id":{"type":"string","minLength":1,"maxLength":64},"rank":{"type":"string","pattern":"^[a-z]{1,16}$"}},"required":["action","id"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"applies":{"type":"string","enum":["live","start"]},"ranks":{"type":"array","items":{"type":"string"}},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"rank":{"type":["string","null"]}},"required":["id","rank"],"additionalProperties":false}}},"required":["path","applies","ranks","entries"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/network":{"get":{"operationId":"readServerNetwork","summary":"Read the address, the SRV record and the Bedrock bridge of a server","tags":["network"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"slug":{"type":"string"},"host":{"type":"string"},"address":{"type":"string"},"domainSuffix":{"type":"string"},"directIp":{"type":["string","null"]},"port":{"type":["number","null"]},"steamQueryAddress":{"type":["string","null"]},"srvName":{"type":["string","null"]},"bedrockSupported":{"type":"boolean"},"bedrockEnabled":{"type":"boolean"},"bedrockRefusal":{"type":["string","null"],"enum":["loader","version","modpack",null]},"bedrockPort":{"type":["number","null"]},"versionChangeable":{"type":"boolean"},"propagationSeconds":{"type":"number"},"customDomainAllowed":{"type":"boolean"},"customDomain":{"type":["object","null"],"properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"failure":{"type":["string","null"],"enum":["token_missing","pointer_missing","lookup_failed",null]},"tokenName":{"type":"string"},"tokenValue":{"type":"string"},"cnameTarget":{"type":"string"},"srvName":{"type":["string","null"]},"srvTarget":{"type":["string","null"]},"checkedAt":{"type":["string","null"]}},"required":["hostname","status","failure","tokenName","tokenValue","cnameTarget","srvName","srvTarget","checkedAt"],"additionalProperties":false}},"required":["serverId","slug","host","address","domainSuffix","directIp","port","steamQueryAddress","srvName","bedrockSupported","bedrockEnabled","bedrockRefusal","bedrockPort","versionChangeable","propagationSeconds","customDomainAllowed","customDomain"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/subdomain":{"post":{"operationId":"changeServerSubdomain","summary":"Move the server to another subdomain and rewrite its DNS records","tags":["network"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":3,"maxLength":32,"pattern":"^[a-z0-9-]{3,32}$"}},"required":["slug"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"slug":{"type":"string"},"host":{"type":"string"},"address":{"type":"string"},"domainSuffix":{"type":"string"},"directIp":{"type":["string","null"]},"port":{"type":["number","null"]},"steamQueryAddress":{"type":["string","null"]},"srvName":{"type":["string","null"]},"bedrockSupported":{"type":"boolean"},"bedrockEnabled":{"type":"boolean"},"bedrockRefusal":{"type":["string","null"],"enum":["loader","version","modpack",null]},"bedrockPort":{"type":["number","null"]},"versionChangeable":{"type":"boolean"},"propagationSeconds":{"type":"number"},"customDomainAllowed":{"type":"boolean"},"customDomain":{"type":["object","null"],"properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"failure":{"type":["string","null"],"enum":["token_missing","pointer_missing","lookup_failed",null]},"tokenName":{"type":"string"},"tokenValue":{"type":"string"},"cnameTarget":{"type":"string"},"srvName":{"type":["string","null"]},"srvTarget":{"type":["string","null"]},"checkedAt":{"type":["string","null"]}},"required":["hostname","status","failure","tokenName","tokenValue","cnameTarget","srvName","srvTarget","checkedAt"],"additionalProperties":false}},"required":["serverId","slug","host","address","domainSuffix","directIp","port","steamQueryAddress","srvName","bedrockSupported","bedrockEnabled","bedrockRefusal","bedrockPort","versionChangeable","propagationSeconds","customDomainAllowed","customDomain"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/bedrock":{"post":{"operationId":"setServerBedrock","summary":"Turn the Geyser and Floodgate bridge for Bedrock players on or off","tags":["network"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"slug":{"type":"string"},"host":{"type":"string"},"address":{"type":"string"},"domainSuffix":{"type":"string"},"directIp":{"type":["string","null"]},"port":{"type":["number","null"]},"steamQueryAddress":{"type":["string","null"]},"srvName":{"type":["string","null"]},"bedrockSupported":{"type":"boolean"},"bedrockEnabled":{"type":"boolean"},"bedrockRefusal":{"type":["string","null"],"enum":["loader","version","modpack",null]},"bedrockPort":{"type":["number","null"]},"versionChangeable":{"type":"boolean"},"propagationSeconds":{"type":"number"},"customDomainAllowed":{"type":"boolean"},"customDomain":{"type":["object","null"],"properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"failure":{"type":["string","null"],"enum":["token_missing","pointer_missing","lookup_failed",null]},"tokenName":{"type":"string"},"tokenValue":{"type":"string"},"cnameTarget":{"type":"string"},"srvName":{"type":["string","null"]},"srvTarget":{"type":["string","null"]},"checkedAt":{"type":["string","null"]}},"required":["hostname","status","failure","tokenName","tokenValue","cnameTarget","srvName","srvTarget","checkedAt"],"additionalProperties":false}},"required":["serverId","slug","host","address","domainSuffix","directIp","port","steamQueryAddress","srvName","bedrockSupported","bedrockEnabled","bedrockRefusal","bedrockPort","versionChangeable","propagationSeconds","customDomainAllowed","customDomain"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/custom-domain":{"post":{"operationId":"claimServerCustomDomain","summary":"Point a domain the owner controls at the server and mint its verification token","tags":["network"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"string","maxLength":253,"pattern":"^(?=.{4,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}},"required":["hostname"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"slug":{"type":"string"},"host":{"type":"string"},"address":{"type":"string"},"domainSuffix":{"type":"string"},"directIp":{"type":["string","null"]},"port":{"type":["number","null"]},"steamQueryAddress":{"type":["string","null"]},"srvName":{"type":["string","null"]},"bedrockSupported":{"type":"boolean"},"bedrockEnabled":{"type":"boolean"},"bedrockRefusal":{"type":["string","null"],"enum":["loader","version","modpack",null]},"bedrockPort":{"type":["number","null"]},"versionChangeable":{"type":"boolean"},"propagationSeconds":{"type":"number"},"customDomainAllowed":{"type":"boolean"},"customDomain":{"type":["object","null"],"properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"failure":{"type":["string","null"],"enum":["token_missing","pointer_missing","lookup_failed",null]},"tokenName":{"type":"string"},"tokenValue":{"type":"string"},"cnameTarget":{"type":"string"},"srvName":{"type":["string","null"]},"srvTarget":{"type":["string","null"]},"checkedAt":{"type":["string","null"]}},"required":["hostname","status","failure","tokenName","tokenValue","cnameTarget","srvName","srvTarget","checkedAt"],"additionalProperties":false}},"required":["serverId","slug","host","address","domainSuffix","directIp","port","steamQueryAddress","srvName","bedrockSupported","bedrockEnabled","bedrockRefusal","bedrockPort","versionChangeable","propagationSeconds","customDomainAllowed","customDomain"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/custom-domain/check":{"post":{"operationId":"checkServerCustomDomain","summary":"Read the TXT token and the CNAME or SRV record of the custom domain from public DNS now","tags":["network"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"slug":{"type":"string"},"host":{"type":"string"},"address":{"type":"string"},"domainSuffix":{"type":"string"},"directIp":{"type":["string","null"]},"port":{"type":["number","null"]},"steamQueryAddress":{"type":["string","null"]},"srvName":{"type":["string","null"]},"bedrockSupported":{"type":"boolean"},"bedrockEnabled":{"type":"boolean"},"bedrockRefusal":{"type":["string","null"],"enum":["loader","version","modpack",null]},"bedrockPort":{"type":["number","null"]},"versionChangeable":{"type":"boolean"},"propagationSeconds":{"type":"number"},"customDomainAllowed":{"type":"boolean"},"customDomain":{"type":["object","null"],"properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"failure":{"type":["string","null"],"enum":["token_missing","pointer_missing","lookup_failed",null]},"tokenName":{"type":"string"},"tokenValue":{"type":"string"},"cnameTarget":{"type":"string"},"srvName":{"type":["string","null"]},"srvTarget":{"type":["string","null"]},"checkedAt":{"type":["string","null"]}},"required":["hostname","status","failure","tokenName","tokenValue","cnameTarget","srvName","srvTarget","checkedAt"],"additionalProperties":false}},"required":["serverId","slug","host","address","domainSuffix","directIp","port","steamQueryAddress","srvName","bedrockSupported","bedrockEnabled","bedrockRefusal","bedrockPort","versionChangeable","propagationSeconds","customDomainAllowed","customDomain"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/custom-domain/remove":{"post":{"operationId":"releaseServerCustomDomain","summary":"Forget the custom domain of the server","tags":["network"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"slug":{"type":"string"},"host":{"type":"string"},"address":{"type":"string"},"domainSuffix":{"type":"string"},"directIp":{"type":["string","null"]},"port":{"type":["number","null"]},"steamQueryAddress":{"type":["string","null"]},"srvName":{"type":["string","null"]},"bedrockSupported":{"type":"boolean"},"bedrockEnabled":{"type":"boolean"},"bedrockRefusal":{"type":["string","null"],"enum":["loader","version","modpack",null]},"bedrockPort":{"type":["number","null"]},"versionChangeable":{"type":"boolean"},"propagationSeconds":{"type":"number"},"customDomainAllowed":{"type":"boolean"},"customDomain":{"type":["object","null"],"properties":{"hostname":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"failure":{"type":["string","null"],"enum":["token_missing","pointer_missing","lookup_failed",null]},"tokenName":{"type":"string"},"tokenValue":{"type":"string"},"cnameTarget":{"type":"string"},"srvName":{"type":["string","null"]},"srvTarget":{"type":["string","null"]},"checkedAt":{"type":["string","null"]}},"required":["hostname","status","failure","tokenName","tokenValue","cnameTarget","srvName","srvTarget","checkedAt"],"additionalProperties":false}},"required":["serverId","slug","host","address","domainSuffix","directIp","port","steamQueryAddress","srvName","bedrockSupported","bedrockEnabled","bedrockRefusal","bedrockPort","versionChangeable","propagationSeconds","customDomainAllowed","customDomain"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/integrations/discord-webhook":{"get":{"operationId":"readServerDiscordWebhook","summary":"Tell whether the server posts its start, stop and crash to a Discord webhook","tags":["integrations"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"webhookId":{"type":["string","null"]}},"required":["configured","webhookId"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"setServerDiscordWebhook","summary":"Post the start, stop and crash of the server to a discord.com webhook of the owner","tags":["integrations"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":160,"pattern":"^https:\\/\\/(?:discord\\.com|discordapp\\.com)\\/api\\/webhooks\\/(\\d{17,20})\\/[A-Za-z0-9_-]{60,100}$"}},"required":["url"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"webhookId":{"type":["string","null"]}},"required":["configured","webhookId"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/integrations/discord-webhook/remove":{"post":{"operationId":"removeServerDiscordWebhook","summary":"Stop posting the state of the server to Discord and forget the webhook","tags":["integrations"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"webhookId":{"type":["string","null"]}},"required":["configured","webhookId"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/listing":{"get":{"operationId":"readServerListing","summary":"Read whether a server is on the public list, with its mode and description","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"listed":{"type":"boolean"},"tag":{"type":"string","enum":["survival","creative","minigames","pvp","modpack","roleplay"]},"description":{"type":"string"}},"required":["listed","tag","description"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"setServerListing","summary":"Put a server on the public list with its mode and description, or take it off","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listed":{"type":"boolean"},"tag":{"type":"string","enum":["survival","creative","minigames","pvp","modpack","roleplay"]},"description":{"type":"string","minLength":1,"maxLength":160}},"required":["listed"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"listed":{"type":"boolean"},"tag":{"type":"string","enum":["survival","creative","minigames","pvp","modpack","roleplay"]},"description":{"type":"string"}},"required":["listed","tag","description"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/icon":{"get":{"operationId":"readServerIcon","summary":"Serve the 64 × 64 PNG a Minecraft Java server shows in the multiplayer list","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"v","in":"query","required":false,"schema":{"type":"string","maxLength":40}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"uploadServerIcon","summary":"Store the server icon, checked to be a 64 × 64 PNG of at most 64 KB, for the next start","tags":["servers"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string","maxLength":87384}},"required":["data"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"uploadedAt":{"type":"string","format":"date-time"}},"required":["uploadedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/settings":{"get":{"operationId":"readServerSettings","summary":"Read the typed server.properties, Java runtime and danger options of a server","tags":["settings"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"regionCode":{"type":"string"},"slots":{"type":["number","null"]},"ramGb":{"type":"number"},"ramMb":{"type":"number"},"javaVersion":{"type":"string","enum":["8","17","21","25"]},"jvmArgs":{"type":"string"},"values":{"type":"object","properties":{},"additionalProperties":false},"secrets":{"type":"object","properties":{},"additionalProperties":false},"regions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"city":{"type":"string"}},"required":["code","name","city"],"additionalProperties":false}},"regionPinned":{"type":"boolean"},"modsLocked":{"type":"boolean"}},"required":["serverId","name","state","regionCode","slots","ramGb","ramMb","javaVersion","jvmArgs","values","secrets","regions","regionPinned","modsLocked"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"saveServerSettings","summary":"Write the typed server.properties, Java version and JVM arguments of a server","tags":["settings"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","properties":{},"additionalProperties":false},"javaVersion":{"type":"string","enum":["8","17","21","25"]},"jvmArgs":{"type":"string","maxLength":512}},"required":["values"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"regionCode":{"type":"string"},"slots":{"type":["number","null"]},"ramGb":{"type":"number"},"ramMb":{"type":"number"},"javaVersion":{"type":"string","enum":["8","17","21","25"]},"jvmArgs":{"type":"string"},"values":{"type":"object","properties":{},"additionalProperties":false},"secrets":{"type":"object","properties":{},"additionalProperties":false},"regions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"city":{"type":"string"}},"required":["code","name","city"],"additionalProperties":false}},"regionPinned":{"type":"boolean"},"modsLocked":{"type":"boolean"},"restartRequired":{"type":"boolean"}},"required":["serverId","name","state","regionCode","slots","ramGb","ramMb","javaVersion","jvmArgs","values","secrets","regions","regionPinned","modsLocked","restartRequired"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/allocation":{"get":{"operationId":"readServerAllocation","summary":"Read the RAM and disk of a server and what the plan pool leaves for them","tags":["settings"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"planId":{"type":"string"},"ramMb":{"type":"number"},"diskMb":{"type":"number"},"ramChoicesMb":{"type":"array","items":{"type":"number"}},"diskChoicesMb":{"type":"array","items":{"type":"number"}},"templateFloorMb":{"type":"number"},"worldFloorMb":{"type":"number"},"ramPool":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["used","limit","unlimited"],"additionalProperties":false},"diskPool":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["used","limit","unlimited"],"additionalProperties":false}},"required":["serverId","planId","ramMb","diskMb","ramChoicesMb","diskChoicesMb","templateFloorMb","worldFloorMb","ramPool","diskPool"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"changeServerAllocation","summary":"Move the RAM and disk of a server within the plan pool and resize its pod","tags":["settings"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ramMb":{"type":"integer","minimum":512,"maximum":32768},"diskMb":{"type":"integer","minimum":1024,"maximum":102400}},"required":["ramMb","diskMb"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"planId":{"type":"string"},"ramMb":{"type":"number"},"diskMb":{"type":"number"},"ramChoicesMb":{"type":"array","items":{"type":"number"}},"diskChoicesMb":{"type":"array","items":{"type":"number"}},"templateFloorMb":{"type":"number"},"worldFloorMb":{"type":"number"},"ramPool":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["used","limit","unlimited"],"additionalProperties":false},"diskPool":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":["number","null"]},"unlimited":{"type":"boolean"}},"required":["used","limit","unlimited"],"additionalProperties":false}},"required":["serverId","planId","ramMb","diskMb","ramChoicesMb","diskChoicesMb","templateFloorMb","worldFloorMb","ramPool","diskPool"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/name":{"post":{"operationId":"renameServer","summary":"Rename a server from the header of the panel","tags":["settings"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":48}},"required":["name"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["serverId","state"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/region":{"post":{"operationId":"changeServerRegion","summary":"Pin an unprovisioned server to another region","tags":["settings"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"regionCode":{"type":"string","minLength":2,"maxLength":16}},"required":["regionCode"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["serverId","state"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/transfer":{"post":{"operationId":"transferServer","summary":"Transfer a server to another account by email","tags":["settings"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254}},"required":["email"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["serverId","state"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/trash":{"post":{"operationId":"trashServer","summary":"Move a stopped server to the trash for the configured retention window","tags":["settings"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]}},"required":["serverId","state"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/schedule":{"get":{"operationId":"getServerSchedule","summary":"Read the scheduled tasks, auto-restart and alerts of a server","tags":["schedule"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}},"calendar":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"weekday":{"type":"number"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}}},"required":["key","weekday","tasks"],"additionalProperties":false}},"autoRestart":{"type":"object","properties":{"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRestartedAt":{"type":["string","null"],"format":"date-time"},"lastRecoveryMs":{"type":["number","null"]}},"required":["enabled","premium","lastRestartedAt","lastRecoveryMs"],"additionalProperties":false},"alerts":{"type":"object","properties":{"server_down":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_status":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_full":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_completed":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false}},"required":["server_down","server_status","server_full","backup_completed"],"additionalProperties":false},"paid":{"type":"boolean"},"world":{"type":["object","null"],"properties":{"size":{"type":"integer"},"seed":{"type":"string"}},"required":["size","seed"],"additionalProperties":false}},"required":["tasks","calendar","autoRestart","alerts","paid","world"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/schedule/tasks":{"post":{"operationId":"createScheduledTask","summary":"Create a scheduled task for a server","tags":["schedule"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string","minLength":1,"maxLength":60},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"time":{"type":"string","maxLength":5},"days":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6}},"expression":{"type":"string","maxLength":128},"text":{"type":"string","minLength":1,"maxLength":256},"command":{"type":"string","minLength":1,"maxLength":256},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer","minimum":1000,"maximum":6000},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string","maxLength":10}},"required":["kind","name","frequency"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/schedule/tasks/:taskId/enabled":{"post":{"operationId":"setScheduledTaskEnabled","summary":"Pause or resume a scheduled task","tags":["schedule"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/schedule/tasks/:taskId/next-seed":{"post":{"operationId":"redrawScheduledWipeSeed","summary":"Draw another seed for the next map wipe of a task in random seed mode","tags":["schedule"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/schedule/tasks/:taskId/delete":{"post":{"operationId":"deleteScheduledTask","summary":"Delete a scheduled task","tags":["schedule"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/schedule/auto-restart":{"post":{"operationId":"setServerAutoRestart","summary":"Enable or disable auto-restart after a crash","tags":["schedule"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}},"calendar":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"weekday":{"type":"number"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}}},"required":["key","weekday","tasks"],"additionalProperties":false}},"autoRestart":{"type":"object","properties":{"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRestartedAt":{"type":["string","null"],"format":"date-time"},"lastRecoveryMs":{"type":["number","null"]}},"required":["enabled","premium","lastRestartedAt","lastRecoveryMs"],"additionalProperties":false},"alerts":{"type":"object","properties":{"server_down":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_status":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_full":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_completed":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false}},"required":["server_down","server_status","server_full","backup_completed"],"additionalProperties":false},"paid":{"type":"boolean"},"world":{"type":["object","null"],"properties":{"size":{"type":"integer"},"seed":{"type":"string"}},"required":["size","seed"],"additionalProperties":false}},"required":["tasks","calendar","autoRestart","alerts","paid","world"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/schedule/alerts":{"post":{"operationId":"setServerAlert","summary":"Turn one alert channel of a server on or off","tags":["schedule"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event":{"type":"string","enum":["server_down","server_status","server_full","backup_completed"]},"channel":{"type":"string"},"enabled":{"type":"boolean"}},"required":["event","channel","enabled"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}},"calendar":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"weekday":{"type":"number"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["backup","message","command","power","restart","wipe"]},"name":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly","cron"]},"cronExpr":{"type":"string"},"timezone":{"type":"string","maxLength":64},"payload":{"type":"object","properties":{"text":{"type":"string"},"command":{"type":"string"},"action":{"type":"string","enum":["start","stop"]},"scope":{"type":"string","enum":["map","map-blueprints"]},"size":{"type":"integer"},"seedMode":{"type":"string","enum":["random","fixed"]},"seed":{"type":"string"},"nextSeed":{"type":"string"}},"additionalProperties":false},"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRunAt":{"type":["string","null"],"format":"date-time"},"lastSkipReason":{"type":["string","null"],"enum":["off",null]},"nextRunAt":{"type":["string","null"],"format":"date-time"}},"required":["id","kind","name","frequency","cronExpr","timezone","payload","enabled","premium","lastRunAt","lastSkipReason","nextRunAt"],"additionalProperties":false}}},"required":["key","weekday","tasks"],"additionalProperties":false}},"autoRestart":{"type":"object","properties":{"enabled":{"type":"boolean"},"premium":{"type":"boolean"},"lastRestartedAt":{"type":["string","null"],"format":"date-time"},"lastRecoveryMs":{"type":["number","null"]}},"required":["enabled","premium","lastRestartedAt","lastRecoveryMs"],"additionalProperties":false},"alerts":{"type":"object","properties":{"server_down":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_status":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"server_full":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false},"backup_completed":{"type":"object","properties":{"email":{"type":"boolean"},"discord":{"type":"boolean"},"panel":{"type":"boolean"}},"required":["email","discord","panel"],"additionalProperties":false}},"required":["server_down","server_status","server_full","backup_completed"],"additionalProperties":false},"paid":{"type":"boolean"},"world":{"type":["object","null"],"properties":{"size":{"type":"integer"},"seed":{"type":"string"}},"required":["size","seed"],"additionalProperties":false}},"required":["tasks","calendar","autoRestart","alerts","paid","world"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/statistics":{"get":{"operationId":"readServerStatistics","summary":"Read the hourly rollups, sessions and top players of a server over a range","tags":["statistics"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","enum":["24h","7d","30d"],"default":"7d"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"gameSlug":{"type":"string"},"range":{"type":"string","enum":["24h","7d","30d"]},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"summary":{"type":"object","properties":{"uniquePlayers":{"type":"number"},"uniquePlayersFortnight":{"type":"number"},"playedSeconds":{"type":"number"},"sessions":{"type":"number"},"peakPlayers":{"type":"number"},"averagePerformance":{"type":["number","null"]},"peakHour":{"type":["number","null"]}},"required":["uniquePlayers","uniquePlayersFortnight","playedSeconds","sessions","peakPlayers","averagePerformance","peakHour"],"additionalProperties":false},"playersByHour":{"type":"array","items":{"type":"object","properties":{"hour":{"type":"number"},"averagePlayers":{"type":"number"},"peakPlayers":{"type":"number"}},"required":["hour","averagePlayers","peakPlayers"],"additionalProperties":false}},"resources":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"cpuPercent":{"type":["number","null"]},"memoryMb":{"type":["number","null"]},"memoryPercent":{"type":["number","null"]},"players":{"type":["number","null"]},"performance":{"type":["number","null"]},"networkInBytesPerSecond":{"type":["number","null"]},"networkOutBytesPerSecond":{"type":["number","null"]}},"required":["at","cpuPercent","memoryMb","memoryPercent","players","performance","networkInBytesPerSecond","networkOutBytesPerSecond"],"additionalProperties":false}},"resourceSummary":{"type":"object","properties":{"cpuAveragePercent":{"type":["number","null"]},"memoryPeakMb":{"type":["number","null"]},"memoryPeakPercent":{"type":["number","null"]},"networkInBytesPerSecond":{"type":["number","null"]},"networkOutBytesPerSecond":{"type":["number","null"]}},"required":["cpuAveragePercent","memoryPeakMb","memoryPeakPercent","networkInBytesPerSecond","networkOutBytesPerSecond"],"additionalProperties":false},"heatmap":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"averagePlayers":{"type":["number","null"]}},"required":["weekday","hour","averagePlayers"],"additionalProperties":false}},"topPlayers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"playedSeconds":{"type":"number"},"sessions":{"type":"number"},"lastSeenAt":{"type":"string","format":"date-time"}},"required":["name","playedSeconds","sessions","lastSeenAt"],"additionalProperties":false}},"availability":{"type":"object","properties":{"percent":{"type":["number","null"]},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"percent":{"type":["number","null"]},"restarts":{"type":"integer","minimum":0},"crashes":{"type":"integer","minimum":0}},"required":["day","percent","restarts","crashes"],"additionalProperties":false}},"incidents":{"type":"object","properties":{"restarts":{"type":"integer","minimum":0},"crashes":{"type":"integer","minimum":0},"backups":{"type":"integer","minimum":0},"ramPeaks":{"type":"integer","minimum":0},"refusedJoins":{"type":"integer","minimum":0}},"required":["restarts","crashes","backups","ramPeaks","refusedJoins"],"additionalProperties":false}},"required":["percent","days","incidents"],"additionalProperties":false},"free":{"type":["object","null"],"properties":{"sessionSecondsLimit":{"type":"number"},"sessionSecondsLeft":{"type":"number"},"monthlySecondsLimit":{"type":"number"},"monthlySecondsUsed":{"type":"number"},"resetsAt":{"type":"string","format":"date-time"},"sessionEndsAt":{"type":["string","null"],"format":"date-time"},"exhausted":{"type":["string","null"],"enum":["day","month",null]},"bonusSecondsLeft":{"type":"integer","minimum":0},"timeMultiplier":{"type":"number","minimum":1},"stoppedAt":{"type":["string","null"],"format":"date-time"}},"required":["sessionSecondsLimit","sessionSecondsLeft","monthlySecondsLimit","monthlySecondsUsed","resetsAt","sessionEndsAt","exhausted","bonusSecondsLeft","timeMultiplier"],"additionalProperties":false}},"required":["gameSlug","range","from","to","summary","playersByHour","resources","resourceSummary","heatmap","topPlayers","availability","free"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/statistics/export":{"get":{"operationId":"exportServerStatistics","summary":"Export the hourly rollups of a server over a range as CSV","tags":["statistics"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","enum":["24h","7d","30d"],"default":"7d"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"content":{"type":"string"}},"required":["filename","content"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/events":{"get":{"operationId":"readServerGameEvents","summary":"Read the game events of a server and the kills, deaths and playtime per player","tags":["statistics"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","enum":["24h","7d","30d"],"default":"7d"}},{"name":"kinds","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["join","leave","chat","death","kill","hit","suicide","admin","save","crash","wipe","raid"]},"default":[]}},{"name":"player","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"search","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"},"event":{"type":"object","properties":{"kind":{"type":"string","enum":["join","leave","chat","death","kill","hit","suicide","admin","save","crash","wipe","raid"]}},"required":["kind"],"additionalProperties":true}},"required":["id","at"],"additionalProperties":false}},"players":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"kills":{"type":"number"},"deaths":{"type":"number"},"playedSeconds":{"type":"number"}},"required":["name","kills","deaths","playedSeconds"],"additionalProperties":false}}},"required":["from","to","events","players"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/backups":{"get":{"operationId":"listServerBackups","summary":"Read the backups of a server with its storage meter and retention policy","tags":["backups"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"backups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"origin":{"type":"string","enum":["manual","daily","pre_restore","pre_version_change","pre_world_change","pre_migration","pre_database_change","archive"]},"contents":{"type":"string","enum":["files","database","full"]},"state":{"type":"string","enum":["pending","ready","failed"]},"sizeBytes":{"type":"number"},"locked":{"type":"boolean"},"failureReason":{"type":["string","null"]},"restoreFailureReason":{"type":["string","null"]},"restoring":{"type":"boolean"},"restoringSince":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","name","origin","contents","state","sizeBytes","locked","failureReason","restoreFailureReason","restoring","restoringSince","createdAt","completedAt"],"additionalProperties":false}},"storage":{"type":"object","properties":{"usedBytes":{"type":"number"},"limitBytes":{"type":["number","null"]}},"required":["usedBytes","limitBytes"],"additionalProperties":false},"retention":{"type":"object","properties":{"limit":{"type":["number","null"]},"kept":{"type":"number"},"locked":{"type":"number"},"automatic":{"type":"boolean"}},"required":["limit","kept","locked","automatic"],"additionalProperties":false}},"required":["backups","storage","retention"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"createServerBackup","summary":"Queue a manual backup of the world of the server","tags":["backups"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60}},"required":["name"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"origin":{"type":"string","enum":["manual","daily","pre_restore","pre_version_change","pre_world_change","pre_migration","pre_database_change","archive"]},"contents":{"type":"string","enum":["files","database","full"]},"state":{"type":"string","enum":["pending","ready","failed"]},"sizeBytes":{"type":"number"},"locked":{"type":"boolean"},"failureReason":{"type":["string","null"]},"restoreFailureReason":{"type":["string","null"]},"restoring":{"type":"boolean"},"restoringSince":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","name","origin","contents","state","sizeBytes","locked","failureReason","restoreFailureReason","restoring","restoringSince","createdAt","completedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/backups/:backupId/restore":{"post":{"operationId":"restoreServerBackup","summary":"Queue a restore of the files, the database or both from the backup, preceded by an automatic backup","tags":["backups"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"backupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"part":{"type":"string","enum":["both","files","database"]}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"origin":{"type":"string","enum":["manual","daily","pre_restore","pre_version_change","pre_world_change","pre_migration","pre_database_change","archive"]},"contents":{"type":"string","enum":["files","database","full"]},"state":{"type":"string","enum":["pending","ready","failed"]},"sizeBytes":{"type":"number"},"locked":{"type":"boolean"},"failureReason":{"type":["string","null"]},"restoreFailureReason":{"type":["string","null"]},"restoring":{"type":"boolean"},"restoringSince":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","name","origin","contents","state","sizeBytes","locked","failureReason","restoreFailureReason","restoring","restoringSince","createdAt","completedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/backups/:backupId/lock":{"post":{"operationId":"lockServerBackup","summary":"Lock or unlock a backup so retention keeps it or lets it rotate","tags":["backups"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"backupId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"origin":{"type":"string","enum":["manual","daily","pre_restore","pre_version_change","pre_world_change","pre_migration","pre_database_change","archive"]},"contents":{"type":"string","enum":["files","database","full"]},"state":{"type":"string","enum":["pending","ready","failed"]},"sizeBytes":{"type":"number"},"locked":{"type":"boolean"},"failureReason":{"type":["string","null"]},"restoreFailureReason":{"type":["string","null"]},"restoring":{"type":"boolean"},"restoringSince":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","name","origin","contents","state","sizeBytes","locked","failureReason","restoreFailureReason","restoring","restoringSince","createdAt","completedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/backups/:backupId/remove":{"post":{"operationId":"deleteServerBackup","summary":"Remove a backup and the object it holds in the bucket","tags":["backups"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"backupId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["done"]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/backups/:backupId/download":{"get":{"operationId":"downloadServerBackup","summary":"Stream the backup as a portable .1up.zip with a signed manifest","tags":["backups"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"backupId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/import":{"post":{"operationId":"importServerDatabase","summary":"Stage a .sql or .sql.gz upload, or name a file under /import, and queue its import into the database","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["import","export","wipe"]},"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"progress":{"type":["integer","null"],"minimum":0,"maximum":100},"error":{"type":["string","null"],"enum":["server_off","source_missing","file_unreadable","import_failed","export_failed","wipe_failed",null]},"downloadUrl":{"type":["string","null"]}},"required":["id","kind","state","progress","error","downloadUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/export":{"post":{"operationId":"exportServerDatabase","summary":"Queue a gzipped dump of the database; the finished job carries a 15-minute download link","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["import","export","wipe"]},"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"progress":{"type":["integer","null"],"minimum":0,"maximum":100},"error":{"type":["string","null"],"enum":["server_off","source_missing","file_unreadable","import_failed","export_failed","wipe_failed",null]},"downloadUrl":{"type":["string","null"]}},"required":["id","kind","state","progress","error","downloadUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/wipe":{"post":{"operationId":"wipeServerDatabase","summary":"Queue a database backup, then drop every table of the database","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["import","export","wipe"]},"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"progress":{"type":["integer","null"],"minimum":0,"maximum":100},"error":{"type":["string","null"],"enum":["server_off","source_missing","file_unreadable","import_failed","export_failed","wipe_failed",null]},"downloadUrl":{"type":["string","null"]}},"required":["id","kind","state","progress","error","downloadUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/jobs/:jobId":{"get":{"operationId":"readServerDatabaseJob","summary":"Read the state, progress and error of a database import, export or wipe","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["import","export","wipe"]},"state":{"type":"string","enum":["queued","running","succeeded","failed"]},"progress":{"type":["integer","null"],"minimum":0,"maximum":100},"error":{"type":["string","null"],"enum":["server_off","source_missing","file_unreadable","import_failed","export_failed","wipe_failed",null]},"downloadUrl":{"type":["string","null"]}},"required":["id","kind","state","progress","error","downloadUrl"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database":{"get":{"operationId":"getServerDatabase","summary":"Read the state and connection data of the server database, never its password","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["none","creating","ready","error"]},"engine":{"type":"string","enum":["mariadb"]},"host":{"type":"string"},"port":{"type":"integer"},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"sizeBytes":{"type":"number"},"cfgInSync":{"type":"boolean"},"offer":{"type":["object","null"],"properties":{"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planId":{"type":"string"},"planRamMb":{"type":["integer","null"]},"needRamMb":{"type":"integer"},"fits":{"type":"boolean"},"upsell":{"type":["object","null"],"properties":{"planId":{"type":"string"},"ramMb":{"type":["integer","null"]},"priceMonthlyCents":{"type":"integer"}},"required":["planId","ramMb","priceMonthlyCents"],"additionalProperties":false}},"required":["ramMb","diskMb","planId","planRamMb","needRamMb","fits","upsell"],"additionalProperties":false},"remote":{"type":"object","properties":{"enabled":{"type":"boolean"},"ips":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"note":{"type":"string"}},"required":["ip","note"],"additionalProperties":false}},"port":{"type":["integer","null"]},"clientIp":{"type":["string","null"]}},"required":["enabled","ips","port","clientIp"],"additionalProperties":false}},"required":["state","engine","host","port","name","username","sizeBytes","cfgInSync","offer","remote"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"enableServerDatabase","summary":"Create the database of the server, grow its plan allocation and restart it","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["none","creating","ready","error"]},"engine":{"type":"string","enum":["mariadb"]},"host":{"type":"string"},"port":{"type":"integer"},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"sizeBytes":{"type":"number"},"cfgInSync":{"type":"boolean"},"offer":{"type":["object","null"],"properties":{"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planId":{"type":"string"},"planRamMb":{"type":["integer","null"]},"needRamMb":{"type":"integer"},"fits":{"type":"boolean"},"upsell":{"type":["object","null"],"properties":{"planId":{"type":"string"},"ramMb":{"type":["integer","null"]},"priceMonthlyCents":{"type":"integer"}},"required":["planId","ramMb","priceMonthlyCents"],"additionalProperties":false}},"required":["ramMb","diskMb","planId","planRamMb","needRamMb","fits","upsell"],"additionalProperties":false},"remote":{"type":"object","properties":{"enabled":{"type":"boolean"},"ips":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"note":{"type":"string"}},"required":["ip","note"],"additionalProperties":false}},"port":{"type":["integer","null"]},"clientIp":{"type":["string","null"]}},"required":["enabled","ips","port","clientIp"],"additionalProperties":false}},"required":["state","engine","host","port","name","username","sizeBytes","cfgInSync","offer","remote"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/disable":{"post":{"operationId":"disableServerDatabase","summary":"Queue a dump of the database as a backup, then remove the database and restart the server","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["none","creating","ready","error"]},"engine":{"type":"string","enum":["mariadb"]},"host":{"type":"string"},"port":{"type":"integer"},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"sizeBytes":{"type":"number"},"cfgInSync":{"type":"boolean"},"offer":{"type":["object","null"],"properties":{"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planId":{"type":"string"},"planRamMb":{"type":["integer","null"]},"needRamMb":{"type":"integer"},"fits":{"type":"boolean"},"upsell":{"type":["object","null"],"properties":{"planId":{"type":"string"},"ramMb":{"type":["integer","null"]},"priceMonthlyCents":{"type":"integer"}},"required":["planId","ramMb","priceMonthlyCents"],"additionalProperties":false}},"required":["ramMb","diskMb","planId","planRamMb","needRamMb","fits","upsell"],"additionalProperties":false},"remote":{"type":"object","properties":{"enabled":{"type":"boolean"},"ips":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"note":{"type":"string"}},"required":["ip","note"],"additionalProperties":false}},"port":{"type":["integer","null"]},"clientIp":{"type":["string","null"]}},"required":["enabled","ips","port","clientIp"],"additionalProperties":false}},"required":["state","engine","host","port","name","username","sizeBytes","cfgInSync","offer","remote"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/password":{"get":{"operationId":"readServerDatabasePassword","summary":"Read the database password of the server, an access written to the activity log","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string"}},"required":["password"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/password/rotate":{"post":{"operationId":"rotateServerDatabasePassword","summary":"Give the database user a new password; the server.cfg line is out of sync until written again","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["none","creating","ready","error"]},"engine":{"type":"string","enum":["mariadb"]},"host":{"type":"string"},"port":{"type":"integer"},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"sizeBytes":{"type":"number"},"cfgInSync":{"type":"boolean"},"offer":{"type":["object","null"],"properties":{"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planId":{"type":"string"},"planRamMb":{"type":["integer","null"]},"needRamMb":{"type":"integer"},"fits":{"type":"boolean"},"upsell":{"type":["object","null"],"properties":{"planId":{"type":"string"},"ramMb":{"type":["integer","null"]},"priceMonthlyCents":{"type":"integer"}},"required":["planId","ramMb","priceMonthlyCents"],"additionalProperties":false}},"required":["ramMb","diskMb","planId","planRamMb","needRamMb","fits","upsell"],"additionalProperties":false},"remote":{"type":"object","properties":{"enabled":{"type":"boolean"},"ips":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"note":{"type":"string"}},"required":["ip","note"],"additionalProperties":false}},"port":{"type":["integer","null"]},"clientIp":{"type":["string","null"]}},"required":["enabled","ips","port","clientIp"],"additionalProperties":false}},"required":["state","engine","host","port","name","username","sizeBytes","cfgInSync","offer","remote"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/write-config":{"post":{"operationId":"writeServerDatabaseConfig","summary":"Write the mysql_connection_string line into server.cfg of the server","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["none","creating","ready","error"]},"engine":{"type":"string","enum":["mariadb"]},"host":{"type":"string"},"port":{"type":"integer"},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"sizeBytes":{"type":"number"},"cfgInSync":{"type":"boolean"},"offer":{"type":["object","null"],"properties":{"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planId":{"type":"string"},"planRamMb":{"type":["integer","null"]},"needRamMb":{"type":"integer"},"fits":{"type":"boolean"},"upsell":{"type":["object","null"],"properties":{"planId":{"type":"string"},"ramMb":{"type":["integer","null"]},"priceMonthlyCents":{"type":"integer"}},"required":["planId","ramMb","priceMonthlyCents"],"additionalProperties":false}},"required":["ramMb","diskMb","planId","planRamMb","needRamMb","fits","upsell"],"additionalProperties":false},"remote":{"type":"object","properties":{"enabled":{"type":"boolean"},"ips":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"note":{"type":"string"}},"required":["ip","note"],"additionalProperties":false}},"port":{"type":["integer","null"]},"clientIp":{"type":["string","null"]}},"required":["enabled","ips","port","clientIp"],"additionalProperties":false}},"required":["state","engine","host","port","name","username","sizeBytes","cfgInSync","offer","remote"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/remote":{"put":{"operationId":"putServerDatabaseRemote","summary":"Turn remote access to the server database on or off for an allowlist of IPv4 addresses and networks","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"ips":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string","maxLength":18},"note":{"type":"string","maxLength":40,"pattern":"^[^\\p{Cc}]*$","default":""}},"required":["ip"],"additionalProperties":false}}},"required":["enabled","ips"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["none","creating","ready","error"]},"engine":{"type":"string","enum":["mariadb"]},"host":{"type":"string"},"port":{"type":"integer"},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"sizeBytes":{"type":"number"},"cfgInSync":{"type":"boolean"},"offer":{"type":["object","null"],"properties":{"ramMb":{"type":"integer"},"diskMb":{"type":"integer"},"planId":{"type":"string"},"planRamMb":{"type":["integer","null"]},"needRamMb":{"type":"integer"},"fits":{"type":"boolean"},"upsell":{"type":["object","null"],"properties":{"planId":{"type":"string"},"ramMb":{"type":["integer","null"]},"priceMonthlyCents":{"type":"integer"}},"required":["planId","ramMb","priceMonthlyCents"],"additionalProperties":false}},"required":["ramMb","diskMb","planId","planRamMb","needRamMb","fits","upsell"],"additionalProperties":false},"remote":{"type":"object","properties":{"enabled":{"type":"boolean"},"ips":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"note":{"type":"string"}},"required":["ip","note"],"additionalProperties":false}},"port":{"type":["integer","null"]},"clientIp":{"type":["string","null"]}},"required":["enabled","ips","port","clientIp"],"additionalProperties":false}},"required":["state","engine","host","port","name","username","sizeBytes","cfgInSync","offer","remote"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/database/sso":{"post":{"operationId":"openServerDatabasePhpMyAdmin","summary":"Issue a single-use phpMyAdmin sign-on link, valid for 60 seconds, written to the activity log","tags":["databases"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/restores":{"post":{"operationId":"uploadPortableBackup","summary":"Start the multipart upload of a .1up.zip copy straight to the staging bucket","tags":["restores"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^/\\\\\\0]+$"},"sizeBytes":{"type":"integer","minimum":1,"maximum":68719476736}},"required":["fileName","sizeBytes"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"restoreId":{"type":"string"},"uploadId":{"type":"string"},"partSizeBytes":{"type":"number"},"partCount":{"type":"number"}},"required":["restoreId","uploadId","partSizeBytes","partCount"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/restores/:restoreId/parts":{"post":{"operationId":"signPortableBackupParts","summary":"Sign the bucket urls the browser puts parts of an uploading copy to","tags":["restores"],"parameters":[{"name":"restoreId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^[\\w.~+/=-]+$"},"partNumbers":{"type":"array","items":{"type":"integer","minimum":1,"maximum":10000}}},"required":["uploadId","partNumbers"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"parts":{"type":"array","items":{"type":"object","properties":{"partNumber":{"type":"number"},"url":{"type":"string"}},"required":["partNumber","url"],"additionalProperties":false}}},"required":["parts"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/restores/:restoreId/complete":{"post":{"operationId":"completePortableBackupUpload","summary":"Assemble the uploaded parts of a copy and queue its verification","tags":["restores"],"parameters":[{"name":"restoreId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^[\\w.~+/=-]+$"},"parts":{"type":"array","items":{"type":"object","properties":{"partNumber":{"type":"integer","minimum":1,"maximum":10000},"etag":{"type":"string","maxLength":128,"pattern":"^\"?[\\w-]+\"?$"}},"required":["partNumber","etag"],"additionalProperties":false}}},"required":["uploadId","parts"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","enum":["verifying","valid","tampered","no_manifest","unreadable","failed","restoring","restored"]},"fileName":{"type":"string"},"sizeBytes":{"type":"number"},"issues":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["extra","changed","missing","signature","unsafe_path","too_large","too_many_entries"]},"path":{"type":["string","null"]}},"required":["kind","path"],"additionalProperties":false}},"entries":{"type":"array","items":{"type":"string"}},"entryCount":{"type":"number"},"manifest":{"type":["object","null"],"properties":{"createdAt":{"type":"string"},"backup":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"note":{"type":["string","null"]},"date":{"type":"string"}},"required":["id","name","note","date"],"additionalProperties":false},"server":{"type":"object","properties":{},"additionalProperties":true},"contentHash":{"type":"string"},"signature":{"type":"object","properties":{"alg":{"type":"string"},"keyId":{"type":"string"}},"required":["alg","keyId"],"additionalProperties":false},"fileCount":{"type":"number"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sha256":{"type":"string"}},"required":["path","size","sha256"],"additionalProperties":false}}},"required":["createdAt","backup","server","contentHash","signature","fileCount","files"],"additionalProperties":false},"blockers":{"type":"array","items":{"type":"string","enum":["ram","servers","email"]}},"serverId":{"type":["string","null"]},"failureReason":{"type":["string","null"]}},"required":["id","state","fileName","sizeBytes","issues","entries","entryCount","manifest","blockers","serverId","failureReason"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/restores/:restoreId":{"get":{"operationId":"readPortableRestore","summary":"Read the verification verdict of an uploaded copy and what blocks restoring it","tags":["restores"],"parameters":[{"name":"restoreId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","enum":["verifying","valid","tampered","no_manifest","unreadable","failed","restoring","restored"]},"fileName":{"type":"string"},"sizeBytes":{"type":"number"},"issues":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["extra","changed","missing","signature","unsafe_path","too_large","too_many_entries"]},"path":{"type":["string","null"]}},"required":["kind","path"],"additionalProperties":false}},"entries":{"type":"array","items":{"type":"string"}},"entryCount":{"type":"number"},"manifest":{"type":["object","null"],"properties":{"createdAt":{"type":"string"},"backup":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"note":{"type":["string","null"]},"date":{"type":"string"}},"required":["id","name","note","date"],"additionalProperties":false},"server":{"type":"object","properties":{},"additionalProperties":true},"contentHash":{"type":"string"},"signature":{"type":"object","properties":{"alg":{"type":"string"},"keyId":{"type":"string"}},"required":["alg","keyId"],"additionalProperties":false},"fileCount":{"type":"number"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sha256":{"type":"string"}},"required":["path","size","sha256"],"additionalProperties":false}}},"required":["createdAt","backup","server","contentHash","signature","fileCount","files"],"additionalProperties":false},"blockers":{"type":"array","items":{"type":"string","enum":["ram","servers","email"]}},"serverId":{"type":["string","null"]},"failureReason":{"type":["string","null"]}},"required":["id","state","fileName","sizeBytes","issues","entries","entryCount","manifest","blockers","serverId","failureReason"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/restores/:restoreId/confirm":{"post":{"operationId":"confirmPortableRestore","summary":"Restore a verified copy as a new server or over one of the account, after a backup of it","tags":["restores"],"parameters":[{"name":"restoreId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":48},"region":{"type":"string","maxLength":64,"pattern":"^[a-z0-9-]+$"},"target":{"type":"string","enum":["new","replace"]},"serverId":{"type":"string"}},"required":["name","region","target"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","enum":["verifying","valid","tampered","no_manifest","unreadable","failed","restoring","restored"]},"fileName":{"type":"string"},"sizeBytes":{"type":"number"},"issues":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["extra","changed","missing","signature","unsafe_path","too_large","too_many_entries"]},"path":{"type":["string","null"]}},"required":["kind","path"],"additionalProperties":false}},"entries":{"type":"array","items":{"type":"string"}},"entryCount":{"type":"number"},"manifest":{"type":["object","null"],"properties":{"createdAt":{"type":"string"},"backup":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"note":{"type":["string","null"]},"date":{"type":"string"}},"required":["id","name","note","date"],"additionalProperties":false},"server":{"type":"object","properties":{},"additionalProperties":true},"contentHash":{"type":"string"},"signature":{"type":"object","properties":{"alg":{"type":"string"},"keyId":{"type":"string"}},"required":["alg","keyId"],"additionalProperties":false},"fileCount":{"type":"number"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"sha256":{"type":"string"}},"required":["path","size","sha256"],"additionalProperties":false}}},"required":["createdAt","backup","server","contentHash","signature","fileCount","files"],"additionalProperties":false},"blockers":{"type":"array","items":{"type":"string","enum":["ram","servers","email"]}},"serverId":{"type":["string","null"]},"failureReason":{"type":["string","null"]}},"required":["id","state","fileName","sizeBytes","issues","entries","entryCount","manifest","blockers","serverId","failureReason"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/discord-reward":{"get":{"operationId":"getDiscordReward","summary":"Read the Discord reward on offer, the steps done, the snooze and the redemption","tags":["discord-reward"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"requirement":{"type":"string","enum":["connect","connect_join","connect_join_stay"]},"stayDays":{"type":"integer"},"placements":{"type":"object","properties":{"dashboardCard":{"type":"boolean"},"timeUpNotice":{"type":"boolean"},"reminderEmail":{"type":"boolean"},"firstPlayer":{"type":"boolean"}},"required":["dashboardCard","timeUpNotice","reminderEmail","firstPlayer"],"additionalProperties":false},"offer":{"type":"object","properties":{"kind":{"type":"string","enum":["recharge","monthly_hours","credit","starter_days","free_days","role_only"]},"amount":{"type":"integer"},"validDays":{"type":"integer"}},"required":["kind","amount","validDays"],"additionalProperties":false},"steps":{"type":"object","properties":{"connected":{"type":"boolean"},"joined":{"type":"boolean"},"stayed":{"type":"boolean"}},"required":["connected","joined","stayed"],"additionalProperties":false},"discordUsername":{"type":["string","null"]},"releasesAt":{"type":["string","null"],"format":"date-time"},"snoozedUntil":{"type":["string","null"],"format":"date-time"},"redemption":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["pending","granted","revoked","expired"]},"kind":{"type":"string","enum":["recharge","monthly_hours","credit","starter_days","free_days","role_only"]},"amount":{"type":"integer"},"grantedAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"}},"required":["state","kind","amount","grantedAt","expiresAt"],"additionalProperties":false},"refusal":{"type":["string","null"],"enum":["reward_off","email_unverified","requirement_unmet","already_redeemed","discord_too_young",null]},"discordEligibleAt":{"type":["string","null"],"format":"date-time"},"minDiscordAgeDays":{"type":"integer","minimum":0},"firstPlayerDue":{"type":"boolean"}},"required":["enabled","requirement","stayDays","placements","offer","steps","discordUsername","releasesAt","snoozedUntil","redemption","refusal","discordEligibleAt","minDiscordAgeDays","firstPlayerDue"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/discord-reward/claim":{"post":{"operationId":"claimDiscordReward","summary":"Grant the Discord reward once the steps are done and the anti-abuse rules pass","tags":["discord-reward"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"requirement":{"type":"string","enum":["connect","connect_join","connect_join_stay"]},"stayDays":{"type":"integer"},"placements":{"type":"object","properties":{"dashboardCard":{"type":"boolean"},"timeUpNotice":{"type":"boolean"},"reminderEmail":{"type":"boolean"},"firstPlayer":{"type":"boolean"}},"required":["dashboardCard","timeUpNotice","reminderEmail","firstPlayer"],"additionalProperties":false},"offer":{"type":"object","properties":{"kind":{"type":"string","enum":["recharge","monthly_hours","credit","starter_days","free_days","role_only"]},"amount":{"type":"integer"},"validDays":{"type":"integer"}},"required":["kind","amount","validDays"],"additionalProperties":false},"steps":{"type":"object","properties":{"connected":{"type":"boolean"},"joined":{"type":"boolean"},"stayed":{"type":"boolean"}},"required":["connected","joined","stayed"],"additionalProperties":false},"discordUsername":{"type":["string","null"]},"releasesAt":{"type":["string","null"],"format":"date-time"},"snoozedUntil":{"type":["string","null"],"format":"date-time"},"redemption":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["pending","granted","revoked","expired"]},"kind":{"type":"string","enum":["recharge","monthly_hours","credit","starter_days","free_days","role_only"]},"amount":{"type":"integer"},"grantedAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"}},"required":["state","kind","amount","grantedAt","expiresAt"],"additionalProperties":false},"refusal":{"type":["string","null"],"enum":["reward_off","email_unverified","requirement_unmet","already_redeemed","discord_too_young",null]},"discordEligibleAt":{"type":["string","null"],"format":"date-time"},"minDiscordAgeDays":{"type":"integer","minimum":0},"firstPlayerDue":{"type":"boolean"}},"required":["enabled","requirement","stayDays","placements","offer","steps","discordUsername","releasesAt","snoozedUntil","redemption","refusal","discordEligibleAt","minDiscordAgeDays","firstPlayerDue"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/discord-reward/snooze":{"post":{"operationId":"snoozeDiscordReward","summary":"Hide the Discord reward card for seven days","tags":["discord-reward"],"parameters":[],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"requirement":{"type":"string","enum":["connect","connect_join","connect_join_stay"]},"stayDays":{"type":"integer"},"placements":{"type":"object","properties":{"dashboardCard":{"type":"boolean"},"timeUpNotice":{"type":"boolean"},"reminderEmail":{"type":"boolean"},"firstPlayer":{"type":"boolean"}},"required":["dashboardCard","timeUpNotice","reminderEmail","firstPlayer"],"additionalProperties":false},"offer":{"type":"object","properties":{"kind":{"type":"string","enum":["recharge","monthly_hours","credit","starter_days","free_days","role_only"]},"amount":{"type":"integer"},"validDays":{"type":"integer"}},"required":["kind","amount","validDays"],"additionalProperties":false},"steps":{"type":"object","properties":{"connected":{"type":"boolean"},"joined":{"type":"boolean"},"stayed":{"type":"boolean"}},"required":["connected","joined","stayed"],"additionalProperties":false},"discordUsername":{"type":["string","null"]},"releasesAt":{"type":["string","null"],"format":"date-time"},"snoozedUntil":{"type":["string","null"],"format":"date-time"},"redemption":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["pending","granted","revoked","expired"]},"kind":{"type":"string","enum":["recharge","monthly_hours","credit","starter_days","free_days","role_only"]},"amount":{"type":"integer"},"grantedAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"}},"required":["state","kind","amount","grantedAt","expiresAt"],"additionalProperties":false},"refusal":{"type":["string","null"],"enum":["reward_off","email_unverified","requirement_unmet","already_redeemed","discord_too_young",null]},"discordEligibleAt":{"type":["string","null"],"format":"date-time"},"minDiscordAgeDays":{"type":"integer","minimum":0},"firstPlayerDue":{"type":"boolean"}},"required":["enabled","requirement","stayDays","placements","offer","steps","discordUsername","releasesAt","snoozedUntil","redemption","refusal","discordEligibleAt","minDiscordAgeDays","firstPlayerDue"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/discord-reward/sightings":{"post":{"operationId":"recordDiscordRewardSighting","summary":"Record that the Discord reward card or time-up row was shown, at most once a day per placement","tags":["discord-reward"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"placement":{"type":"string","enum":["card","time_up","first_player"]}},"required":["placement"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"recorded":{"type":"boolean"}},"required":["recorded"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files":{"get":{"operationId":"listServerFiles","summary":"Browse a folder on the server volume","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","maxLength":240,"default":""}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"online":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"directory":{"type":"boolean"},"sizeBytes":{"type":"number"},"modifiedAt":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["dir","jar","archive","world","log","text","other"]},"critical":{"type":"boolean"},"editable":{"type":"boolean"}},"required":["name","path","directory","sizeBytes","modifiedAt","kind","critical","editable"],"additionalProperties":false}},"usage":{"type":"object","properties":{"usedBytes":{"type":"number"},"limitBytes":{"type":"number"},"segments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["localBackups","world","mods","logs"]},"bytes":{"type":"number"}},"required":["key","bytes"],"additionalProperties":false}},"otherBytes":{"type":"number"}},"required":["usedBytes","limitBytes","segments","otherBytes"],"additionalProperties":false}},"required":["path","online","entries","usage"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files/content":{"get":{"operationId":"readServerFile","summary":"Read a text file from the server volume","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","maxLength":240}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"},"critical":{"type":"boolean"},"sizeBytes":{"type":"number"}},"required":["path","content","critical","sizeBytes"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files/admin-password":{"get":{"operationId":"readKeptAdminPassword","summary":"Read the in-game admin password the server was claimed with","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":["string","null"]}},"required":["password"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files/mkdir":{"post":{"operationId":"createServerFolder","summary":"Create a folder on the server volume","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"directory":{"type":"string","maxLength":240,"default":""},"name":{"type":"string","minLength":1,"maxLength":180}},"required":["name"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"online":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"directory":{"type":"boolean"},"sizeBytes":{"type":"number"},"modifiedAt":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["dir","jar","archive","world","log","text","other"]},"critical":{"type":"boolean"},"editable":{"type":"boolean"}},"required":["name","path","directory","sizeBytes","modifiedAt","kind","critical","editable"],"additionalProperties":false}},"usage":{"type":"object","properties":{"usedBytes":{"type":"number"},"limitBytes":{"type":"number"},"segments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["localBackups","world","mods","logs"]},"bytes":{"type":"number"}},"required":["key","bytes"],"additionalProperties":false}},"otherBytes":{"type":"number"}},"required":["usedBytes","limitBytes","segments","otherBytes"],"additionalProperties":false}},"required":["path","online","entries","usage"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files/rename":{"post":{"operationId":"renameServerFile","summary":"Rename a file or folder on the server volume","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","maxLength":240},"to":{"type":"string","maxLength":240}},"required":["from","to"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"online":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"directory":{"type":"boolean"},"sizeBytes":{"type":"number"},"modifiedAt":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["dir","jar","archive","world","log","text","other"]},"critical":{"type":"boolean"},"editable":{"type":"boolean"}},"required":["name","path","directory","sizeBytes","modifiedAt","kind","critical","editable"],"additionalProperties":false}},"usage":{"type":"object","properties":{"usedBytes":{"type":"number"},"limitBytes":{"type":"number"},"segments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["localBackups","world","mods","logs"]},"bytes":{"type":"number"}},"required":["key","bytes"],"additionalProperties":false}},"otherBytes":{"type":"number"}},"required":["usedBytes","limitBytes","segments","otherBytes"],"additionalProperties":false}},"required":["path","online","entries","usage"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files/trash":{"post":{"operationId":"trashServerFiles","summary":"Move files into the 30-day trash on the volume","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paths":{"type":"array","items":{"type":"string","maxLength":240}}},"required":["paths"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"online":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"directory":{"type":"boolean"},"sizeBytes":{"type":"number"},"modifiedAt":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["dir","jar","archive","world","log","text","other"]},"critical":{"type":"boolean"},"editable":{"type":"boolean"}},"required":["name","path","directory","sizeBytes","modifiedAt","kind","critical","editable"],"additionalProperties":false}},"usage":{"type":"object","properties":{"usedBytes":{"type":"number"},"limitBytes":{"type":"number"},"segments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["localBackups","world","mods","logs"]},"bytes":{"type":"number"}},"required":["key","bytes"],"additionalProperties":false}},"otherBytes":{"type":"number"}},"required":["usedBytes","limitBytes","segments","otherBytes"],"additionalProperties":false}},"required":["path","online","entries","usage"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files/save":{"post":{"operationId":"saveServerFile","summary":"Write a text file on the server volume","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","maxLength":240},"content":{"type":"string","maxLength":1048576}},"required":["path","content"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"},"critical":{"type":"boolean"},"sizeBytes":{"type":"number"}},"required":["path","content","critical","sizeBytes"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files/upload":{"post":{"operationId":"uploadServerFile","summary":"Stage a file or world zip in S3 and pull it into the pod","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","maxLength":240,"default":""}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"online":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"directory":{"type":"boolean"},"sizeBytes":{"type":"number"},"modifiedAt":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["dir","jar","archive","world","log","text","other"]},"critical":{"type":"boolean"},"editable":{"type":"boolean"}},"required":["name","path","directory","sizeBytes","modifiedAt","kind","critical","editable"],"additionalProperties":false}},"usage":{"type":"object","properties":{"usedBytes":{"type":"number"},"limitBytes":{"type":"number"},"segments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["localBackups","world","mods","logs"]},"bytes":{"type":"number"}},"required":["key","bytes"],"additionalProperties":false}},"otherBytes":{"type":"number"}},"required":["usedBytes","limitBytes","segments","otherBytes"],"additionalProperties":false}},"required":["path","online","entries","usage"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/files/archive":{"post":{"operationId":"archiveServerFiles","summary":"Zip selected paths and return a signed download link","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paths":{"type":"array","items":{"type":"string","maxLength":240}}},"required":["paths"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresInSeconds":{"type":"number"}},"required":["url","expiresInSeconds"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/sftp":{"get":{"operationId":"readServerSftpAccess","summary":"Read the SFTP host, port and username of a server","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"host":{"type":["string","null"]},"port":{"type":"integer"},"username":{"type":"string"},"configured":{"type":"boolean"},"rotatedAt":{"type":["string","null"],"format":"date-time"}},"required":["host","port","username","configured","rotatedAt"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/sftp/password":{"post":{"operationId":"regenerateServerSftpPassword","summary":"Generate a new SFTP password, shown once","tags":["files"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"host":{"type":["string","null"]},"port":{"type":"integer"},"username":{"type":"string"},"configured":{"type":"boolean"},"rotatedAt":{"type":["string","null"],"format":"date-time"},"password":{"type":"string"}},"required":["host","port","username","configured","rotatedAt","password"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/plugins":{"get":{"operationId":"listServerPlugins","summary":"Search the Modrinth plugin catalogue for a server","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":80,"default":""}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["all","essential","protection","economy","modpacks"],"default":"all"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"loader":{"type":["string","null"],"enum":["paper","fabric","forge","neoforge",null]},"loaderName":{"type":"string"},"gameVersion":{"type":"string"},"locked":{"type":"boolean"},"installedCount":{"type":"number"},"updatesAvailable":{"type":"number"},"totalHits":{"type":"number"},"category":{"type":"string","enum":["all","essential","protection","economy","modpacks"]},"query":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"projectId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"downloads":{"type":"number"},"followers":{"type":"number"},"iconUrl":{"type":["string","null"]},"recommended":{"type":"boolean"},"compatible":{"type":"boolean"},"installed":{"type":"boolean"},"updateAvailable":{"type":"boolean"},"installedVersionId":{"type":["string","null"]},"latestVersionId":{"type":["string","null"]}},"required":["projectId","slug","name","description","category","downloads","followers","iconUrl","recommended","compatible","installed","updateAvailable","installedVersionId","latestVersionId"],"additionalProperties":false}}},"required":["loader","loaderName","gameVersion","locked","installedCount","updatesAvailable","totalHits","category","query","items"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/plugins/install":{"post":{"operationId":"installServerPlugin","summary":"Download a Modrinth file and write it into the server volume","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1,"maxLength":64}},"required":["projectId"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"filename":{"type":"string"},"restartRequired":{"type":"boolean","enum":[true]},"updated":{"type":"number"}},"required":["slug","filename","restartRequired","updated"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/plugins/update":{"post":{"operationId":"updateServerPlugin","summary":"Replace an installed plugin with its latest compatible Modrinth file","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1,"maxLength":64}},"required":["projectId"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"filename":{"type":"string"},"restartRequired":{"type":"boolean","enum":[true]},"updated":{"type":"number"}},"required":["slug","filename","restartRequired","updated"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/plugins/update-all":{"post":{"operationId":"updateAllServerPlugins","summary":"Replace every outdated installed plugin with its latest compatible file","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"filename":{"type":"string"},"restartRequired":{"type":"boolean","enum":[true]},"updated":{"type":"number"}},"required":["slug","filename","restartRequired","updated"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/mods":{"get":{"operationId":"listServerMods","summary":"List the tModLoader mods in the mods folder and whether enabled.json loads them","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"supported":{"type":"boolean"},"template":{"type":"string"},"locked":{"type":"boolean"},"restartRequired":{"type":"boolean"},"mods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"fileName":{"type":"string"},"sizeBytes":{"type":"number"},"enabled":{"type":"boolean"}},"required":["name","fileName","sizeBytes","enabled"],"additionalProperties":false}}},"required":["supported","template","locked","restartRequired","mods"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/mods/upload":{"post":{"operationId":"uploadServerMod","summary":"Stage a .tmod file, write it into the mods folder and enable it","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","maxLength":80}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"supported":{"type":"boolean"},"template":{"type":"string"},"locked":{"type":"boolean"},"restartRequired":{"type":"boolean"},"mods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"fileName":{"type":"string"},"sizeBytes":{"type":"number"},"enabled":{"type":"boolean"}},"required":["name","fileName","sizeBytes","enabled"],"additionalProperties":false}}},"required":["supported","template","locked","restartRequired","mods"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/mods/toggle":{"post":{"operationId":"toggleServerMod","summary":"Add a mod to enabled.json or take it out","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":64},"enabled":{"type":"boolean"}},"required":["name","enabled"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"supported":{"type":"boolean"},"template":{"type":"string"},"locked":{"type":"boolean"},"restartRequired":{"type":"boolean"},"mods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"fileName":{"type":"string"},"sizeBytes":{"type":"number"},"enabled":{"type":"boolean"}},"required":["name","fileName","sizeBytes","enabled"],"additionalProperties":false}}},"required":["supported","template","locked","restartRequired","mods"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/addons":{"get":{"operationId":"listServerAddons","summary":"List the Bedrock behavior and resource packs installed on the server","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"supported":{"type":"boolean"},"restartRequired":{"type":"boolean"},"levelName":{"type":"string"},"packs":{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"kind":{"type":"string","enum":["behavior","resource"]},"folder":{"type":"string"}},"required":["uuid","name","version","kind","folder"],"additionalProperties":false}},"archives":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"name":{"type":"string"},"sizeBytes":{"type":"number"}},"required":["path","name","sizeBytes"],"additionalProperties":false}}},"required":["supported","restartRequired","levelName","packs","archives"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/addons/upload":{"post":{"operationId":"uploadServerAddon","summary":"Validate an uploaded .mcpack or .mcaddon, extract its packs and register them in the world","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","maxLength":128}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"supported":{"type":"boolean"},"restartRequired":{"type":"boolean"},"levelName":{"type":"string"},"packs":{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"kind":{"type":"string","enum":["behavior","resource"]},"folder":{"type":"string"}},"required":["uuid","name","version","kind","folder"],"additionalProperties":false}},"archives":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"name":{"type":"string"},"sizeBytes":{"type":"number"}},"required":["path","name","sizeBytes"],"additionalProperties":false}}},"required":["supported","restartRequired","levelName","packs","archives"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/addons/install":{"post":{"operationId":"installServerAddonFile","summary":"Install a .mcpack or .mcaddon already on the server volume","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","maxLength":240}},"required":["path"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"supported":{"type":"boolean"},"restartRequired":{"type":"boolean"},"levelName":{"type":"string"},"packs":{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"kind":{"type":"string","enum":["behavior","resource"]},"folder":{"type":"string"}},"required":["uuid","name","version","kind","folder"],"additionalProperties":false}},"archives":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"name":{"type":"string"},"sizeBytes":{"type":"number"}},"required":["path","name","sizeBytes"],"additionalProperties":false}}},"required":["supported","restartRequired","levelName","packs","archives"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/addons/remove":{"post":{"operationId":"removeServerAddon","summary":"Move an installed pack to the trash and drop it from the world pack lists","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uuid":{"type":"string","maxLength":36}},"required":["uuid"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"supported":{"type":"boolean"},"restartRequired":{"type":"boolean"},"levelName":{"type":"string"},"packs":{"type":"array","items":{"type":"object","properties":{"uuid":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"kind":{"type":"string","enum":["behavior","resource"]},"folder":{"type":"string"}},"required":["uuid","name","version","kind","folder"],"additionalProperties":false}},"archives":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"name":{"type":"string"},"sizeBytes":{"type":"number"}},"required":["path","name","sizeBytes"],"additionalProperties":false}}},"required":["supported","restartRequired","levelName","packs","archives"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/modpacks":{"get":{"operationId":"listServerModpacks","summary":"Search the Modrinth or CurseForge modpacks a Modpack server can install","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["modrinth","curseforge"],"default":"modrinth"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":80,"default":""}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"supported":{"type":"boolean"},"source":{"type":"string","enum":["modrinth","curseforge"]},"query":{"type":"string"},"curseforge":{"type":"boolean"},"requiredRamMb":{"type":"number"},"allocatedRamMb":{"type":"number"},"current":{"type":["object","null"],"properties":{"source":{"type":"string","enum":["modrinth","curseforge"]},"projectId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"versionNumber":{"type":"string"},"gameVersion":{"type":"string"},"loader":{"type":"string","enum":["fabric","forge","neoforge"]}},"required":["source","projectId","slug","name","versionNumber","gameVersion","loader"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["modrinth","curseforge"]},"projectId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"downloads":{"type":"number"},"iconUrl":{"type":["string","null"]},"gameVersions":{"type":"array","items":{"type":"string"}},"loaders":{"type":"array","items":{"type":"string","enum":["fabric","forge","neoforge"]}}},"required":["source","projectId","slug","name","description","downloads","iconUrl","gameVersions","loaders"],"additionalProperties":false}}},"required":["supported","source","query","curseforge","requiredRamMb","allocatedRamMb","current","items"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/modpacks/install":{"post":{"operationId":"installServerModpack","summary":"Pin a modpack release on the server; the next start reprovisions it with the pack","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["modrinth","curseforge"]},"projectId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"required":["source","projectId"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"current":{"type":["object","null"],"properties":{"source":{"type":"string","enum":["modrinth","curseforge"]},"projectId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"versionNumber":{"type":"string"},"gameVersion":{"type":"string"},"loader":{"type":"string","enum":["fabric","forge","neoforge"]}},"required":["source","projectId","slug","name","versionNumber","gameVersion","loader"],"additionalProperties":false},"restartRequired":{"type":"boolean","enum":[true]}},"required":["current","restartRequired"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/modpacks/remove":{"post":{"operationId":"removeServerModpack","summary":"Unpin the modpack; the next start runs the plain server again","tags":["plugins"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"current":{"type":["object","null"],"properties":{"source":{"type":"string","enum":["modrinth","curseforge"]},"projectId":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"versionNumber":{"type":"string"},"gameVersion":{"type":"string"},"loader":{"type":"string","enum":["fabric","forge","neoforge"]}},"required":["source","projectId","slug","name","versionNumber","gameVersion","loader"],"additionalProperties":false},"restartRequired":{"type":"boolean","enum":[true]}},"required":["current","restartRequired"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/worlds":{"get":{"operationId":"listServerWorlds","summary":"Read the worlds of a server and which one the server is playing","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"worlds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"seed":{"type":["string","null"]},"active":{"type":"boolean"},"sizeBytes":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","name","seed","active","sizeBytes","createdAt","lastUsedAt"],"additionalProperties":false}},"previousMaps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"seed":{"type":["string","null"]},"mapSize":{"type":["integer","null"]},"cause":{"type":"string","enum":["wipe","regenerate"]},"wipedAt":{"type":"string","format":"date-time"}},"required":["id","seed","mapSize","cause","wipedAt"],"additionalProperties":false}},"mutable":{"type":"boolean"},"backupsAvailable":{"type":"boolean"},"jobPending":{"type":"boolean"},"lastRegeneration":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["pending","done","failed"]},"settledAt":{"type":["string","null"],"format":"date-time"}},"required":["state","settledAt"],"additionalProperties":false},"mode":{"type":["string","null"],"enum":["survival","creative","hardcore","adventure","classic","expert","master","journey","coop","competitive","peaceful","pve","pvp","pvpve","casual",null]}},"required":["worlds","previousMaps","mutable","backupsAvailable","jobPending","lastRegeneration","mode"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"createServerWorld","summary":"Put a fresh world with its seed on the server and stash the current one","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":32,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"seed":{"type":"string","maxLength":64,"pattern":"^[A-Za-z0-9_ -]*$","default":""}},"required":["name"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"201":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"worlds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"seed":{"type":["string","null"]},"active":{"type":"boolean"},"sizeBytes":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","name","seed","active","sizeBytes","createdAt","lastUsedAt"],"additionalProperties":false}},"previousMaps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"seed":{"type":["string","null"]},"mapSize":{"type":["integer","null"]},"cause":{"type":"string","enum":["wipe","regenerate"]},"wipedAt":{"type":"string","format":"date-time"}},"required":["id","seed","mapSize","cause","wipedAt"],"additionalProperties":false}},"mutable":{"type":"boolean"},"backupsAvailable":{"type":"boolean"},"jobPending":{"type":"boolean"},"lastRegeneration":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["pending","done","failed"]},"settledAt":{"type":["string","null"],"format":"date-time"}},"required":["state","settledAt"],"additionalProperties":false},"mode":{"type":["string","null"],"enum":["survival","creative","hardcore","adventure","classic","expert","master","journey","coop","competitive","peaceful","pve","pvp","pvpve","casual",null]}},"required":["worlds","previousMaps","mutable","backupsAvailable","jobPending","lastRegeneration","mode"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/worlds/usage":{"get":{"operationId":"readServerWorldUsage","summary":"Measure the disk the playing world takes, split by the components its game declares","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"components":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["overworld","nether","end","save","db","fwl","map","master","caves","database","generated","level","players"]},"bytes":{"type":"number","minimum":0}},"required":["key","bytes"],"additionalProperties":false}},"totalBytes":{"type":"number","minimum":0}},"required":["components","totalBytes"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/worlds/import":{"post":{"operationId":"importServerWorld","summary":"Stage a world zip and queue the replacement behind an automatic backup","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["import","regenerate","version_change"]},"worldId":{"type":["string","null"]},"backupId":{"type":["string","null"]}},"required":["kind","worldId","backupId"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/worlds/:worldId/activate":{"post":{"operationId":"activateServerWorld","summary":"Swap the world the server plays for another world it keeps","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"worldId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"worlds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"seed":{"type":["string","null"]},"active":{"type":"boolean"},"sizeBytes":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","name","seed","active","sizeBytes","createdAt","lastUsedAt"],"additionalProperties":false}},"previousMaps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"seed":{"type":["string","null"]},"mapSize":{"type":["integer","null"]},"cause":{"type":"string","enum":["wipe","regenerate"]},"wipedAt":{"type":"string","format":"date-time"}},"required":["id","seed","mapSize","cause","wipedAt"],"additionalProperties":false}},"mutable":{"type":"boolean"},"backupsAvailable":{"type":"boolean"},"jobPending":{"type":"boolean"},"lastRegeneration":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["pending","done","failed"]},"settledAt":{"type":["string","null"],"format":"date-time"}},"required":["state","settledAt"],"additionalProperties":false},"mode":{"type":["string","null"],"enum":["survival","creative","hardcore","adventure","classic","expert","master","journey","coop","competitive","peaceful","pve","pvp","pvpve","casual",null]}},"required":["worlds","previousMaps","mutable","backupsAvailable","jobPending","lastRegeneration","mode"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/worlds/:worldId/export":{"post":{"operationId":"exportServerWorld","summary":"Archive a world and answer a short-lived download link","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"worldId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresInSeconds":{"type":"number"}},"required":["url","expiresInSeconds"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/worlds/:worldId/regenerate":{"post":{"operationId":"regenerateServerWorld","summary":"Queue a regeneration of the world from a seed behind an automatic backup","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"worldId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seed":{"type":"string","maxLength":64,"default":""},"world":{"type":"object","properties":{},"additionalProperties":false,"default":{}},"backup":{"type":"boolean","default":true}},"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["import","regenerate","version_change"]},"worldId":{"type":["string","null"]},"backupId":{"type":["string","null"]}},"required":["kind","worldId","backupId"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/version":{"get":{"operationId":"readServerVersionAssistant","summary":"Read the versions of the game and the plugin compatibility of a target version","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"targetVersion","in":"query","required":false,"schema":{"type":"string","maxLength":32}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"currentVersion":{"type":"string"},"latestVersion":{"type":["string","null"]},"pinned":{"type":"boolean"},"targetVersion":{"type":"string"},"versions":{"type":"array","items":{"type":"string"}},"mutable":{"type":"boolean"},"backupsAvailable":{"type":"boolean"},"rollbackWindowDays":{"type":"number"},"plugins":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"compatible":{"type":"boolean"}},"required":["slug","name","compatible"],"additionalProperties":false}},"pluginsUnknown":{"type":"boolean"},"incompatible":{"type":"number"},"lastChange":{"type":["object","null"],"properties":{"id":{"type":"string"},"fromVersion":{"type":"string"},"toVersion":{"type":"string"},"state":{"type":"string","enum":["pending","applied","failed","rolled_back"]},"rollbackDeadline":{"type":"string"},"rollbackable":{"type":"boolean"}},"required":["id","fromVersion","toVersion","state","rollbackDeadline","rollbackable"],"additionalProperties":false}},"required":["currentVersion","latestVersion","pinned","targetVersion","versions","mutable","backupsAvailable","rollbackWindowDays","plugins","pluginsUnknown","incompatible","lastChange"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"changeServerVersion","summary":"Queue a version change behind an automatic backup and open its rollback window","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string","minLength":1,"maxLength":32}},"required":["version"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"fromVersion":{"type":"string"},"toVersion":{"type":"string"},"state":{"type":"string","enum":["pending","applied","failed","rolled_back"]},"rollbackDeadline":{"type":"string"},"rollbackable":{"type":"boolean"}},"required":["id","fromVersion","toVersion","state","rollbackDeadline","rollbackable"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/version/rollback":{"post":{"operationId":"rollbackServerVersion","summary":"Put the previous version back and restore the world it was taken from","tags":["worlds"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"202":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"fromVersion":{"type":"string"},"toVersion":{"type":"string"},"state":{"type":"string","enum":["pending","applied","failed","rolled_back"]},"rollbackDeadline":{"type":"string"},"rollbackable":{"type":"boolean"}},"required":["id","fromVersion","toVersion","state","rollbackDeadline","rollbackable"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/viewer":{"get":{"operationId":"readServerViewer","summary":"Read the role the signed-in user holds on a server and whether it is support access","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"support":{"type":["object","null"],"properties":{"serverName":{"type":"string"},"ownerEmail":{"type":"string"}},"required":["serverName","ownerEmail"],"additionalProperties":false}},"required":["role","support"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access":{"get":{"operationId":"readServerAccess","summary":"Read the owner, sub-users, pending invitations and seat quota of a server","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"viewerRole":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"quota":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]}},"required":["used","limit"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"since":{"type":"string"},"contact":{"type":"string"},"lastSeenAt":{"type":["string","null"]}},"required":["userId","displayName","role","since","contact","lastSeenAt"],"additionalProperties":false}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","discord"]},"target":{"type":"string"},"role":{"type":"string","enum":["coowner","moderator","viewer"]},"expiresAt":{"type":"string"}},"required":["id","channel","target","role","expiresAt"],"additionalProperties":false}}},"required":["viewerRole","quota","members","invites"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access/log":{"get":{"operationId":"readServerAccessLog","summary":"Read who did what on a server, newest first","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"actorId","in":"query","required":false,"schema":{"type":"string"}},{"name":"beforeAt","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"beforeId","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"at":{"type":"string"},"actorId":{"type":["string","null"]},"actor":{"type":["string","null"]},"bySupport":{"type":"boolean"},"action":{"type":"string","enum":["server.power","console.command","players.manage","backups.create","backups.manage","files.manage","plugins.manage","schedule.manage","settings.manage","owner","member.invited","member.resent","member.revoked","member.joined","member.role","member.removed","member.left","database.remote_changed","database.enabled","database.disabled","database.password_viewed","database.password_rotated","database.config_written","database.pma_opened","database.imported","database.exported","database.wiped"]},"detail":{"type":["string","null"]},"target":{"type":["string","null"]}},"required":["id","at","actorId","actor","bySupport","action","detail","target"],"additionalProperties":false}},"nextCursor":{"type":["object","null"],"properties":{"at":{"type":"string"},"id":{"type":"string"}},"required":["at","id"],"additionalProperties":false},"retentionDays":{"type":"integer"}},"required":["entries","nextCursor","retentionDays"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access/log/export":{"get":{"operationId":"exportServerAccessLog","summary":"Export the activity log of a server over its retention window as CSV","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"actorId","in":"query","required":false,"schema":{"type":"string"}}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"content":{"type":"string"}},"required":["filename","content"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access/invites":{"post":{"operationId":"inviteServerMember","summary":"Invite a sub-user by email or by a linked Discord handle","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","discord"]},"role":{"type":"string","enum":["coowner","moderator","viewer"]},"email":{"type":"string","maxLength":254},"discordHandle":{"type":"string","pattern":"^[A-Za-z0-9_.]{2,32}(#[0-9]{4})?$"}},"required":["channel","role"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"viewerRole":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"quota":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]}},"required":["used","limit"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"since":{"type":"string"},"contact":{"type":"string"},"lastSeenAt":{"type":["string","null"]}},"required":["userId","displayName","role","since","contact","lastSeenAt"],"additionalProperties":false}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","discord"]},"target":{"type":"string"},"role":{"type":"string","enum":["coowner","moderator","viewer"]},"expiresAt":{"type":"string"}},"required":["id","channel","target","role","expiresAt"],"additionalProperties":false}}},"required":["viewerRole","quota","members","invites"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access/invites/:inviteId/resend":{"post":{"operationId":"resendServerInvite","summary":"Send the mail of a pending invitation again with a fresh link and lifetime","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"inviteId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"viewerRole":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"quota":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]}},"required":["used","limit"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"since":{"type":"string"},"contact":{"type":"string"},"lastSeenAt":{"type":["string","null"]}},"required":["userId","displayName","role","since","contact","lastSeenAt"],"additionalProperties":false}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","discord"]},"target":{"type":"string"},"role":{"type":"string","enum":["coowner","moderator","viewer"]},"expiresAt":{"type":"string"}},"required":["id","channel","target","role","expiresAt"],"additionalProperties":false}}},"required":["viewerRole","quota","members","invites"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access/invites/:inviteId/revoke":{"post":{"operationId":"revokeServerInvite","summary":"Revoke a pending invitation of a server","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"inviteId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"viewerRole":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"quota":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]}},"required":["used","limit"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"since":{"type":"string"},"contact":{"type":"string"},"lastSeenAt":{"type":["string","null"]}},"required":["userId","displayName","role","since","contact","lastSeenAt"],"additionalProperties":false}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","discord"]},"target":{"type":"string"},"role":{"type":"string","enum":["coowner","moderator","viewer"]},"expiresAt":{"type":"string"}},"required":["id","channel","target","role","expiresAt"],"additionalProperties":false}}},"required":["viewerRole","quota","members","invites"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access/members/:userId/role":{"post":{"operationId":"changeServerMemberRole","summary":"Change the role of a sub-user of a server","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["coowner","moderator","viewer"]}},"required":["role"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"viewerRole":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"quota":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]}},"required":["used","limit"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"since":{"type":"string"},"contact":{"type":"string"},"lastSeenAt":{"type":["string","null"]}},"required":["userId","displayName","role","since","contact","lastSeenAt"],"additionalProperties":false}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","discord"]},"target":{"type":"string"},"role":{"type":"string","enum":["coowner","moderator","viewer"]},"expiresAt":{"type":"string"}},"required":["id","channel","target","role","expiresAt"],"additionalProperties":false}}},"required":["viewerRole","quota","members","invites"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access/members/:userId/remove":{"post":{"operationId":"removeServerMember","summary":"Take the access of a sub-user to a server away","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"viewerRole":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"quota":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]}},"required":["used","limit"],"additionalProperties":false},"members":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string","enum":["owner","coowner","moderator","viewer"]},"since":{"type":"string"},"contact":{"type":"string"},"lastSeenAt":{"type":["string","null"]}},"required":["userId","displayName","role","since","contact","lastSeenAt"],"additionalProperties":false}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string","enum":["email","discord"]},"target":{"type":"string"},"role":{"type":"string","enum":["coowner","moderator","viewer"]},"expiresAt":{"type":"string"}},"required":["id","channel","target","role","expiresAt"],"additionalProperties":false}}},"required":["viewerRole","quota","members","invites"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/servers/:serverId/access/leave":{"post":{"operationId":"leaveServer","summary":"Give up the own access to a server shared with the caller","tags":["access"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/server-invites/accept":{"post":{"operationId":"acceptServerInvite","summary":"Accept an invitation to a server with its single-use token","tags":["access"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}},"required":["token"],"additionalProperties":false}}}},"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"role":{"type":"string","enum":["coowner","moderator","viewer"]}},"required":["serverId","role"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/server-memberships":{"get":{"operationId":"listSharedServers","summary":"List the servers other accounts share with the caller","tags":["access"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"servers":{"type":"array","items":{"type":"object","properties":{"serverId":{"type":"string"},"name":{"type":"string"},"gameSlug":{"type":"string"},"state":{"type":"string","enum":["creating","queued","starting","online","stopping","off","crash","suspended","trashed"]},"role":{"type":"string","enum":["coowner","moderator","viewer"]},"ownerName":{"type":"string"}},"required":["serverId","name","gameSlug","state","role","ownerName"],"additionalProperties":false}}},"required":["servers"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notices":{"get":{"operationId":"readPortalNotices","summary":"Read the banner and the announcements this account is targeted by","tags":["notifications"],"parameters":[],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"banner":{"type":["object","null"],"properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false},"announcements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"body":{"type":"string"},"ctaLabel":{"type":"string"},"ctaUrl":{"type":"string"}},"required":["id","title","body","ctaLabel","ctaUrl"],"additionalProperties":false}}},"required":["banner","announcements"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/notices/:id/click":{"post":{"operationId":"clickPortalAnnouncement","summary":"Count one click of this account on an announcement","tags":["notifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"sessionCookie":[],"csrfToken":[]}],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"The request carries no live session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The request carries no valid csrf token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/emails/:id/open.gif":{"get":{"operationId":"trackEmailOpen","summary":"Answer a transparent pixel, counting the first open of a panel promo send and nothing for any other email","tags":["public"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/public/emails/:id/click":{"get":{"operationId":"followPanelPromoMail","summary":"Count the click of a panel promo send and redirect to Facturación with its code and UTM tags","tags":["public"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[],"responses":{"302":{"description":"The browser continues at the location the answer names","headers":{"Cache-Control":{"schema":{"type":"string"}},"Location":{"schema":{"type":"string"}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/flags":{"get":{"operationId":"evaluateFeatureFlags","summary":"Evaluate every feature flag for the caller, plan scope and rollout included","tags":["flags"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"flags":{"type":"object","properties":{},"additionalProperties":false}},"required":["flags"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/openapi.json":{"get":{"operationId":"getOpenApiDocument","summary":"OpenAPI description generated from the route definitions of the API","tags":["meta"],"parameters":[],"security":[],"responses":{"200":{"description":"Successful response","headers":{"Cache-Control":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"openapi":{"type":"string"},"info":{"type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"}},"required":["title","version"],"additionalProperties":false},"servers":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}},"externalDocs":{"type":"object","properties":{"description":{"type":"string"},"url":{"type":"string"}},"required":["description","url"],"additionalProperties":false},"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name","description"],"additionalProperties":false}},"components":{"type":"object","properties":{"securitySchemes":{"type":"object","properties":{},"additionalProperties":true}},"required":["securitySchemes"],"additionalProperties":false},"paths":{"type":"object","properties":{},"additionalProperties":true}},"required":["openapi","info","servers","externalDocs","tags","components","paths"],"additionalProperties":false}}}},"400":{"description":"The request failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"The caller exhausted the rate limit of the route","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"attemptsLeft":{"type":"integer","minimum":0},"retryAfterSeconds":{"type":"integer","minimum":1},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}}}}