# 频道创建API

## **Request**

* Method : POST
* URI : /channel

```
POST
url : https://dashboard-api.gamechat.naverncp.com/v1/api/project/{projectId}/channel
Header : 'x-api-key: {API Key}'
Header : 'content-type: application/json'
data: '{
    "name":"#All"
}'
```

<table><thead><tr><th width="141">Header</th><th width="115">Type</th><th width="122">Required</th><th>Description</th></tr></thead><tbody><tr><td>x-api-key</td><td>String</td><td>O</td><td>仪表盘 > 设置 > 项目设置 > API Key</td></tr></tbody></table>

<table><thead><tr><th width="143">Attribute</th><th width="113">Type</th><th width="125">Required</th><th>Description</th></tr></thead><tbody><tr><td>projectId</td><td>String</td><td>O</td><td>项目ID（仪表盘 > 设置 > 项目设置 > 项目ID）</td></tr><tr><td>name</td><td>String</td><td>O</td><td>频道名称</td></tr><tr><td>translation</td><td>Boolean</td><td>X</td><td>可否翻译</td></tr><tr><td>uniqueId</td><td>String</td><td>X</td><td>可随机指定的唯一ID</td></tr></tbody></table>

## **Response**

```javascript
{
    "status": 1,
    "result": "1a51af0d-f464-4440-8ad6-ce69e0bdaba8"
}
```

<table><thead><tr><th width="153">Attribute</th><th width="134">Type</th><th>Description</th></tr></thead><tbody><tr><td>status</td><td>Int</td><td>结果值(1：成功，失败请参考错误代码)</td></tr><tr><td>result</td><td>String</td><td>创建的频道ID</td></tr></tbody></table>

## **Error code**

<table><thead><tr><th width="191">Code</th><th>Description</th></tr></thead><tbody><tr><td>-100</td><td>必须参数不存在的情况</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gamechat.me/basics/game-chat-v2/game-chat-zhong-wen/open-api/pin-dao-chuang-jian-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
