---
title: "Register a server; the response carries the agent token (shown once)"
method: POST
path: "/api/v1/servers"
tags: ["resources"]
---

# Register a server; the response carries the agent token (shown once)

`POST /api/v1/servers`

## Request

- Base URL: `https://puzaricloud.in` (the document declares no server; this is the origin it was published from)
- URL: `https://puzaricloud.in/api/v1/servers`
- Auth: none declared

## Request body

- ServerIn
  - `name` string, required
  - `tags` string[]
  - `rules` object, nullable: alert rule overrides (same keys as the Alert rules tab); omitted keys keep defaults
  - `channel_ids` integer[]
  - `team_id` integer, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/puzaricloud/apis/vigil-api.md) · [All operations](https://skmtc.dev/puzaricloud/apis/vigil-api/llms.txt) · [OpenAPI document](https://skmtc.dev/puzaricloud/apis/vigil-api/revisions/1cb93f81f1a7?raw)
