Query channel instance list¶
List channel instances in the current workspace by Provider.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/channels/{provider}/instances
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare the personal access token, target workspace ID, and channel provider ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/channels/$PROVIDER/instances?limit=20&offset=0" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workspace ID. |
|
string |
Yes |
Channel provider ID. |
Query parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Filter by instance status. |
|
integer |
No |
Return the quantity. Default 50, maximum 200. |
|
integer |
No |
Returns the starting position of the list. Negative numbers are handled as 0. |
status matches the original value exactly. When the value is unknown, has different case, or contains extra whitespace, HTTP 200 and an empty list are returned, and no enumeration error is returned.
limit defaults to 50, and the maximum value is 200. When offset is a negative number, it is processed as 0.
Successful response¶
{
"code": 0,
"data": {
"items": [
{
"id": "inst_01",
"workspace_id": "ws_01",
"provider": "wecom",
"channel_type": "wecom_mail",
"name": "告警通道",
"status": "active",
"credential_ref": "cred_01",
"created_at": "2026-10-14T00:00:00Z",
"updated_at": "2026-10-14T00:00:00Z",
"version": 1,
"config": {
"provider": "wecom",
"channel_type": "wecom_mail",
"email": "alerts@example.com",
"timeout_seconds": "30"
}
}
],
"total": 1,
"limit": 20,
"offset": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
response data. |
|
array of object |
The channel instance of the current page. |
|
string |
Object ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
Provider ID. Values: |
|
string |
Channel type. Values: |
|
string |
Name. |
|
string |
Description. Can be omitted if not set. |
|
string |
Current status. Values: |
|
string |
Credential reference, not clear text key. |
|
string |
Callback request path. Can be omitted if not set. |
|
array of string |
List of available capabilities. Can be omitted if not set. |
|
array of string |
List of associated tool IDs. Can be omitted if not set. |
|
object |
Non-sensitive configuration, fields vary with connection or channel type. Can be omitted if not set. |
|
string |
Recent test information. May not return if not tested yet. Can be omitted if not set. Value: |
|
string |
Recent test information. May not return if not tested yet. Can be omitted if not set. |
|
string |
Recent test information. May not return if not tested yet. Can be omitted if not set. |
|
string |
Error codes from recent tests. Can be omitted if not set. |
|
object |
Tag key-value pairs. Can be omitted if not set. |
|
string |
Creation time, in RFC 3339 format. |
|
string |
Last updated in RFC 3339 format. |
|
integer |
Current version number. |
|
integer |
The total number of matching records. |
|
integer |
The maximum number of records requested for this page. |
|
integer |
The zero-based offset of the first record on this page. |
Error response¶
{
"code": 2,
"message": "<错误信息>"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |