> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取 Channel

> 根据 ID 获取 Channel。

`GET /api/v1/forward/channels/{channel_id}`

返回 Channel 绑定关系和状态详情。

## 请求头

| Header        | 是否必填 | 说明             |
| ------------- | ---- | -------------- |
| Authorization | 是    | `Bearer <PAT>` |

## 路径参数

| 参数          | 类型     | 是否必填 | 说明                                |
| ----------- | ------ | ---- | --------------------------------- |
| channel\_id | string | 是    | Channel ID，与 Channel 对象的 `id` 相同。 |

## 示例请求

```bash theme={null}
curl -s -X GET 'https://api.qoder.com/api/v1/forward/channels/channel_019eabc123' \
  -H "Authorization: Bearer $QODER_PAT"
```

## 示例响应

**HTTP 200 OK**

```json theme={null}
{
  "id": "channel_019eabc123",
  "type": "channel",
  "identity_id": "idn_019eabc123",
  "template_id": "tmpl_support",
  "channel_type": "feishu",
  "name": "Support Feishu channel",
  "enabled": true,
  "binding_status": "bound",
  "channel_config": {
    "response_options": {
      "include_tool_calls": false,
      "include_thinking": false
    }
  },
  "created_at": "2026-06-18T10:00:00Z",
  "updated_at": "2026-06-18T10:00:00Z"
}
```

## 响应字段

| 字段  | 类型     | 说明          |
| --- | ------ | ----------- |
| 返回值 | object | Channel 对象。 |

## 错误

| HTTP | Type                   | Code                      | 触发条件                  |
| ---- | ---------------------- | ------------------------- | --------------------- |
| 404  | `not_found_error`      | `channel_not_found`       | Channel 不存在或当前调用方不可见。 |
| 401  | `authentication_error` | `authentication_required` | PAT 无效或已过期。           |

## 注意事项

* `binding_status` 由系统维护，不能通过 Update Channel 直接修改。
* 只有 `enabled=true` 且 `binding_status=bound` 时才能处理上行消息。

## 相关

<CardGroup cols={2}>
  <Card title="更新 Channel" icon="pencil" href="/cloud-agents/api/forward/channels/update" />

  <Card title="创建 Channel QR Session" icon="qrcode" href="/cloud-agents/api/forward/channels/create-qr-session" />
</CardGroup>
