Get Started

API Documentation

Manage servers, players, bans, and infractions programmatically via the Metabans REST API.

Base URLhttps://api.metabans.com/v1

Authentication

Authenticate with the API using an API Key — pass your key via the Authorization header:

Authorization: Bearer mb_your_api_key_here

API keys are created in your panel at /settings/api-keys. Each key has scoped abilities (e.g. servers:read, bans:write).

Public endpoints (under /api/public/*) require no authentication but are rate limited to 60 requests/minute.

Every /v1 endpoint is described by the OpenAPI document at https://api.metabans.com/v1/openapi.json — import it into Postman, Insomnia or a client generator.

Plugin endpoints (under /plugin/*) use a separate X-Server-Token header with per-server plugin tokens (mb_srv_...), generated in your server settings.

Public

GET/v1/public/bansNo key needed
Public ban list

Active bans that communities have chosen to publish, newest first.

Authentication: none (public, cached).

Parameters
searchquery · string | null
Free-text search.
game_typequery · string | null
categoryquery · string | null
reason_categoryquery · string | null
reasonquery · string | null
communityquery · string | null
statusquery · string | null
activeliftedexpiredall
pagequery · integer
Page number (offset pagination).
per_pagequery · integer
Results per page (max 100).
cURL
curl "https://api.metabans.com/v1/public/bans" \
  -H "Accept: application/json"
GET/v1/public/serversNo key needed
Public server list

Servers listed in the public directory with their latest status.

Authentication: none (public, cached).

Parameters
game_typequery · string
rustminecraftcod4cs2ark7dtdbf2bc2vubf3bf4bfhsquaddayzwardogs
statusquery · string
onlineofflineconnecting
per_pagequery · integer
Results per page (max 100).
cURL
curl "https://api.metabans.com/v1/public/servers" \
  -H "Accept: application/json"
GET/v1/public/servers/{id}No key needed
Public server

One public server with its latest status, location and wipe schedule.

Authentication: none (public, cached).

Parameters
idpath · stringRequired
cURL
curl "https://api.metabans.com/v1/public/servers/{id}" \
  -H "Accept: application/json"
GET/v1/public/healthNo key needed
Fleet health

Counts of public servers by state (online, offline, stale) — they sum to total_servers.

Authentication: none (public, cached).

cURL
curl "https://api.metabans.com/v1/public/health" \
  -H "Accept: application/json"
GET/v1/public/communitiesNo key needed
Search communities

Find a community by name or slug.

Authentication: none (public, cached).

Parameters
qquery · stringRequired
cURL
curl "https://api.metabans.com/v1/public/communities" \
  -H "Accept: application/json"
GET/v1/public/communities/{slug}No key needed
Community

One community by slug.

Authentication: none (public, cached).

Parameters
slugpath · stringRequired
cURL
curl "https://api.metabans.com/v1/public/communities/{slug}" \
  -H "Accept: application/json"
Join Discord