---
title: "Create User Channel"
method: POST
path: "/api/channels"
tags: ["Channels"]
---

# Create User Channel

`POST /api/channels`

Create a new channel configuration.

## Request body

- UserChannelCreate
  - `channel_type` string, required — e.g. telegram, feishu
  - `channel_name` string, nullable — User-friendly name
  - `config` object, required — Channel specific configuration
  - `is_active` boolean

## Response `200`

Successful Response

- UserChannelResponse
  - `channel_type` string, required — e.g. telegram, feishu
  - `channel_name` string, nullable — User-friendly name
  - `config` object, required — Channel specific configuration
  - `is_active` boolean
  - `id` integer, required
  - `user_id` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
