---
title: "Add a single channel"
method: POST
path: "/api/channel/"
tags: ["channel"]
---

# Add a single channel

`POST /api/channel/`

Adds a new channel to the system

## Request body

- ControllerAddChannelRequest
  - `base_url` string
  - `configs` ModelChannelConfigs
  - `enabled_auto_balance_check` boolean
  - `enabled_no_permission_ban` boolean
  - `key` string
  - `max_error_rate` number
  - `model_mapping` object
  - `models` string[]
  - `name` string
  - `priority` integer
  - `proxy_url` string
  - `sets` string[]
  - `skip_tls_verify` boolean
  - `status` integer
  - `type` 1 | 3 | 4 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55
  - `warn_error_rate` number

## Response `200`

OK

- MiddlewareAPIResponse
  - `data` unknown
  - `message` string
  - `success` boolean

---

[API](https://skmtc.net/labring/apis/ai-proxy-swagger-api.md) · [All operations](https://skmtc.net/labring/apis/ai-proxy-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labring/ai-proxy-swagger-api/revisions/696faf563b42/schema)
