Query channel instance list

List channel instances in the current workspace by Provider.

HTTP
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

Shell
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

workspace_id

string

Yes

workspace ID.

provider

string

Yes

Channel provider ID.

Query parameters

Field

Type

Required

Description

status

string

No

Filter by instance status.

limit

integer

No

Return the quantity. Default 50, maximum 200.

offset

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

JSON
{
  "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

code

integer

0 when the request is processed successfully.

data

object

response data.

data.items

array of object

The channel instance of the current page.

data.items[].id

string

Object ID.

data.items[].workspace_id

string

The workspace ID to which it belongs.

data.items[].provider

string

Provider ID. Values: wecom, github, feishu, slack, grafana, kubernetes, qq_mail, codex, bocha, tavily, brave.

data.items[].channel_type

string

Channel type. Values: wecom_app, wecom_group_robot, wecom_mail, github_app, feishu_app, slack_app, grafana, kubernetes, qq_mail, codex_api, bocha_web_search, tavily_web_search, brave_web_search.

data.items[].name

string

Name.

data.items[].description

string

Description. Can be omitted if not set.

data.items[].status

string

Current status. Values: draft, active, disabled, archived.

data.items[].credential_ref

string

Credential reference, not clear text key.

data.items[].callback_path

string

Callback request path. Can be omitted if not set.

data.items[].capabilities

array of string

List of available capabilities. Can be omitted if not set.

data.items[].tool_ids

array of string

List of associated tool IDs. Can be omitted if not set.

data.items[].config

object

Non-sensitive configuration, fields vary with connection or channel type. Can be omitted if not set.

data.items[].last_test_status

string

Recent test information. May not return if not tested yet. Can be omitted if not set. Value: succeeded, failed.

data.items[].last_tested_at

string

Recent test information. May not return if not tested yet. Can be omitted if not set.

data.items[].last_test_error

string

Recent test information. May not return if not tested yet. Can be omitted if not set.

data.items[].last_test_error_code

string

Error codes from recent tests. Can be omitted if not set.

data.items[].labels

object

Tag key-value pairs. Can be omitted if not set.

data.items[].created_at

string

Creation time, in RFC 3339 format.

data.items[].updated_at

string

Last updated in RFC 3339 format.

data.items[].version

integer

Current version number.

data.total

integer

The total number of matching records.

data.limit

integer

The maximum number of records requested for this page.

data.offset

integer

The zero-based offset of the first record on this page.

Error response

JSON
{
  "code": 2,
  "message": "<错误信息>"
}

Field

Type

Description

code

integer

error code.

message

string

Error message for the caller.

Last updated on