---
title: "Approves a new CS2 server."
method: POST
path: "/servers"
tags: ["CS2 Servers"]
---

# Approves a new CS2 server.

`POST /servers`

This will generate an access key which allows the server to submit records, jumpstats, etc.

## Request body

- NewServer
  - `name` string, required — The server's name. This has to be a unique value and will be displayed in UIs.
  - `host` string, hostname, required — an IPv4/IPv6 address or domain
  - `port` integer, required — The server's connection port.
  - `owner_id` string, u-int64, required — a 64-bit SteamID

## Response `201`

- CreatedServer
  - `server_id` integer, required
  - `access_key` string, ulid, required — an opaque access key

## Other responses

- `401`
- `409` — The server's name or host+port combination is already in use.
- `422` — invalid request body

---

[API](https://skmtc.dev/cs2kz/apis/cs2kz-api.md) · [All operations](https://skmtc.dev/cs2kz/apis/cs2kz-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cs2kz/cs2kz-api/revisions/73ecd7bbda3b/schema)
