List¶
GET /api/v1/channel/quick_list
Overview¶
Get simplified channel information for the current workspace and the subscription status of the current caller identity.
Prerequisites and Usage Steps¶
Call with an API Key that has permission for this API in the target workspace. No query parameters are required. Results are directly in the content array and are not paginated. The default channel comes first; the rest are sorted by the current identity's pin time in descending order, then by creation time in descending order.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with this operation permission from the API Key management of the target workspace. |
Additional Parameter Notes¶
The uuid returned in the list can be used directly with the modify, delete, and subscribe APIs in this module.
Request Example¶
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | array<object> |
Channel list; an empty array if there are no results. |
| content[].id | integer | Database record number. Use uuid to operate on channels. |
| content[].uuid | string | Channel UUID, used for modification, deletion, or subscription. |
| content[].workspaceUUID | string | Workspace to which the channel belongs. |
| content[].name | string | Channel name. default indicates the default channel. |
| content[].description | string | Channel description. |
| content[].notifyTarget | array<string> |
UUIDs of notification targets directly configured for the channel. |
| content[].notifyTarget[] | string | UUID of a single notification target. |
| content[].notifyUpgradeCfg | object | Escalation notification configuration; an empty object if not configured. |
| content[].notifyUpgradeCfg.triggerTime | integer | Waiting duration before the escalation notification is triggered, in seconds. |
| content[].notifyUpgradeCfg.notifyTarget | array<string> |
List of UUIDs of escalation notification targets. |
| content[].notifyUpgradeCfg.notifyTarget[] | string | UUID of an escalation notification target. |
| content[].status | integer | Record status; 0 indicates normal. |
| content[].creator | string | Creator identity. |
| content[].updator | string | Identity that last updated the record; may be an empty string if not updated. |
| content[].createAt | integer | Creation time, Unix seconds. |
| content[].updateAt | integer | Update time, Unix seconds; -1 if not updated. |
| content[].deleteAt | integer | Deletion time, Unix seconds; -1 if not deleted. |
| content[].pinnedAt | integer | Pin time of the current caller identity, Unix seconds; -1 if not pinned. |
| content[].subscribeType | string | Subscription type of the current identity: responsible (owner), participate (participant), attention (follower); empty string if not subscribed or if unsubscribed. |
| content[].declaration | object or null | Public declaration of the workspace. |
{
"code": 200,
"content": [
{
"id": 42,
"uuid": "chan_example",
"workspaceUUID": "wksp_example",
"name": "生产异常",
"description": "生产异常协作频道",
"notifyTarget": [
"notify_example"
],
"notifyUpgradeCfg": {
"triggerTime": 300,
"notifyTarget": [
"notify_example"
]
},
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"pinnedAt": -1,
"subscribeType": "",
"declaration": {}
}
],
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
When there are no channels, a successful response returns an empty array. This API has no additional business Query declarations; for authentication and rate limiting errors, see Common Errors.