{"openapi":"3.1.2","info":{"title":"Metabans API","version":"v2.73.0","description":"The Metabans REST API. Base URL: the server listed below; every path starts with `/v1`.\n\n**Authentication.** Send an API key as `Authorization: Bearer mb_\u2026`. Each key carries abilities; every operation\nnames the one it needs (`x-required-ability`). `/v1/public/*` and this document need no key.\n\n**Errors.** Every 4xx/5xx uses the `ErrorEnvelope` schema: `{\"error\": {\"code\", \"message\", \"suggestion\", \"docs_url\", \"trace_id\"}, \"message\"}`.\nA 422 adds `errors` (field => messages) beside it.\n\n**Rate limits.** Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and (authenticated) `X-RateLimit-Tier`;\na 429 adds `Retry-After` and `X-RateLimit-Reset`.\n\n**Pagination.** List endpoints are paginated (`data`, `links`, `meta`). Some accept a `cursor` for cursor pagination \u2014\nfollow `links.next` / `meta.next_cursor` rather than computing pages.\n\n**Platforms.** `steam`, `xbox`, `playstation`, `epic`, `minecraft`, `cod4x`, `ea`, `vu`."},"servers":[{"url":"https://api.metabans.com/"}],"paths":{"/v1/alerts":{"get":{"operationId":"alert.index","summary":"List alerts","tags":["Alerts"],"parameters":[{"name":"trigger_type","in":"query","schema":{"type":["string","null"],"maxLength":64}},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"is_active","in":"query","schema":{"type":"string","enum":["0","1","true","false"]}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"Paginated set of `AlertResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AlertResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"alerts:read","description":"Alert rules configured for the community.\n\n**Required ability:** `alerts:read`."}},"/v1/auto-action-log":{"get":{"operationId":"autoActionLogApi.index","summary":"Auto-action log","tags":["Alerts"],"parameters":[{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"action","in":"query","schema":{"type":"string","maxLength":50}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AutoActionLog"}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"next_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the next set of items."},"next_page_url":{"type":["string","null"],"format":"uri"},"prev_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the previous set of items."},"prev_page_url":{"type":["string","null"],"format":"uri"}},"required":["data","path","per_page","next_cursor","next_page_url","prev_cursor","prev_page_url"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"alerts:read","description":"Actions the community's automations took.\n\n**Required ability:** `alerts:read`."}},"/v1/audit":{"get":{"operationId":"audit.index","summary":"Audit log","tags":["Audit"],"parameters":[{"name":"action","in":"query","schema":{"type":["string","null"],"maxLength":100}},{"name":"user_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"description":"Paginated set of `AuditLogResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"audit:read","description":"Staff and API actions in the community. Page-paginated by default; with `cursor` (or `paginate=cursor`) it is cursor-paginated and `meta.next_cursor` / `links.next` carry the next page.\n\n**Required ability:** `audit:read`."}},"/v1/ban-appeals":{"get":{"operationId":"ban-appeals.index","summary":"List ban appeals","tags":["Ban appeals"],"parameters":[{"name":"status","in":"query","schema":{"type":["string","null"],"maxLength":32}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":50},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"Paginated set of `BanAppealResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BanAppealResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"ban.lift","description":"**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `ban.lift` permission."}},"/v1/ban-appeals/{appeal}":{"get":{"operationId":"ban-appeals.show","summary":"Get a ban appeal","tags":["Ban appeals"],"parameters":[{"name":"appeal","in":"path","required":true,"description":"The appeal ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`BanAppealResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BanAppealResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"ban.lift","description":"**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `ban.lift` permission."}},"/v1/ban-appeals/{appeal}/decide":{"post":{"operationId":"ban-appeals.decide","summary":"Decide a ban appeal","tags":["Ban appeals"],"parameters":[{"name":"appeal","in":"path","required":true,"description":"The appeal ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideBanAppealRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"string","const":"decided"},"message":{"type":"string"},"appeal_status":{"type":"string"},"decided_by":{"type":"string"}},"required":["ok","status","message","appeal_status","decided_by"]},{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"string","const":"already_decided"},"message":{"type":"string"},"appeal_status":{"type":"string"},"decided_by":{"type":"string"}},"required":["ok","status","message","appeal_status","decided_by"]},{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"string","const":"busy"},"message":{"type":"string","const":"Another decision is in progress. Check the appeal again shortly."}},"required":["ok","status","message"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"302":{"description":"","headers":{"Location":{"required":true,"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"ban.lift","description":"Approve, deny, temporarily unban or move an appeal under review.\n\n**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `ban.lift` permission."}},"/v1/bans":{"get":{"operationId":"ban.index","summary":"List bans","tags":["Bans"],"parameters":[{"name":"player_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Player id (as returned by `/v1/players`)."},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"status","in":"query","schema":{"type":["string","null"],"enum":["active","expired",null]}},{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":100},"description":"Free-text search."},{"name":"created_since","in":"query","schema":{"type":["string","null"],"format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?:[:]\\d{2}(?:\\.\\d{1,6})?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$"}},{"name":"updated_since","in":"query","schema":{"type":["string","null"],"format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?:[:]\\d{2}(?:\\.\\d{1,6})?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$"}},{"name":"sort","in":"query","schema":{"type":["string","null"],"enum":["created_at","updated_at","expires_at","id",null]}},{"name":"direction","in":"query","schema":{"type":["string","null"],"enum":["asc","desc",null]}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BanResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BanResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"next_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the next set of items."},"prev_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the previous set of items."}},"required":["path","per_page","next_cursor","prev_cursor"]}},"required":["data","links","meta"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"bans:read","description":"**Required ability:** `bans:read`."},"post":{"operationId":"ban.store","summary":"Create a ban","tags":["Bans"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBanRequest"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BanResource"},"meta":{"type":"object","properties":{"player_created":{"type":"string"}},"required":["player_created"]}},"required":["data","meta"]},{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BanResource"}},"required":["data"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"bans:write","description":"Ban a player by `player_id`, or by `platform` + `platform_id`.\n\n**Required ability:** `bans:write`."}},"/v1/bans/check":{"get":{"operationId":"ban.check","summary":"Check a ban","tags":["Bans"],"parameters":[{"name":"platform","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Platform"},"description":"Player platform."},{"name":"platform_id","in":"query","required":true,"schema":{"type":"string"},"description":"The player's id on that platform."},{"name":"server_id","in":"query","schema":{"type":["string","null"]},"description":"Server id (as returned by `/v1/servers`)."},{"name":"ip","in":"query","schema":{"type":["string","null"]},"description":"Also surface an IP-only ban on this address."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"is_banned":{"type":"boolean"},"active_bans":{"type":"array","items":{"$ref":"#/components/schemas/BanResource"}}},"required":["is_banned","active_bans"]}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"bans:read","description":"Is this player banned? Pass `server_id` to also check bans on linked identities for that server, and `ip` to surface an IP-only ban.\n\n**Required ability:** `bans:read`."}},"/v1/bans/{ban}":{"get":{"operationId":"ban.show","summary":"Get a ban","tags":["Bans"],"parameters":[{"name":"ban","in":"path","required":true,"description":"The ban ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`BanResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BanResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"bans:read","description":"**Required ability:** `bans:read`."},"put":{"operationId":"ban.update","summary":"Update a ban","tags":["Bans"],"parameters":[{"name":"ban","in":"path","required":true,"description":"The ban ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBanRequest"}}}},"responses":{"200":{"description":"`BanResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BanResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"bans:write","x-required-permission":"ban.edit","description":"Change the reason, expiry or scope of a ban.\n\n**Required ability:** `bans:write`. A signed-in person needs the `ban.edit` permission instead."},"delete":{"operationId":"ban.destroy","summary":"Lift a ban","tags":["Bans"],"parameters":[{"name":"ban","in":"path","required":true,"description":"The ban ID","schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"bans:write","x-required-permission":"ban.lift","description":"The ban is kept and marked expired (it then appears under `status=expired`). Lifting a ban that has already ended is a no-op 204.\n\n**Required ability:** `bans:write`. A signed-in person needs the `ban.lift` permission instead."}},"/v1/chat":{"get":{"operationId":"chat.index","summary":"List chat messages","tags":["Chat"],"parameters":[{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1},"description":"Page number (offset pagination)."},{"name":"server_id","in":"query","schema":{"type":["string","null"],"maxLength":64},"description":"Server id (as returned by `/v1/servers`)."},{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":255},"description":"Free-text search."},{"name":"channel","in":"query","schema":{"type":["string","null"],"maxLength":20}},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":2048},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."}],"responses":{"200":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatLogResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0},"total_is_capped":{"type":"boolean"}},"required":["current_page","from","last_page","links","path","per_page","to","total","total_is_capped"]}},"required":["data","links","meta"]},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatLogResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"next_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the next set of items."},"prev_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the previous set of items."}},"required":["path","per_page","next_cursor","prev_cursor"]}},"required":["data","links","meta"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"chat:read","description":"In-game chat captured from the community's servers, newest first. Page-paginated by default (`meta.total_is_capped` is true when the total is a ceiling, not an exact count); with `cursor` it is cursor-paginated and `meta.next_cursor` / `links.next` carry the next page.\n\n**Required ability:** `chat:read`."}},"/v1/players/{player}/currency":{"get":{"operationId":"currency.balance","summary":"Currency balance","tags":["Currency"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"player_id":{"type":"string"},"balance":{"type":"integer"},"lifetime_earned":{"type":"integer"},"lifetime_spent":{"type":"integer"},"has_account":{"type":"boolean"}},"required":["player_id","balance","lifetime_earned","lifetime_spent","has_account"]}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"currency:read","description":"A player's balance and lifetime totals. A player who never earned anything reads as a zero balance with `has_account: false`.\n\n**Required ability:** `currency:read`."}},"/v1/players/{player}/currency/transactions":{"get":{"operationId":"currency.transactions","summary":"Currency transactions","tags":["Currency"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1},"description":"Results per page (max 100)."},{"name":"source","in":"query","schema":{"$ref":"#/components/schemas/LedgerSource"}}],"responses":{"200":{"description":"Paginated set of `CurrencyTransactionResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CurrencyTransactionResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"currency:read","description":"Ledger history for a player, newest first.\n\n**Required ability:** `currency:read`."}},"/v1/currency/catalog":{"get":{"operationId":"currency.catalog","summary":"Redemption catalog","tags":["Currency"],"parameters":[{"name":"server_id","in":"query","schema":{"type":"string","format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CurrencyCatalogResource"}},"meta":{"type":"object","properties":{"count":{"type":"integer","minimum":0}},"required":["count"]}},"required":["data","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"currency:read","description":"Enabled redemption items.\n\n**Required ability:** `currency:read`."}},"/v1/infractions":{"get":{"operationId":"infraction.index","summary":"List infractions","tags":["Infractions"],"parameters":[{"name":"type","in":"query","schema":{"type":["string","null"],"maxLength":32}},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"player_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Player id (as returned by `/v1/players`)."},{"name":"admin_name","in":"query","schema":{"type":["string","null"],"maxLength":100}},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Start of the time window (ISO 8601)."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"End of the time window (ISO 8601)."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"description":"Paginated set of `InfractionResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InfractionResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"infractions:read","description":"Page-paginated by default; with `cursor` (or `paginate=cursor`) it is cursor-paginated and `meta.next_cursor` / `links.next` carry the next page.\n\n**Required ability:** `infractions:read`."}},"/v1/players/{player}/infractions":{"get":{"operationId":"infraction.playerInfractions","summary":"Player infractions","tags":["Infractions"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}},{"name":"type","in":"query","schema":{"type":["string","null"],"maxLength":32}},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"player_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Player id (as returned by `/v1/players`)."},{"name":"admin_name","in":"query","schema":{"type":["string","null"],"maxLength":100}},{"name":"from","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Start of the time window (ISO 8601)."},{"name":"to","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"End of the time window (ISO 8601)."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"description":"Paginated set of `InfractionResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InfractionResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"infractions:read","description":"Infractions for one player. Page-paginated by default; with `cursor` (or `paginate=cursor`) it is cursor-paginated and `meta.next_cursor` / `links.next` carry the next page.\n\n**Required ability:** `infractions:read`."}},"/v1/infractions/punish":{"post":{"operationId":"infraction.punish","summary":"Punish","tags":["Infractions"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PunishRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"action":{"type":"string"},"points":{"type":"integer"},"is_iro":{"type":"boolean"},"infraction_id":{"type":"string"}},"required":["ok","action","points","is_iro","infraction_id"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"infractions:write","description":"Record a punishment; the community's infraction ladder decides the action taken.\n\n**Required ability:** `infractions:write`."}},"/v1/infractions/forgive":{"post":{"operationId":"infraction.forgive","summary":"Forgive","tags":["Infractions"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgiveRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"points":{"type":"integer"},"infraction_id":{"type":"string"}},"required":["ok","points","infraction_id"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"infractions:write","description":"Reduce a player's infraction points.\n\n**Required ability:** `infractions:write`."}},"/v1/infractions/warn":{"post":{"operationId":"infraction.warn","summary":"Warn","tags":["Infractions"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarnRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"points":{"type":"integer"},"infraction_id":{"type":"string"}},"required":["ok","points","infraction_id"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"infractions:write","description":"Record a warning without changing points. `points` is the player's current total, or null when it could not be read.\n\n**Required ability:** `infractions:write`."}},"/v1/infractions/wipe-all":{"post":{"operationId":"infraction.wipeAll","summary":"Wipe points","tags":["Infractions"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WipeAllRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"points":{"type":"integer","const":0},"wiped":{"type":"integer"},"infraction_id":{"type":["string","null"]}},"required":["ok","points","wiped","infraction_id"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"infractions:write","description":"Reset a player's infraction points to 0.\n\n**Required ability:** `infractions:write`."}},"/v1/leaderboards":{"get":{"operationId":"leaderboard.index","summary":"Leaderboard","tags":["Leaderboards"],"parameters":[{"name":"period","in":"query","schema":{"type":"string","pattern":"^[a-z0-9_]+$","maxLength":32}},{"name":"metric","in":"query","schema":{"type":"string","pattern":"^[a-z0-9_]+$","maxLength":32}},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."}],"responses":{"200":{"description":"`LeaderboardResource`","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LeaderboardResource"},"meta":{"type":"object","properties":{"period":{"anyOf":[{"type":"string"},{"type":"string","enum":["weekly"]}]},"metric":{"anyOf":[{"type":"string"},{"type":"string","enum":["kills"]}]}},"required":["period","metric"]}},"required":["data","meta"]},{"type":"object","properties":{"data":{"type":"null"},"meta":{"type":"object","properties":{"period":{"anyOf":[{"type":"string"},{"type":"string","enum":["weekly"]}]},"metric":{"anyOf":[{"type":"string"},{"type":"string","enum":["kills"]}]}},"required":["period","metric"]}},"required":["data","meta"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"leaderboards:read","description":"Rankings for a period and metric.\n\n**Required ability:** `leaderboards:read`."}},"/v1/leaderboards/catalog":{"get":{"operationId":"leaderboard.catalog","summary":"Leaderboard catalog","tags":["Leaderboards"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"server_id":{"type":["string","null"]},"period":{"type":"string"},"metric":{"type":"string"},"calculated_at":{"type":["string","null"]}},"required":["server_id","period","metric","calculated_at"]}},"meta":{"type":"object","properties":{"count":{"type":"integer","minimum":0}},"required":["count"]}},"required":["data","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"leaderboards:read","description":"Which (server, period, metric) combinations have a snapshot, so you never guess valid parameters.\n\n**Required ability:** `leaderboards:read`."}},"/v1/leaderboards/{serverId}":{"get":{"operationId":"publicLeaderboard.show","summary":"Server leaderboard","tags":["Leaderboards"],"parameters":[{"name":"serverId","in":"path","required":true,"schema":{"type":"string"}},{"name":"period","in":"query","schema":{"type":"string","pattern":"^[a-z0-9_]+$","maxLength":32}},{"name":"metric","in":"query","schema":{"type":"string","pattern":"^[a-z0-9_]+$","maxLength":32}}],"responses":{"200":{"description":"`LeaderboardResource`","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LeaderboardResource"},"meta":{"type":"object","properties":{"server_id":{"type":"string"},"period":{"anyOf":[{"type":"string"},{"type":"string","enum":["weekly"]}]},"metric":{"anyOf":[{"type":"string"},{"type":"string","enum":["kills"]}]}},"required":["server_id","period","metric"]}},"required":["data","meta"]},{"type":"object","properties":{"data":{"type":"null"},"meta":{"type":"object","properties":{"server_id":{"type":"string"},"period":{"anyOf":[{"type":"string"},{"type":"string","enum":["weekly"]}]},"metric":{"anyOf":[{"type":"string"},{"type":"string","enum":["kills"]}]}},"required":["server_id","period","metric"]}},"required":["data","meta"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"leaderboards:read","description":"Rankings for one server.\n\n**Required ability:** `leaderboards:read`."}},"/v1/servers/{server}/map-rotation":{"get":{"operationId":"map.rotation","summary":"Map rotation","tags":["Maps"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"current_map":{"type":"string"},"rotation":{"type":"array","items":{}}},"required":["current_map","rotation"]},"meta":{"type":"object","properties":{"server_id":{"type":"string"},"server_name":{"type":"string"},"count":{"type":"integer"}},"required":["server_id","server_name","count"]}},"required":["data","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"maps:read","description":"The current map plus the upcoming rotation. Empty when the game publishes no rotation.\n\n**Required ability:** `maps:read`."}},"/v1/servers/{server}/map-popularity":{"get":{"operationId":"map.popularity","summary":"Map popularity","tags":["Maps"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}},{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":90},"description":"Look-back window in days."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"map_code":{"type":"string"},"team1_wins":{"type":"integer"},"team2_wins":{"type":"integer"},"rounds":{"type":"integer"}},"required":["map_code","team1_wins","team2_wins","rounds"]}},"meta":{"type":"object","properties":{"server_id":{"type":"string"},"server_name":{"type":"string"},"window_days":{"type":"integer"},"supported":{"type":"boolean"},"count":{"type":"integer"}},"required":["server_id","server_name","window_days","supported","count"]}},"required":["data","meta"]},{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"},"minItems":0,"maxItems":0},"meta":{"type":"object","properties":{"server_id":{"type":"string"},"server_name":{"type":"string"},"window_days":{"type":"integer"},"supported":{"type":"boolean"},"reason":{"type":"string","const":"This server has no public registration; no sample data available."}},"required":["server_id","server_name","window_days","supported","reason"]}},"required":["data","meta"]},{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"},"minItems":0,"maxItems":0},"meta":{"type":"object","properties":{"server_id":{"type":"string"},"server_name":{"type":"string"},"window_days":{"type":"integer"},"supported":{"type":"boolean"},"reason":{"type":"string","const":"Map win-rate tracking is only available for Frostbite (BF3/BF4/Hardline) servers."}},"required":["server_id","server_name","window_days","supported","reason"]}},"required":["data","meta"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"maps:read","description":"Round win/loss tally per map. Battlefield 3, 4 and Hardline only; `meta.supported` is false elsewhere.\n\n**Required ability:** `maps:read`."}},"/v1/openapi.json":{"get":{"operationId":"openapi","summary":"OpenAPI document","tags":["Meta"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"x-auth":"none","x-required-ability":null,"description":"This document: an OpenAPI 3.1 description of every public and authenticated v1 endpoint. Cached per release.\n\n**Authentication:** none (public, cached)."}},"/v1/me":{"get":{"operationId":"meta.me","summary":"Current credential","tags":["Meta"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"type":"object","properties":{"auth_method":{"type":"string","const":"api_key"},"api_key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key_prefix":{"type":"string"},"abilities":{"type":"string"},"rate_limit_tier":{"type":"string"},"rate_limit_per_minute":{"type":"string"},"configured_rate_limit_tier":{"type":"string"},"last_used_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["id","name","key_prefix","abilities","rate_limit_tier","rate_limit_per_minute","configured_rate_limit_tier","last_used_at","expires_at","created_at"]},"tenant":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"plan":{"type":["string","null"]}},"required":["id","name","slug","plan"]}},"required":["auth_method","api_key","tenant"]}},"required":["data"]},{"type":"object","properties":{"data":{"type":"object","properties":{"auth_method":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"]},"tenant":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"plan":{"type":["string","null"]}},"required":["id","name","slug","plan"]}},"required":["auth_method","user","tenant"]}},"required":["data"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":null,"description":"The API key (or signed-in person) making the request, its abilities and enforced rate-limit tier, and the community it belongs to.\n\n**Required ability:** none \u2014 any valid API key."}},"/v1/notifications":{"get":{"operationId":"notification.index","summary":"List notifications","tags":["Notifications"],"parameters":[{"name":"status","in":"query","schema":{"type":["string","null"],"enum":["open","read",null]}},{"name":"trigger","in":"query","schema":{"type":["string","null"],"maxLength":100}},{"name":"severity","in":"query","schema":{"type":["string","null"],"maxLength":32}},{"name":"since","in":"query","schema":{"type":["string","null"],"format":"date-time"},"description":"Only items at or after this ISO 8601 time."},{"name":"per_page","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":["integer","null"],"minimum":1},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NotificationResource"}},"meta":{"type":"object","properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"total":{"type":"integer"},"per_page":{"type":"integer"}},"required":["current_page","last_page","total","per_page"]}},"required":["data","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"notifications:read","description":"The enforcement events feed.\n\n**Required ability:** `notifications:read`."}},"/v1/notifications/{id}/resolve":{"patch":{"operationId":"notification.resolve","summary":"Resolve a notification","tags":["Notifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveNotificationRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"id":{"type":"string"}},"required":["ok","id"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"notifications:write","description":"**Required ability:** `notifications:write`."}},"/v1/watchlist":{"get":{"operationId":"watchlist.index","summary":"Watchlist","tags":["Other"],"parameters":[{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WatchlistEntryResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WatchlistEntryResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"next_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the next set of items."},"prev_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the previous set of items."}},"required":["path","per_page","next_cursor","prev_cursor"]}},"required":["data","links","meta"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"watchlist:read","description":"Everyone currently on the watchlist, with their notes and watched events; page- or cursor-paginated.\n\n**Required ability:** `watchlist:read`."}},"/v1/webhooks":{"get":{"operationId":"webhooks.index","summary":"List webhook endpoints","tags":["Other"],"parameters":[{"name":"is_active","in":"query","schema":{"type":"boolean"}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"Paginated set of `WebhookEndpointResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpointResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"webhooks:read","description":"Outgoing webhook endpoints, newest first. The signing secret is never included.\n\n**Required ability:** `webhooks:read`."},"post":{"operationId":"webhooks.store","summary":"Create a webhook endpoint","tags":["Other"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreWebhookRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"201":{"description":"`WebhookEndpointResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WebhookEndpointResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"webhooks:write","description":"Needs a plan that includes integrations. The URL must be `https://` and resolve to a public address. The 201 response carries the signing `secret` \u2014 the only time it is ever shown.\n\n**Required ability:** `webhooks:write`."}},"/v1/webhooks/{webhook}":{"get":{"operationId":"webhooks.show","summary":"Get a webhook endpoint","tags":["Other"],"parameters":[{"name":"webhook","in":"path","required":true,"description":"The webhook ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`WebhookEndpointResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WebhookEndpointResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"webhooks:read","description":"One endpoint with its delivery count. The signing secret is never included.\n\n**Required ability:** `webhooks:read`."},"patch":{"operationId":"webhooks.update","summary":"Update a webhook endpoint","tags":["Other"],"parameters":[{"name":"webhook","in":"path","required":true,"description":"The webhook ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookRequest"}}}},"responses":{"200":{"description":"`WebhookEndpointResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WebhookEndpointResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"webhooks:write","description":"Change any of `name`, `url`, `events` or `is_active`. Setting `is_active` to true re-enables an endpoint that switched itself off and clears its failure count.\n\n**Required ability:** `webhooks:write`."},"delete":{"operationId":"webhooks.destroy","summary":"Delete a webhook endpoint","tags":["Other"],"parameters":[{"name":"webhook","in":"path","required":true,"description":"The webhook ID","schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"webhooks:write","description":"The endpoint and its delivery log are removed.\n\n**Required ability:** `webhooks:write`."}},"/v1/webhooks/{webhook}/deliveries":{"get":{"operationId":"webhooks.deliveries","summary":"Webhook delivery log","tags":["Other"],"parameters":[{"name":"webhook","in":"path","required":true,"description":"The webhook ID","schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","schema":{"type":"string","enum":["pending","success","failed"]}},{"name":"event_type","in":"query","schema":{"type":"string","enum":["server.online","server.offline","wardogs.event_feed_missing","bf2.host_memory_high","bf2.module_offline","bf2.server_offline","bf2.module_recovered","server.wipe","player.join","player.leave","player.ban","player.unban","player.ban_expired","ban.external_cleared","player.kick","player.ban_system","player.ban_admin","player.report","chat.message","chat.toxic","alert.triggered","anticheat.no_weapon_burst","anticheat.revive_after_self_grenade","anticheat.no_weapon_protection","ip.ban","moderation.mute","moderation.unmute","moderation.ping","moderation.afk","admin.broadcast","test.ping"]}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"description":"Array of `WebhookDeliveryResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryResource"}}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"webhooks:read","description":"Delivery attempts for one endpoint, newest first, with the status code and the first 2,000 characters your endpoint answered. Filter by `status` or `event_type`; page- or cursor-paginated, at most 100 a page.\n\n**Required ability:** `webhooks:read`."}},"/v1/webhooks/{webhook}/test":{"post":{"operationId":"webhooks.test","summary":"Send a test delivery","tags":["Other"],"parameters":[{"name":"webhook","in":"path","required":true,"description":"The webhook ID","schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"`WebhookDeliveryResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WebhookDeliveryResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"webhooks:write","description":"Queues one `test.ping` delivery (202). Read its outcome from the delivery log by the returned id. At most 5 a minute and 30 an hour per key.\n\n**Required ability:** `webhooks:write`."}},"/v1/moderation/reports":{"get":{"operationId":"moderation.reports.index","summary":"List player reports","tags":["Other"],"parameters":[{"name":"status","in":"query","schema":{"type":["string","null"],"maxLength":32}},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":50},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"Paginated set of `PlayerReportResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerReportResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"reports:read","description":"Player reports, newest first, with the reporter and the reported player. Filter by `status` or `server_id`.\n\n**Required ability:** `reports:read`."}},"/v1/moderation/reports/{report}":{"get":{"operationId":"moderation.reports.show","summary":"Get a player report","tags":["Other"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`PlayerReportResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlayerReportResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"reports:read","description":"**Required ability:** `reports:read`."}},"/v1/moderation/reports/{report}/resolve":{"post":{"operationId":"moderation.reports.resolve","summary":"Resolve a report","tags":["Other"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportActionRequest"}}}},"responses":{"200":{"description":"`PlayerReportResource`","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlayerReportResource"}},"required":["data"]},{"type":"string"}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"reports:write","description":"Closes an open report as actioned, with an optional `resolution_note`. The reporter is told the outcome. A report that is no longer open is a 409.\n\n**Required ability:** `reports:write`."}},"/v1/moderation/reports/{report}/dismiss":{"post":{"operationId":"moderation.reports.dismiss","summary":"Dismiss a report","tags":["Other"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportActionRequest"}}}},"responses":{"200":{"description":"`PlayerReportResource`","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlayerReportResource"}},"required":["data"]},{"type":"string"}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"reports:write","description":"Closes an open report as not actioned, with an optional `resolution_note`. A report that is no longer open is a 409.\n\n**Required ability:** `reports:write`."}},"/v1/moderation/ban-appeals":{"get":{"operationId":"moderation.ban-appeals.index","summary":"List ban appeals","tags":["Other"],"parameters":[{"name":"status","in":"query","schema":{"type":["string","null"],"maxLength":32}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":50},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"Paginated set of `BanAppealResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BanAppealResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"appeals:read","description":"Ban appeals, player-proved first, then newest. Filter by `status`.\n\n**Required ability:** `appeals:read`."}},"/v1/moderation/ban-appeals/{appeal}":{"get":{"operationId":"moderation.ban-appeals.show","summary":"Get a ban appeal","tags":["Other"],"parameters":[{"name":"appeal","in":"path","required":true,"description":"The appeal ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`BanAppealResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BanAppealResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"appeals:read","description":"One appeal with its ban, its text and its conversation, including staff notes.\n\n**Required ability:** `appeals:read`."}},"/v1/moderation/ban-appeals/{appeal}/decide":{"post":{"operationId":"moderation.ban-appeals.decide","summary":"Decide a ban appeal","tags":["Other"],"parameters":[{"name":"appeal","in":"path","required":true,"description":"The appeal ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideAppealRequest"}}}},"responses":{"200":{"description":"`BanAppealResource`","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BanAppealResource"},"message":{"type":"string"},"decided_by":{"type":"string"}},"required":["data","message","decided_by"]},{"type":"string"}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"appeals:write","description":"`decision` is `approve` (lifts the ban), `temp_unban` (optional `temp_unban_hours`, up to 720), `reject` or `request_info`, with an optional `admin_response` the appellant sees. An appeal already approved or rejected, or one being decided at that moment, is a 409.\n\n**Required ability:** `appeals:write`."}},"/v1/vips":{"get":{"operationId":"vips.index","summary":"List VIPs","tags":["Other"],"parameters":[{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/VipStatus"}},{"name":"game_type","in":"query","schema":{"type":"string","enum":["rust","minecraft","cod4","cs2","ark","7dtd","bf2","bc2","vu","bf3","bf4","bfh","squad","dayz","wardogs"]}},{"name":"search","in":"query","schema":{"type":"string","maxLength":64},"description":"Free-text search."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"Paginated set of `VipMembershipResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/VipMembershipResource"},{"type":"object","required":["games","identities"]}]}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"vip:read","description":"One entry per VIP with each game identity. Filter by `status` (`active`, `expired`, `inactive` for removed), `game_type` or `search`; removed VIPs are left out unless asked for.\n\n**Required ability:** `vip:read`."},"post":{"operationId":"vips.store","summary":"Add a VIP","tags":["Other"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreVipRequest"}}}},"responses":{"201":{"description":"`VipMembershipResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/VipMembershipResource"},{"type":"object","required":["games","identities"]}]}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"vip:write","description":"Needs a plan with the VIP Manager. Without `expires_at` the VIP is permanent; with it, the time until that date is added to a VIP who already has time left, and a permanent VIP stays permanent. Synced to the servers' reserved slots.\n\n**Required ability:** `vip:write`."}},"/v1/vips/{vipMembership}":{"get":{"operationId":"vips.show","summary":"Get a VIP","tags":["Other"],"parameters":[{"name":"vipMembership","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`VipMembershipResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/VipMembershipResource"},{"type":"object","required":["games","identities"]}]}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"vip:read","description":"**Required ability:** `vip:read`."},"patch":{"operationId":"vips.update","summary":"Change a VIP","tags":["Other"],"parameters":[{"name":"vipMembership","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVipRequest"}}}},"responses":{"200":{"description":"`VipMembershipResource`","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/VipMembershipResource"},{"type":"object","required":["games","identities"]}]}},"required":["data"]},{"type":"string"}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"vip:write","description":"Sets `expires_at` exactly (`null` makes it permanent), `notes` or `spectate_allowed`. A new expiry re-activates a lapsed VIP; a removed one is a 409.\n\n**Required ability:** `vip:write`."},"delete":{"operationId":"vips.destroy","summary":"Remove a VIP","tags":["Other"],"parameters":[{"name":"vipMembership","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"vip:write","description":"Removes the VIP and syncs the servers' reserved slots.\n\n**Required ability:** `vip:write`."}},"/v1/mutes":{"get":{"operationId":"mutes.index","summary":"List mutes","tags":["Other"],"parameters":[{"name":"server_id","in":"query","schema":{"type":"string","format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"player_id","in":"query","schema":{"type":"string","format":"uuid"},"description":"Player id (as returned by `/v1/players`)."},{"name":"active","in":"query","schema":{"type":"boolean"}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"description":"Array of `MuteResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MuteResource"}}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"mutes:read","description":"Mutes in force now, newest first; `active=false` includes ended ones. Filter by `server_id` or `player_id`; page- or cursor-paginated.\n\n**Required ability:** `mutes:read`."},"post":{"operationId":"mutes.store","summary":"Mute a player","tags":["Other"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreMuteRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"201":{"description":"`MuteResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MuteResource"},"native_gag":{"type":["object","null"],"properties":{"applied":{"type":["boolean","null"]},"verified":{"type":["boolean","null"]},"response":{"type":["string","null"]},"reapplied":{"type":["boolean","null"]}},"required":["applied","verified","response","reapplied"]},"gag_pending_rejoin":{"type":"boolean"}},"required":["data","native_gag","gag_pending_rejoin"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"mutes:write","description":"Mutes `player_id` on `server_id` with a `reason`, optional `duration_minutes`, `round_scoped` and `scopes`. `native_gag` is what the game answered; if it refused, the mute takes effect when the player next joins (`gag_pending_rejoin`). Forced mutes are not available here.\n\n**Required ability:** `mutes:write`."}},"/v1/mutes/{mute}":{"delete":{"operationId":"mutes.destroy","summary":"Lift a mute","tags":["Other"],"parameters":[{"name":"mute","in":"path","required":true,"description":"The mute ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`MuteResource`","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MuteResource"},"lifted":{"type":"boolean"}},"required":["data","lifted"]},{"type":"string"}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"mutes:write","description":"Lifts that one mute. A game that cannot lift a mute remotely is a 422 and nothing changes.\n\n**Required ability:** `mutes:write`."}},"/v1/players":{"get":{"operationId":"player.index","summary":"List players","tags":["Players"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":100},"description":"Free-text search."},{"name":"platform","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/Platform"},{"type":"null"}]},"description":"Player platform."},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"description":"Paginated set of `PlayerResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"players:read","description":"Every known player in the community. Page-paginated by default; with `cursor` (or `paginate=cursor`) it is cursor-paginated and `meta.next_cursor` / `links.next` carry the next page.\n\n**Required ability:** `players:read`."}},"/v1/players/lookup":{"get":{"operationId":"player.lookup","summary":"Look up a player","tags":["Players"],"parameters":[{"name":"platform","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Platform"},"description":"Player platform."},{"name":"platform_id","in":"query","required":true,"schema":{"type":"string","maxLength":64},"description":"The player's id on that platform."}],"responses":{"200":{"description":"`PlayerResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlayerResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"players:read","description":"Find one player by `platform` + `platform_id`.\n\n**Required ability:** `players:read`."}},"/v1/players/{player}":{"get":{"operationId":"player.show","summary":"Get a player","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`PlayerResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlayerResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"players:read","description":"**Required ability:** `players:read`."}},"/v1/players/{player}/sessions":{"get":{"operationId":"playerHistory.sessions","summary":"Player sessions","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"description":"Array of `PlayerSessionResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerSessionResource"}}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"players:read","description":"Play sessions, newest first, within how far back your plan lets you see. Filter with `server_id`; page- or cursor-paginated.\n\n**Required ability:** `players:read`."}},"/v1/players/{player}/names":{"get":{"operationId":"playerHistory.names","summary":"Player name history","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"description":"Array of `PlayerNameChangeResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerNameChangeResource"}}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"players:read","description":"Recorded name changes, newest first; page- or cursor-paginated.\n\n**Required ability:** `players:read`."}},"/v1/players/{player}/identities":{"get":{"operationId":"v1.playerIdentity","summary":"Linked identities","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string","enum":["no_identity_group","found","overridden","no_global_player"]},"identity_group":{"type":["object","null"],"properties":{"id":{"type":"string"},"confidence_score":{"type":["integer","null"]},"confidence_basis":{"type":["string","null"]},"member_count":{"type":["integer","null"]}},"required":["id","confidence_score","confidence_basis","member_count"]},"linked_accounts":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"global_player_id":{"type":"string"},"player_id":{"type":["string","null"]},"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string"},"name":{},"risk_level":{"type":"string"},"last_seen":{"type":"string"},"signals":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"class":{"type":"string"},"confidence":{"type":["integer","null"]},"last_observed_at":{"type":["string","null"]}},"required":["type","class","confidence","last_observed_at"]}}},"required":["global_player_id","player_id","platform","platform_id","name","risk_level","last_seen","signals"]}}]}},"required":["status","identity_group","linked_accounts"]},"meta":{"type":"object","properties":{"total":{},"returned":{"type":"integer"},"limit":{"type":"integer","const":50}},"required":["total","returned","limit"]}},"required":["data","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"identities:read","description":"The linked accounts in the player's identity group (up to 50, with the full count in `meta.total`) and the kind of signal behind each link. Never IP addresses.\n\n**Required ability:** `identities:read`."}},"/v1/players/{player}/notes":{"get":{"operationId":"playerNote.index","summary":"Player notes","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"cursor","in":"query","schema":{"type":["string","null"],"maxLength":1024},"description":"Opaque cursor from `meta.next_cursor` / `links.next`. Prefer it over `page` for deep lists."},{"name":"paginate","in":"query","schema":{"type":"string","enum":["page","cursor"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerNoteResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerNoteResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"next_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the next set of items."},"prev_cursor":{"type":["string","null"],"description":"The \"cursor\" that points to the previous set of items."}},"required":["path","per_page","next_cursor","prev_cursor"]}},"required":["data","links","meta"]}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"notes:read","description":"Staff notes on the player, newest first; page- or cursor-paginated.\n\n**Required ability:** `notes:read`."},"post":{"operationId":"playerNote.store","summary":"Add a player note","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorePlayerNoteRequest"}}}},"responses":{"201":{"description":"`PlayerNoteResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlayerNoteResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"notes:write","description":"Adds a note (`content`, optional `is_flagged` and `flag_type`), shown under the key's name followed by \"(API)\".\n\n**Required ability:** `notes:write`."}},"/v1/players/{player}/notes/{note}":{"delete":{"operationId":"playerNote.destroy","summary":"Remove a player note","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}},{"name":"note","in":"path","required":true,"description":"The note ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"204":{"description":"No content","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"notes:write","description":"Removes a note. A key can only remove notes it added itself.\n\n**Required ability:** `notes:write`."}},"/v1/players/{player}/watchlist":{"get":{"operationId":"watchlist.show","summary":"Player watch","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`WatchlistEntryResource`","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WatchlistEntryResource"}},"required":["data"]},{"type":"string"}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"watchlist:read","description":"The player's watch, or 404 if they are not watched.\n\n**Required ability:** `watchlist:read`."},"post":{"operationId":"watchlist.store","summary":"Watch a player","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreWatchlistRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"201":{"description":"`WatchlistEntryResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WatchlistEntryResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"watchlist:write","description":"Watches the player for `events` (any of `join`, `leave`, `ban_kick`, `name_change`, `flagged_chat`), with an optional `note` and `duration_minutes`. A player already watched is a 409 carrying the existing watch.\n\n**Required ability:** `watchlist:write`."},"delete":{"operationId":"watchlist.destroy","summary":"Stop watching a player","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"watchlist:write","description":"**Required ability:** `watchlist:write`."}},"/v1/players/{player}/currency/adjustments":{"post":{"operationId":"currency.adjustments.store","summary":"Grant or deduct currency","tags":["Players"],"parameters":[{"name":"player","in":"path","required":true,"description":"The player ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCurrencyAdjustmentRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"player_id":{"type":"string"},"source":{"type":"string"},"amount":{"type":"integer"},"requested_amount":{"type":"integer"},"clamped":{"type":"boolean"},"balance_after":{"type":"integer"},"reason":{"type":["string","null"]},"server_id":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","player_id","source","amount","requested_amount","clamped","balance_after","reason","server_id","created_at"]},"idempotent_replay":{"type":"boolean"}},"required":["data","idempotent_replay"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"currency:write","description":"A positive `amount` grants, a negative one deducts (up to 10,000,000 either way), with a required `reason`. Recorded like a panel grant. Send an `Idempotency-Key` header: a retry with the same key within 24 hours returns the first answer (`idempotent_replay: true`) instead of moving money twice.\n\n**Required ability:** `currency:write`."}},"/v1/public/bans":{"get":{"operationId":"publicBan.index","summary":"Public ban list","tags":["Public"],"parameters":[{"name":"search","in":"query","schema":{"type":["string","null"],"maxLength":200},"description":"Free-text search."},{"name":"game_type","in":"query","schema":{"type":["string","null"],"maxLength":50}},{"name":"category","in":"query","schema":{"type":["string","null"],"maxLength":64}},{"name":"reason_category","in":"query","schema":{"type":["string","null"],"maxLength":64}},{"name":"reason","in":"query","schema":{"type":["string","null"],"maxLength":50}},{"name":"community","in":"query","schema":{"type":["string","null"],"maxLength":64}},{"name":"status","in":"query","schema":{"type":["string","null"],"enum":["active","lifted","expired","all",null]}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"current_page":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"player":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]},"platform":{"anyOf":[{"$ref":"#/components/schemas/Platform"},{"type":"null"}]},"profile_url":{"type":["string","null"]}},"required":["id","name","platform","profile_url"]},"community":{"type":"object","properties":{"name":{"type":["string","null"]},"slug":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["name","slug","url"]},"server_name":{"type":["string","null"]},"game_type":{"type":["string","null"]},"is_global":{"type":"boolean"},"issued_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"lifted_at":{"type":["string","null"]},"lift_kind":{"type":["string","null"]},"status":{"type":"string"},"reason_category":{"type":["string","null"]},"reason_mode":{"type":"string"},"appeal_url":{"type":["string","null"]},"appeals_enabled":{"type":"boolean"},"escalation":{}},"required":["id","player","community","server_name","game_type","is_global","issued_at","expires_at","lifted_at","lift_kind","status","reason_category","reason_mode","appeal_url","appeals_enabled","escalation"]}},"first_page_url":{"type":"string"},"from":{"type":["integer","null"]},"last_page":{"type":"integer"},"last_page_url":{"type":"string"},"next_page_url":{"type":["string","null"]},"path":{"type":"string"},"per_page":{"type":"integer"},"prev_page_url":{"type":["string","null"]},"to":{"type":["integer","null"]},"total":{"type":"integer"}},"required":["current_page","data","first_page_url","from","last_page","last_page_url","next_page_url","path","per_page","prev_page_url","to","total"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"x-auth":"none","x-required-ability":null,"description":"Active bans that communities have chosen to publish, newest first.\n\n**Authentication:** none (public, cached)."}},"/v1/public/servers":{"get":{"operationId":"publicServer.index","summary":"Public server list","tags":["Public"],"parameters":[{"name":"game_type","in":"query","schema":{"type":"string","enum":["rust","minecraft","cod4","cs2","ark","7dtd","bf2","bc2","vu","bf3","bf4","bfh","squad","dayz","wardogs"]}},{"name":"status","in":"query","schema":{"type":"string","enum":["online","offline","connecting"]}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"current_page":{"type":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"game_type":{"type":"string"},"hostname":{"type":["string","null"]},"map":{"type":["string","null"]},"player_count":{"type":"integer"},"max_players":{"type":"integer"},"is_online":{"type":"boolean"},"country_code":{"type":["string","null"]},"last_wipe_at":{"type":["string","null"]},"next_wipe_at":{"type":["string","null"]}},"required":["id","game_type","hostname","map","player_count","max_players","is_online","country_code","last_wipe_at","next_wipe_at"]}},"first_page_url":{"type":"string"},"from":{"type":["integer","null"]},"last_page":{"type":"integer"},"last_page_url":{"type":"string"},"next_page_url":{"type":["string","null"]},"path":{"type":"string"},"per_page":{"type":"integer"},"prev_page_url":{"type":["string","null"]},"to":{"type":["integer","null"]},"total":{"type":"integer"}},"required":["current_page","data","first_page_url","from","last_page","last_page_url","next_page_url","path","per_page","prev_page_url","to","total"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"x-auth":"none","x-required-ability":null,"description":"Servers listed in the public directory with their latest status.\n\n**Authentication:** none (public, cached)."}},"/v1/public/servers/{id}":{"get":{"operationId":"publicServer.show","summary":"Public server","tags":["Public"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"game_type":{"type":"string"},"hostname":{"type":["string","null"]},"map":{"type":["string","null"]},"player_count":{"type":"integer"},"max_players":{"type":"integer"},"fps":{"type":"integer"},"is_online":{"type":"boolean"},"country_code":{"type":["string","null"]},"city":{"type":["string","null"]},"region":{"type":["string","null"]},"last_wipe_at":{"type":["string","null"]},"next_wipe_at":{"type":["string","null"]},"wipe_schedule":{"type":["string","null"]},"show_connection_info":{"type":"boolean"}},"required":["id","game_type","hostname","map","player_count","max_players","fps","is_online","country_code","city","region","last_wipe_at","next_wipe_at","wipe_schedule","show_connection_info"]}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"x-auth":"none","x-required-ability":null,"description":"One public server with its latest status, location and wipe schedule.\n\n**Authentication:** none (public, cached)."}},"/v1/public/health":{"get":{"operationId":"publicHealth.index","summary":"Fleet health","tags":["Public"],"responses":{"200":{"description":"`ServerHealthResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ServerHealthResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"x-auth":"none","x-required-ability":null,"description":"Counts of public servers by state (online, offline, stale) \u2014 they sum to `total_servers`.\n\n**Authentication:** none (public, cached)."}},"/v1/public/communities":{"get":{"operationId":"public.communities.index","summary":"Search communities","tags":["Public"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":100}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"x-auth":"none","x-required-ability":null,"description":"Find a community by name or slug.\n\n**Authentication:** none (public, cached)."}},"/v1/public/communities/{slug}":{"get":{"operationId":"public.communities.show","summary":"Community","tags":["Public"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{}}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"x-auth":"none","x-required-ability":null,"description":"One community by slug.\n\n**Authentication:** none (public, cached)."}},"/v1/reports":{"get":{"operationId":"reports.index","summary":"List player reports","tags":["Reports"],"parameters":[{"name":"status","in":"query","schema":{"type":["string","null"],"maxLength":32}},{"name":"server_id","in":"query","schema":{"type":["string","null"],"format":"uuid"},"description":"Server id (as returned by `/v1/servers`)."},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":50},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"Paginated set of `PlayerReportResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerReportResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"reports.manage","description":"**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `reports.manage` permission."}},"/v1/reports/{report}":{"get":{"operationId":"reports.show","summary":"Get a player report","tags":["Reports"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`PlayerReportResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlayerReportResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"reports.manage","description":"**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `reports.manage` permission."}},"/v1/reports/{report}/resolve":{"post":{"operationId":"reports.resolve","summary":"Resolve a report","tags":["Reports"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePlayerReportRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{}}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"302":{"description":"","headers":{"Location":{"required":true,"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"reports.manage","description":"**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `reports.manage` permission."}},"/v1/reports/{report}/dismiss":{"post":{"operationId":"reports.dismiss","summary":"Dismiss a report","tags":["Reports"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissPlayerReportRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{}}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"302":{"description":"","headers":{"Location":{"required":true,"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"reports.manage","description":"**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `reports.manage` permission."}},"/v1/reports/{report}/kick":{"post":{"operationId":"reports.kick","summary":"Kick the reported player","tags":["Reports"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KickFromReportRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{}}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"302":{"description":"","headers":{"Location":{"required":true,"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"reports.manage","description":"**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `reports.manage` permission."}},"/v1/reports/{report}/ban":{"post":{"operationId":"reports.ban","summary":"Ban the reported player","tags":["Reports"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BanFromReportRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{}}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"302":{"description":"","headers":{"Location":{"required":true,"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"reports.manage","description":"Bans the target and resolves the report.\n\n**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `reports.manage` permission."}},"/v1/reports/{report}/request-evidence":{"post":{"operationId":"reports.request-evidence","summary":"Request evidence","tags":["Reports"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestPlayerReportEvidenceRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":["string","null"]},"deliveries":{"type":"object","properties":{"in_game":{"type":"string"},"discord":{"type":"string"}},"required":["in_game","discord"]},"link":{"type":"string"},"expires_at":{"type":["string","null"]},"message":{"anyOf":[{"type":"string"},{"type":"string","enum":["Marked as needing evidence. The reporter could not be reached right now; share the link with them another way."]}]}},"required":["status","deliveries","link","expires_at","message"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"302":{"description":"","headers":{"Location":{"required":true,"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"reports.manage","description":"Ask the reporter for more evidence.\n\n**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `reports.manage` permission."}},"/v1/reports/{report}/attach-evidence":{"post":{"operationId":"reports.attach-evidence","summary":"Attach evidence","tags":["Reports"],"parameters":[{"name":"report","in":"path","required":true,"description":"The report ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachPlayerReportEvidenceRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":["string","null"]},"evidence_submissions":{},"message":{"anyOf":[{"type":"string"},{"type":"string","enum":["Evidence attached to the player record."]}]}},"required":["status","evidence_submissions","message"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"302":{"description":"","headers":{"Location":{"required":true,"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"x-required-permission":"reports.manage","description":"Staff attach evidence to a report.\n\n**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403. Requires the `reports.manage` permission."}},"/v1/servers":{"get":{"operationId":"server.index","summary":"List servers","tags":["Servers"],"parameters":[{"name":"game_type","in":"query","schema":{"anyOf":[{"$ref":"#/components/schemas/GameType"},{"type":"null"}]}},{"name":"status","in":"query","schema":{"type":["string","null"],"maxLength":32}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"Paginated set of `ServerResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ServerResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"servers:read","description":"Every server in the community. Connection details and RCON credentials are never included.\n\n**Required ability:** `servers:read`."}},"/v1/servers/{server}":{"get":{"operationId":"server.show","summary":"Get a server","tags":["Servers"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"`ServerResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ServerResource"}},"required":["data"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"servers:read","description":"**Required ability:** `servers:read`."}},"/v1/servers/{server}/players/online":{"get":{"operationId":"server.onlinePlayers","summary":"Online players","tags":["Servers"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"player_id":{"type":["string","null"]},"name":{},"platform":{"anyOf":[{"$ref":"#/components/schemas/Platform"},{"type":"null"}]},"platform_id":{"type":["string","null"]},"connected_at":{"type":"string"}},"required":["player_id","name","platform","platform_id","connected_at"]}},"meta":{"type":"object","properties":{"server_id":{"type":"string"},"server_name":{"type":"string"},"total":{"type":"integer","minimum":0},"truncated":{"type":"boolean"}},"required":["server_id","server_name","total","truncated"]}},"required":["data","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"servers:read","description":"Players currently connected to the server.\n\n**Required ability:** `servers:read`."}},"/v1/server-stats/{server}":{"get":{"operationId":"serverStatsApi.show","summary":"Server stats","tags":["Servers"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}},{"name":"hours","in":"query","schema":{"type":"integer","minimum":1,"maximum":720}}],"responses":{"200":{"description":"`ServerStatsResource`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerStatsResource"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"stats:read","description":"Time series of player counts and performance for one server.\n\n**Required ability:** `stats:read`."}},"/v1/server-templates":{"get":{"operationId":"serverTemplateApi.index","summary":"List server templates","tags":["Servers"],"parameters":[{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100},"description":"Results per page (max 100)."},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000},"description":"Page number (offset pagination)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"data":{"type":"array","items":{"$ref":"#/components/schemas/ServerTemplate"}},"first_page_url":{"type":["string","null"]},"from":{"type":["integer","null"],"minimum":1},"last_page_url":{"type":["string","null"]},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"next_page_url":{"type":["string","null"]},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"prev_page_url":{"type":["string","null"]},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","data","first_page_url","from","last_page_url","last_page","links","next_page_url","path","per_page","prev_page_url","to","total"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"templates:read","description":"**Required ability:** `templates:read`."}},"/v1/servers/{server}/commands":{"post":{"operationId":"servers.commands","summary":"Run a server command","tags":["Servers"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerCommandRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"string"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"server:command","description":"One moderation action on a live server: `kick`, `silent_kick`, `kill`, `say` or `yell` (anything else is refused before it is sent). One result per target, each with its own `ok` \u2014 a game that refuses a command answers 200 with `ok: false` and the reason in `error`. Long messages are split to fit the game. At most 16 targets and 30 commands a minute per key.\n\n**Required ability:** `server:command`."}},"/v1/servers/{server}/admin-action":{"post":{"operationId":"servers.admin-action","summary":"Run an admin action","tags":["Staff actions"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"target":{"type":"string"},"ok":{"type":"boolean"},"error":{"type":"string"},"response":{"type":"null"}},"required":["target","ok","error","response"]},{"type":"object","properties":{"target":{"type":"string"},"ok":{"type":"boolean"},"error":{},"response":{"type":"null"}},"required":["target","ok","error","response"]},{"type":"object","properties":{"target":{"type":"string"},"ok":{"type":"boolean"},"error":{"type":"null"},"response":{"anyOf":[{"type":"string"},{"type":"string","enum":["Ban created and queued for kick."]}]},"notice":{"type":"string"}},"required":["target","ok","error","response","notice"]},{"type":"object","properties":{"target":{"type":"string"},"ok":{"type":"boolean"},"error":{"type":"string","const":"This player isn't in Metabans yet, so they can't be banned from here. Try again once their join has been recorded."},"response":{"type":"null"}},"required":["target","ok","error","response"]},{"type":"object","properties":{"target":{"type":"string"},"ok":{"type":"boolean"},"error":{"type":"string","const":"This server has no private chat channel, so that message would have gone to everyone. It was not sent."},"response":{"type":"null"}},"required":["target","ok","error","response"]},{"type":"string"},{"type":"object","properties":{"target":{"type":"string"},"ok":{"type":"boolean"},"error":{"type":"string","const":"RCON service unavailable"},"response":{"type":"null"}},"required":["target","ok","error","response"]},{"type":"object","properties":{"target":{"type":"string"},"ok":{"type":"boolean"},"error":{"type":"string"},"response":{"type":["string","null"]},"code":{"type":"string","const":"already_on_team"},"queued":{"type":"boolean"},"message":{"type":"string"},"metabans_bans_lifted":{"type":"integer"},"metabans_global_ban_kept":{"type":"boolean"},"notice":{"type":["string","null"],"enum":["This player also holds a Metabans ban covering other servers, which was left in place. Lift it from the Bans page if that is intended.",null]},"verification":{"type":["string","null"]}},"required":["target","ok","error","response","code","queued","message","metabans_bans_lifted","metabans_global_ban_kept","notice","verification"]}]}}},"required":["ok","results"]},{"type":"string"}]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"description":"Kick, ban, move, message and other structured actions on a live server. The game decides which actions exist; each result reports success per target.\n\n**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403."}},"/v1/servers/{server}/chat":{"post":{"operationId":"servers.chat","summary":"Send chat","tags":["Staff actions"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendServerChatRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"person","x-required-ability":null,"description":"Say a message on the server.\n\n**Authentication:** a signed-in person only (panel session or the Metabans app). An `mb_` API key is refused with 403."}},"/v1/servers/{server}/votes":{"get":{"operationId":"vote.index","summary":"Map votes","tags":["Votes"],"parameters":[{"name":"server","in":"path","required":true,"description":"The server ID","schema":{"type":"string","format":"uuid"}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1},"description":"Results per page (max 100)."},{"name":"outcome","in":"query","schema":{"type":"string","enum":["no_votes","below_min_turnout","winner_applied"]}}],"responses":{"200":{"description":"Paginated set of `VoteRoundResource`","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VoteRoundResource"}},"links":{"type":"object","properties":{"first":{"type":["string","null"]},"last":{"type":["string","null"]},"prev":{"type":["string","null"]},"next":{"type":["string","null"]}},"required":["first","last","prev","next"]},"meta":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"from":{"type":["integer","null"],"minimum":1},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","from","last_page","links","path","per_page","to","total"]}},"required":["data","links","meta"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Tier":{"$ref":"#/components/headers/X-RateLimit-Tier"}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"bearerAuth":[]}],"x-auth":"api_key","x-required-ability":"votes:read","description":"Completed map-vote rounds. Aggregate results only \u2014 never individual ballots.\n\n**Required ability:** `votes:read`."}}},"components":{"schemas":{"AdminAction":{"type":"string","enum":["kick","ban","unban","kill","move","warn","end_round","next_round","restart_round","change_map","maplist_manage","say","yell","injure_player","recover_player","silent_kick","queue_priority_grant","queue_priority_revoke","server_auth_grant","server_auth_revoke","give_item","give_item_all","scheduled_restart","save_world","write_config","set_time_of_day","set_weather","set_var","remove_from_squad"],"title":"AdminAction"},"AdminActionRequest":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/AdminAction"},"params":{"type":"object","properties":{"team_id":{"type":"integer","minimum":1,"maximum":4},"squad_id":{"type":"integer","minimum":1,"maximum":16},"duration_hours":{"type":["integer","null"],"minimum":0},"is_global":{"type":["boolean","null"]},"ban_template_id":{"type":["string","null"],"format":"uuid"},"scope":{"type":"string","enum":["all","team","squad","player"]},"message":{"type":"string","maxLength":500},"name":{"type":"string","maxLength":255},"reason":{"type":"string","maxLength":255},"duration":{"type":"integer","minimum":1,"maximum":60},"team":{"type":"integer","minimum":1,"maximum":4},"force_kill":{"type":"boolean"},"map_index":{"type":"integer","minimum":0},"platform_id":{"type":"string","maxLength":255},"attribution":{"type":"string","enum":["none","sender"]},"level":{"type":"string","enum":["owner","moderator"]},"shortname":{"type":"string","maxLength":64},"quantity":{"type":"integer","minimum":1,"maximum":10000},"seconds":{"type":"integer","minimum":5,"maximum":3600},"confirm":{"type":"string","maxLength":255},"value":{"type":"number"},"channel":{"type":"string","enum":["rain","fog","wind","thunder"]},"key":{"type":"string","pattern":"^[A-Za-z0-9_.]+$","maxLength":64}}},"targets":{"type":"array","items":{"type":"string","maxLength":255},"maxItems":64}},"required":["action"],"title":"AdminActionRequest"},"AlertResource":{"type":"object","properties":{"id":{"type":"string"},"trigger_type":{"type":"string"},"server_id":{"type":["string","null"]},"is_active":{"type":"boolean"},"last_triggered_at":{"type":["string","null"]},"cooldown_minutes":{"type":"integer"},"created_at":{"type":["string","null"]}},"required":["id","trigger_type","server_id","is_active","last_triggered_at","cooldown_minutes","created_at"],"title":"AlertResource"},"AttachPlayerReportEvidenceRequest":{"type":"object","properties":{"text":{"type":"string","minLength":3,"maxLength":2000},"links":{"type":["array","null"],"items":{"type":"string","format":"uri","maxLength":2048},"maxItems":5}},"required":["text"],"title":"AttachPlayerReportEvidenceRequest"},"AuditLogResource":{"type":"object","properties":{"id":{"type":"string"},"user_name":{"type":["string","null"]},"action":{"type":"string"},"target_type":{"type":["string","null"]},"target_id":{"type":["string","null"]},"details":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"minItems":0,"maxItems":0}]},"created_at":{"type":"string"}},"required":["id","action","target_type","target_id","details","created_at"],"title":"AuditLogResource"},"AutoActionLog":{"type":"object","properties":{"id":{"type":"string"},"alert_id":{"type":["string","null"]},"action":{"type":"string"},"trigger_type":{"type":"string"},"player_id":{"type":["string","null"]},"server_id":{"type":["string","null"]},"player_name":{"type":["string","null"]},"platform_id":{"type":["string","null"]},"reason":{"type":["string","null"]},"config":{"type":["array","null"],"items":{}},"status":{"type":"string"},"error_message":{"type":["string","null"]},"executed_at":{"type":"string","format":"date-time"}},"required":["id","alert_id","action","trigger_type","player_id","server_id","player_name","platform_id","reason","config","status","error_message","executed_at"],"title":"AutoActionLog"},"BanAppealResource":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"tracking_code":{"type":"string"},"is_resolved":{"type":"boolean"},"is_verified":{"type":"boolean"},"verification_method":{"type":"string"},"verification_status":{"type":"string"},"contact_email":{"type":["string","null"]},"contact_discord":{"type":["string","null"]},"reviewed_at":{"type":["string","null"]},"reviewed_by_name":{"type":["string","null"]},"created_at":{"type":["string","null"]},"ban":{"type":["object","null"],"properties":{"id":{"type":"string"},"reason":{"type":"string"},"expires_at":{"type":["string","null"]},"is_permanent":{"type":"boolean"},"created_at":{"type":["string","null"]},"player":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string"}},"required":["id","name","platform","platform_id"]},"server":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","reason","expires_at","is_permanent","created_at","player","server"]},"appeal_text":{"type":"string"},"admin_response":{"type":["string","null"]},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author_name":{"type":["string","null"]},"is_admin":{"type":"boolean"},"is_internal":{"type":"boolean"},"body":{"type":"string"},"created_at":{"type":["string","null"]}},"required":["id","author_name","is_admin","is_internal","body","created_at"]}}},"required":["id","status","tracking_code","is_resolved","is_verified","verification_method","verification_status","contact_email","contact_discord","reviewed_at","created_at","ban","appeal_text","admin_response","comments"],"title":"BanAppealResource"},"BanCategory":{"type":"string","enum":["cheating","evasion","toxicity","teamkill","cosmetic","other","unknown"],"title":"BanCategory"},"BanFromReportRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":1000},"duration_hours":{"type":["integer","null"],"minimum":1,"maximum":8760},"is_global":{"type":["boolean","null"]},"resolution_note":{"type":["string","null"],"maxLength":1000}},"required":["reason"],"title":"BanFromReportRequest"},"BanResource":{"type":"object","properties":{"id":{"type":"string"},"player_id":{"type":["string","null"]},"player":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{},"platform":{"anyOf":[{"$ref":"#/components/schemas/Platform"},{"type":"null"}]},"platform_id":{"type":["string","null"]}},"required":["id","name","platform","platform_id"]},"server_id":{"type":["string","null"]},"server_ids":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"},"banned_by_name":{"type":["string","null"]},"expires_at":{"type":["string","null"]},"is_permanent":{"type":"boolean"},"is_global":{"type":"boolean"},"appeal_status":{"type":["string","null"]},"synced_at":{"type":["string","null"]},"sync_failed_at":{"type":["string","null"]},"sync_error":{"type":["string","null"],"enum":["Sync failed",null]},"created_at":{"type":["string","null"]}},"required":["id","player_id","server_id","reason","expires_at","is_permanent","is_global","appeal_status","synced_at","sync_failed_at","sync_error","created_at"],"title":"BanResource"},"ChatLogResource":{"type":"object","properties":{"id":{"type":"string"},"server_id":{"type":["string","null"]},"player_name":{"type":"string"},"message":{"type":"string"},"channel":{"type":"string"},"created_at":{"type":"string"}},"required":["id","server_id","player_name","message","channel","created_at"],"title":"ChatLogResource"},"CurrencyCatalogResource":{"type":"object","properties":{"id":{"type":"string"},"action_key":{"anyOf":[{"$ref":"#/components/schemas/RedemptionActionKey"},{"type":"string","enum":["vip_purchase","solo_move_immunity","squad_move_immunity","vote_weight_boost","gift","gamble","broadcast","rust_give_item"]}]},"name":{"type":"string"},"description":{"type":["string","null"]},"cost":{"type":"integer"},"server_id":{"type":["string","null"]},"short_code":{"type":"string"},"aliases":{"type":"array","items":{}},"per_round_purchase_limit":{"type":["integer","null"]},"per_day_purchase_limit":{"type":["integer","null"]}},"required":["id","action_key","name","description","cost","server_id","short_code","aliases","per_round_purchase_limit","per_day_purchase_limit"],"title":"CurrencyCatalogResource"},"CurrencyTransactionResource":{"type":"object","properties":{"id":{"type":"string"},"delta":{"type":"integer"},"balance_after":{"type":"integer"},"source":{"anyOf":[{"$ref":"#/components/schemas/LedgerSource"},{"type":"string","enum":["payroll","per_kill","per_headshot","seed_bonus","specific_weapon","round_winner","death_penalty","mugging_in","mugging_out","bounty_post","bounty_claim","bounty_refund","redemption_vip","redemption_immunity_solo","redemption_immunity_squad","redemption_vote_weight","redemption_gift_out","redemption_gift_in","redemption_gamble","redemption_other","admin_grant","admin_revoke","pool_tax_in","challenge_reward","assist_reward","achievement_reward","battle_wager_post","battle_wager_win","battle_wager_refund","lockout_hold_reward"]}]},"server_id":{"type":["string","null"]},"reason":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","delta","balance_after","source","server_id","reason","created_at"],"title":"CurrencyTransactionResource"},"DecideAppealRequest":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","temp_unban","reject","request_info"]},"admin_response":{"type":["string","null"],"maxLength":5000},"temp_unban_hours":{"type":["integer","null"],"minimum":0,"maximum":720}},"required":["decision"],"title":"DecideAppealRequest"},"DecideBanAppealRequest":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","temp_unban","reject","request_info"]},"admin_response":{"type":["string","null"],"maxLength":5000},"temp_unban_hours":{"type":["integer","null"],"minimum":0,"maximum":720}},"required":["decision"],"title":"DecideBanAppealRequest"},"DismissPlayerReportRequest":{"type":"object","properties":{"resolution_note":{"type":["string","null"],"maxLength":1000}},"title":"DismissPlayerReportRequest"},"ForgiveRequest":{"type":"object","properties":{"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string","maxLength":64},"reason":{"type":"string","maxLength":500},"server_id":{"type":"string"}},"required":["platform","platform_id","reason","server_id"],"title":"ForgiveRequest"},"GameType":{"type":"string","enum":["rust","minecraft","cod4","cs2","ark","7dtd","bf2","bc2","vu","bf3","bf4","bfh","squad","dayz","wardogs"],"title":"GameType"},"InfractionResource":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"player":{"type":"object","properties":{"id":{"type":"string"},"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string"},"name":{"type":"string"}},"required":["id","platform","platform_id","name"]},"admin_name":{"type":"string"},"reason":{"type":"string"},"points_change":{"type":"string"},"action_taken":{"type":"string"},"is_iro":{"type":"string"},"server_id":{"type":"string"},"created_at":{"type":"string"}},"required":["id","type","admin_name","reason","points_change","action_taken","is_iro","server_id","created_at"],"title":"InfractionResource"},"KickFromReportRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"required":["reason"],"title":"KickFromReportRequest"},"LeaderboardResource":{"type":"object","properties":{"id":{"type":"string"},"server_id":{"type":["string","null"]},"period":{"type":"string"},"metric":{"type":"string"},"rankings":{"type":"array","items":{}},"calculated_at":{"type":"string"}},"required":["id","server_id","period","metric","rankings","calculated_at"],"title":"LeaderboardResource"},"LedgerSource":{"type":"string","enum":["payroll","per_kill","per_headshot","seed_bonus","specific_weapon","round_winner","death_penalty","mugging_in","mugging_out","bounty_post","bounty_claim","bounty_refund","redemption_vip","redemption_immunity_solo","redemption_immunity_squad","redemption_vote_weight","redemption_gift_out","redemption_gift_in","redemption_gamble","redemption_other","admin_grant","admin_revoke","pool_tax_in","challenge_reward","assist_reward","achievement_reward","battle_wager_post","battle_wager_win","battle_wager_refund","lockout_hold_reward"],"title":"LedgerSource"},"MuteResource":{"type":"object","properties":{"id":{"type":"string"},"player":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string"}},"required":["id","name","platform","platform_id"]},"server":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"server_id":{"type":["string","null"]},"reason":{"type":["string","null"]},"muted_by":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"string"}},"is_global":{"type":"boolean"},"round_scoped":{"type":"boolean"},"forced":{"type":"boolean"},"is_active":{"type":"boolean"},"expires_at":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["id","server_id","reason","muted_by","scopes","is_global","round_scoped","forced","is_active","expires_at","created_at"],"title":"MuteResource"},"MuteScope":{"type":"string","enum":["chat","voice","sign","bag","vending"],"title":"MuteScope"},"NotificationResource":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string","enum":["open","read"]},"trigger_type":{},"severity":{},"title":{},"message":{},"resolved_at":{},"resolved_action":{},"data":{"type":"array","items":{}},"read_at":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["id","type","status","trigger_type","severity","title","message","resolved_at","resolved_action","data","read_at","created_at"],"title":"NotificationResource"},"Platform":{"type":"string","description":"Player platform. Always required alongside a `platform_id` \u2014 there is no default.","enum":["steam","xbox","playstation","epic","minecraft","cod4x","ea","vu"]},"PlayerNameChangeResource":{"type":"object","properties":{"id":{"type":"string"},"old_name":{},"new_name":{},"changed_at":{"type":"string"}},"required":["id","old_name","new_name","changed_at"],"title":"PlayerNameChangeResource"},"PlayerNoteResource":{"type":"object","properties":{"id":{"type":"string"},"player_id":{"type":"string"},"content":{"type":"string"},"is_flagged":{"type":"boolean"},"flag_type":{"type":["string","null"]},"author":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["id","player_id","content","is_flagged","flag_type","author","created_at"],"title":"PlayerNoteResource"},"PlayerReportResource":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"priority":{"type":["string","null"]},"reason":{"type":"string"},"reporter":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string"}},"required":["id","name","platform","platform_id"]},"target":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string"}},"required":["id","name","platform","platform_id"]},"server":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"game_type":{"type":"string"}},"required":["id","name","game_type"]},"resolution_note":{"type":["string","null"]},"resolved_by_name":{"type":["string","null"]},"resolved_at":{"type":["string","null"]},"is_escalation":{"type":"boolean"},"resulting_ban_id":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["id","status","priority","reason","resolution_note","resolved_at","is_escalation","resulting_ban_id","created_at"],"title":"PlayerReportResource"},"PlayerResource":{"type":"object","properties":{"id":{"type":"string"},"name":{},"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string"},"first_seen":{"type":["string","null"]},"last_seen":{"type":["string","null"]},"total_playtime":{"type":"integer"},"is_banned":{"type":"boolean"},"created_at":{"type":["string","null"]}},"required":["id","name","platform","platform_id","first_seen","last_seen","total_playtime","is_banned","created_at"],"title":"PlayerResource"},"PlayerSessionResource":{"type":"object","properties":{"id":{"type":"string"},"server":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"game_type":{"type":"string"}},"required":["id","name","game_type"]},"player_name":{},"connected_at":{"type":"string"},"disconnected_at":{"type":["string","null"]},"duration_seconds":{"type":["integer","null"]},"kills":{"type":"integer"},"deaths":{"type":"integer"},"score":{"type":"integer"},"avg_ping":{"type":["integer","null"]},"disconnect_reason":{"type":["string","null"]}},"required":["id","server","player_name","connected_at","disconnected_at","duration_seconds","kills","deaths","score","avg_ping","disconnect_reason"],"title":"PlayerSessionResource"},"PunishRequest":{"type":"object","properties":{"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string","maxLength":64},"reason":{"type":"string","maxLength":500},"server_id":{"type":"string"}},"required":["platform","platform_id","reason","server_id"],"title":"PunishRequest"},"RedemptionActionKey":{"type":"string","enum":["vip_purchase","solo_move_immunity","squad_move_immunity","vote_weight_boost","gift","gamble","broadcast","rust_give_item"],"title":"RedemptionActionKey"},"ReportActionRequest":{"type":"object","properties":{"resolution_note":{"type":["string","null"],"maxLength":1000}},"title":"ReportActionRequest"},"RequestPlayerReportEvidenceRequest":{"type":"object","properties":{"note":{"type":["string","null"],"maxLength":500}},"title":"RequestPlayerReportEvidenceRequest"},"ResolveNotificationRequest":{"type":"object","properties":{"action":{"type":"string","enum":["acknowledge","review_ban","punish"]}},"title":"ResolveNotificationRequest"},"ResolvePlayerReportRequest":{"type":"object","properties":{"resolution_note":{"type":["string","null"],"maxLength":1000}},"title":"ResolvePlayerReportRequest"},"SendServerChatRequest":{"type":"object","properties":{"message":{"type":"string","maxLength":500},"audience":{"type":["string","null"],"enum":["all",null]}},"required":["message"],"title":"SendServerChatRequest"},"ServerCommandRequest":{"type":"object","properties":{"action":{"type":"string","enum":["kick","silent_kick","kill","say","yell"]},"targets":{"type":"array","items":{"type":"string","maxLength":255},"maxItems":16},"params":{"type":"object","properties":{"message":{"type":"string","maxLength":500},"scope":{"type":"string","enum":["all","team","squad","player"]},"team_id":{"type":"integer","minimum":1,"maximum":4},"squad_id":{"type":"integer","minimum":1,"maximum":16},"duration":{"type":"integer","minimum":1,"maximum":60},"attribution":{"type":"string","enum":["none","sender"]},"name":{"type":"string","maxLength":255},"platform_id":{"type":"string","maxLength":255},"reason":{"type":"string","maxLength":255}}}},"required":["action"],"title":"ServerCommandRequest"},"ServerHealthResource":{"type":"object","properties":{"online":{"type":"string"},"offline":{"type":"string"},"stale":{"type":"string"},"connecting":{"type":"string"},"connecting_measured":{"type":"string"},"total_servers":{"type":"string"},"total_players":{"type":"string"},"stale_after_minutes":{"type":"string"}},"required":["online","offline","stale","connecting","connecting_measured","total_servers","total_players","stale_after_minutes"],"title":"ServerHealthResource"},"ServerResource":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"game_type":{"type":"string"},"map":{"type":["string","null"]},"player_count":{"type":"integer"},"max_players":{"type":"integer"},"status":{"type":"string"},"created_at":{"type":["string","null"]}},"required":["id","name","game_type","map","player_count","max_players","status","created_at"],"title":"ServerResource"},"ServerStatsResource":{"type":"object","properties":{"server_id":{"type":"string"},"server_name":{"type":"string"},"hours":{"type":"string"},"resolution":{"type":"string"},"data":{"type":"string"},"events":{"type":"string"}},"required":["server_id","server_name","hours","resolution","data","events"],"title":"ServerStatsResource"},"ServerTemplate":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"game_type":{"type":"string"},"server_config":{"type":"array","items":{}},"metadata_config":{"type":"string"},"alert_configs":{"type":["array","null"],"items":{}},"reputation_auto_actions":{"type":["array","null"],"items":{}},"source_server_id":{"type":["string","null"]},"created_by":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"},"included_features":{"type":"array","items":{}},"captures_features":{"type":"boolean"}},"required":["id","name","description","game_type","server_config","metadata_config","alert_configs","reputation_auto_actions","source_server_id","created_by","created_at","updated_at","included_features","captures_features"],"title":"ServerTemplate"},"StoreBanRequest":{"type":"object","properties":{"player_id":{"type":["string","null"]},"platform":{"anyOf":[{"$ref":"#/components/schemas/Platform"},{"type":"null"}]},"platform_id":{"type":["string","null"],"maxLength":40},"player_name":{"type":["string","null"],"maxLength":255},"category":{"$ref":"#/components/schemas/BanCategory"},"reason":{"type":"string","maxLength":1000},"scope":{"type":"string","enum":["server","selected","global"]},"server_id":{"type":"string","format":"uuid"},"server_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":500,"uniqueItems":true},"is_global":{"type":"boolean"},"expires_at":{"type":["string","null"],"format":"date-time"},"confirm_bf2_pid":{"type":["boolean","null"]},"bf2_session_id":{"type":["string","null"],"format":"uuid"}},"required":["reason","server_id"],"title":"StoreBanRequest"},"StoreCurrencyAdjustmentRequest":{"type":"object","properties":{"amount":{"type":"integer","minimum":-10000000,"maximum":10000000},"reason":{"type":"string","minLength":1,"maxLength":500},"server_id":{"type":["string","null"],"format":"uuid"}},"required":["amount","reason"],"title":"StoreCurrencyAdjustmentRequest"},"StoreMuteRequest":{"type":"object","properties":{"player_id":{"type":"string","format":"uuid"},"server_id":{"type":"string","format":"uuid"},"reason":{"type":"string","maxLength":500},"duration_minutes":{"type":["integer","null"],"minimum":1,"maximum":525600},"round_scoped":{"type":"boolean"},"scopes":{"type":"array","items":{"$ref":"#/components/schemas/MuteScope"},"minItems":1},"forced":{"type":"string"}},"required":["player_id","server_id","reason"],"title":"StoreMuteRequest"},"StorePlayerNoteRequest":{"type":"object","properties":{"content":{"type":"string","maxLength":2000},"is_flagged":{"type":"boolean"},"flag_type":{"type":["string","null"],"enum":["suspicious","vip","alt_account","toxic","trusted",null]}},"required":["content"],"title":"StorePlayerNoteRequest"},"StoreVipRequest":{"type":"object","properties":{"game_type":{"type":"string","enum":["rust","minecraft","cod4","cs2","ark","7dtd","bf2","bc2","vu","bf3","bf4","bfh","squad","dayz","wardogs"]},"name":{"type":"string","maxLength":64},"expires_at":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":1000},"spectate_allowed":{"type":"boolean"},"server_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":500},"platform":{"anyOf":[{"$ref":"#/components/schemas/Platform"},{"type":"null"}]},"platform_id":{"type":["string","null"],"maxLength":128}},"required":["game_type","name"],"title":"StoreVipRequest"},"StoreWatchlistRequest":{"type":"object","properties":{"events":{"type":"array","items":{"type":"string","enum":["join","leave","ban_kick","name_change","flagged_chat"]},"minItems":1,"uniqueItems":true},"note":{"type":["string","null"],"maxLength":2000},"duration_minutes":{"type":["integer","null"],"minimum":1,"maximum":525600}},"required":["events"],"title":"StoreWatchlistRequest"},"StoreWebhookRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"url":{"type":"string","format":"uri","maxLength":500},"events":{"type":"array","items":{"type":"string","enum":["server.online","server.offline","wardogs.event_feed_missing","bf2.host_memory_high","bf2.module_offline","bf2.server_offline","bf2.module_recovered","server.wipe","player.join","player.leave","player.ban","player.unban","player.ban_expired","ban.external_cleared","player.kick","player.ban_system","player.ban_admin","player.report","chat.message","chat.toxic","alert.triggered","anticheat.no_weapon_burst","anticheat.revive_after_self_grenade","anticheat.no_weapon_protection","ip.ban","moderation.mute","moderation.unmute","moderation.ping","moderation.afk","admin.broadcast"]},"minItems":1}},"required":["name","url","events"],"title":"StoreWebhookRequest"},"UpdateBanRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":1000},"expires_at":{"type":["string","null"],"format":"date-time"},"is_global":{"type":"boolean"},"scope":{"type":"string","enum":["server","selected","global"]},"server_id":{"type":"string","format":"uuid"},"server_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":500,"uniqueItems":true}},"required":["server_id"],"title":"UpdateBanRequest"},"UpdateVipRequest":{"type":"object","properties":{"expires_at":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":1000},"spectate_allowed":{"type":"boolean"}},"title":"UpdateVipRequest"},"UpdateWebhookRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"url":{"type":"string","format":"uri","maxLength":500},"events":{"type":"array","items":{"type":"string","enum":["server.online","server.offline","wardogs.event_feed_missing","bf2.host_memory_high","bf2.module_offline","bf2.server_offline","bf2.module_recovered","server.wipe","player.join","player.leave","player.ban","player.unban","player.ban_expired","ban.external_cleared","player.kick","player.ban_system","player.ban_admin","player.report","chat.message","chat.toxic","alert.triggered","anticheat.no_weapon_burst","anticheat.revive_after_self_grenade","anticheat.no_weapon_protection","ip.ban","moderation.mute","moderation.unmute","moderation.ping","moderation.afk","admin.broadcast"]},"minItems":1},"is_active":{"type":"boolean"}},"title":"UpdateWebhookRequest"},"VipMembershipResource":{"type":"object","properties":{"id":{"type":"string"},"display_name":{"type":"string"},"status":{"type":"string","enum":["active","expired","inactive"]},"expires_at":{"type":["string","null"]},"is_permanent":{"type":"boolean"},"is_currently_valid":{"type":"boolean"},"notes":{"type":["string","null"]},"spectate_allowed":{"type":"boolean"},"game_scope":{"type":"string","enum":["all","games"]},"games":{"type":"array","items":{"type":"string"}},"source":{"type":["string","null"],"enum":["staff_role","panel","in_game","discord","donation","purchase","challenge","objective","gamble","import","migrated","lockout_hold",null]},"identities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"game_type":{"type":"string"},"name":{"type":"string"},"platform":{"anyOf":[{"$ref":"#/components/schemas/Platform"},{"type":"null"}]},"platform_id":{"type":["string","null"]},"last_seen_at":{"type":["string","null"]}},"required":["id","game_type","name","platform","platform_id","last_seen_at"]}},"created_at":{"type":["string","null"]},"updated_at":{"type":["string","null"]}},"required":["id","display_name","status","expires_at","is_permanent","is_currently_valid","notes","spectate_allowed","game_scope","source","created_at","updated_at"],"title":"VipMembershipResource"},"VipStatus":{"type":"string","enum":["active","expired","inactive"],"title":"VipStatus"},"VoteRoundResource":{"type":"object","properties":{"id":{"type":"string"},"candidates":{"type":"array","items":{}},"tally":{"type":"array","items":{}},"winner_map_code":{"type":["string","null"]},"winner_mode_code":{"type":["string","null"]},"resolved_next_map_code":{"type":["string","null"]},"resolved_next_mode_code":{"type":["string","null"]},"total_votes":{"type":"integer"},"turnout_pct":{"type":["number","null"]},"outcome":{"type":"string"},"opened_at":{"type":"string"},"closed_at":{"type":"string"}},"required":["id","candidates","tally","winner_map_code","winner_mode_code","resolved_next_map_code","resolved_next_mode_code","total_votes","turnout_pct","outcome","opened_at","closed_at"],"title":"VoteRoundResource"},"WarnRequest":{"type":"object","properties":{"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string","maxLength":64},"reason":{"type":"string","maxLength":500},"server_id":{"type":"string"}},"required":["platform","platform_id","reason","server_id"],"title":"WarnRequest"},"WatchlistEntryResource":{"type":"object","properties":{"id":{"type":"string"},"player_id":{"type":"string"},"player":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{},"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string"},"is_online":{"type":"boolean"}},"required":["id","name","platform","platform_id","is_online"]},"events":{"type":"array","items":{}},"note":{"type":["string","null"]},"added_by":{"type":["string","null"]},"created_at":{"type":["string","null"]},"expires_at":{"type":["string","null"]}},"required":["id","player_id","player","events","note","added_by","created_at","expires_at"],"title":"WatchlistEntryResource"},"WebhookDeliveryResource":{"type":"object","properties":{"id":{"type":"string"},"endpoint_id":{"type":"string"},"event_type":{"type":"string"},"status":{"type":"string"},"attempt":{"type":"integer"},"response_code":{"type":["integer","null"]},"response_body":{"type":["string","null"]},"payload":{"type":"array","items":{}},"delivered_at":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["id","endpoint_id","event_type","status","attempt","response_code","response_body","payload","delivered_at","created_at"],"title":"WebhookDeliveryResource"},"WebhookEndpointResource":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{}},"is_active":{"type":"boolean"},"failure_count":{"type":"integer"},"disabled_at":{"type":["string","null"]},"last_triggered_at":{"type":["string","null"]},"deliveries_count":{"type":"integer"},"created_by":{"type":["string","null"]},"created_at":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"secret":{"type":["string","null"]}},"required":["id","name","url","events","is_active","failure_count","disabled_at","last_triggered_at","created_by","created_at","updated_at"],"title":"WebhookEndpointResource"},"WipeAllRequest":{"type":"object","properties":{"platform":{"$ref":"#/components/schemas/Platform"},"platform_id":{"type":"string","maxLength":64},"reason":{"type":"string","maxLength":500},"server_id":{"type":"string"}},"required":["platform","platform_id","reason","server_id"],"title":"WipeAllRequest"},"ErrorCode":{"type":"string","description":"Stable machine-readable error code. Each has an anchor in the API errors help article (`docs_url`).","enum":["ERR_RCON_TIMEOUT","ERR_RCON_AUTH_FAILED","ERR_RCON_CONNECTION_LOST","ERR_INVALID_PLATFORM","ERR_INVALID_GAME_TYPE","ERR_QUOTA_EXCEEDED","ERR_TENANT_NOT_FOUND","ERR_SERVER_NOT_FOUND","ERR_PLAYER_NOT_FOUND","ERR_BAN_ALREADY_EXISTS","ERR_PERMISSION_DENIED","ERR_RATE_LIMITED","ERR_WEBHOOK_DELIVERY_FAILED","ERR_PLUGIN_AUTH_FAILED","ERR_API_KEY_INVALID","ERR_SUBSCRIPTION_REQUIRED","ERR_UNAUTHENTICATED","ERR_PLAN_REQUIRED","ERR_TENANT_SUSPENDED","ERR_USER_REQUIRED","ERR_VALIDATION_FAILED","ERR_NOT_FOUND","ERR_METHOD_NOT_ALLOWED","ERR_BAD_REQUEST","ERR_INTERNAL","ERR_SERVICE_UNAVAILABLE"]},"ErrorEnvelope":{"type":"object","description":"Every 4xx/5xx from `/v1` uses this envelope. Refusals may add extra top-level keys (for example `reason`).","required":["error","message"],"properties":{"error":{"type":"object","required":["code","message","docs_url"],"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"},"suggestion":{"type":"string","description":"What to change before retrying."},"docs_url":{"type":"string","format":"uri"},"trace_id":{"type":"string","description":"Quote this when reporting a problem."}}},"message":{"type":"string","description":"Mirror of `error.message` for older clients."}}},"ValidationErrorEnvelope":{"allOf":[{"$ref":"#/components/schemas/ErrorEnvelope"},{"type":"object","required":["errors"],"properties":{"errors":{"type":"object","description":"Field name => list of messages.","additionalProperties":{"type":"array","items":{"type":"string"}}}}}]}},"responses":{"ValidationException":{"description":"Validation error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Errors overview."},"errors":{"type":"object","description":"A detailed description of each field that failed validation.","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["message","errors"]}}}},"ModelNotFoundException":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}},"AuthorizationException":{"description":"Authorization error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}},"BadRequest":{"description":"Malformed request (ERR_BAD_REQUEST).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Unauthenticated":{"description":"Missing, malformed, expired or revoked credential (ERR_UNAUTHENTICATED / ERR_API_KEY_INVALID).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Forbidden":{"description":"Authenticated but not allowed: the key lacks the ability, the person lacks the permission, the plan lacks the feature, or the community is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"NotFound":{"description":"No such resource in this community (ERR_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"MethodNotAllowed":{"description":"The path exists but not for this method (ERR_METHOD_NOT_ALLOWED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Conflict":{"description":"The request conflicts with the current state of the resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"ValidationFailed":{"description":"Validation failed (ERR_VALIDATION_FAILED). `errors` maps each field to its messages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorEnvelope"}}}},"TooManyRequests":{"description":"Rate limit exceeded (ERR_RATE_LIMITED). Wait `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}}},"ServerError":{"description":"Unexpected server error (ERR_INTERNAL). Quote `error.trace_id` when reporting it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"ServiceUnavailable":{"description":"A dependency is unavailable (ERR_SERVICE_UNAVAILABLE). Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"mb_ + 64 hex characters","description":"An API key created under Settings \u2192 API Keys, sent as `Authorization: Bearer mb_\u2026`. Each key carries abilities; every operation lists the one it needs in `x-required-ability`."}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this credential.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Tier":{"description":"The rate-limit tier actually enforced (`standard`, `elevated`, \u2026 \u2014 or `session` / `mobile` for a signed-in person).","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying (429 only).","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix timestamp at which the limit resets (429 only).","schema":{"type":"integer"}}}}}