---
title: "Add a channel"
method: POST
path: "/v1/channels"
tags: ["Channel"]
---

# Add a channel

`POST /v1/channels`

## Request body

- ChannelRequestPost
  - `name` string
  - `type` object
    - `id` string
  - `botToken` string
  - `chatId` number
  - `commands` boolean
  - `alerts` boolean
  - `info` boolean
  - `warning` boolean
  - `critical` boolean
  - `error` boolean

## Response `200`

OK

- object
  - `status` number
  - `result` string

## Other responses

- `400` — Bad request for Missing required fields.
- `409` — Warning: Register Duplicate.
- `535` — Error: Mongo client not initialised.
- `536` — Error: Could not save data to Mongo.

---

[API](https://skmtc.net/simplystaking/apis/panic-api.md) · [All operations](https://skmtc.net/simplystaking/apis/panic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/simplystaking/panic-api/revisions/4400907a393c/schema)
