Query channel instance details¶
Read non-sensitive configuration, capabilities, and recent test information for a channel instance.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/channels/{provider}/instances/{instance_id}
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. First query the channel instance list to obtain the instance ID. Prepare the personal access token, target workspace ID, channel provider ID, and instance ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/channels/$PROVIDER/instances/$INSTANCE_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
workspace ID. |
|
string |
Yes |
Channel provider ID. |
|
string |
Yes |
Channel instance ID. |
Successful response¶
{
"code": 0,
"data": {
"id": "inst_01",
"workspace_id": "ws_01",
"provider": "wecom",
"channel_type": "wecom_mail",
"name": "告警通道",
"status": "active",
"credential_ref": "cred_01",
"config": {
"provider": "wecom",
"channel_type": "wecom_mail",
"email": "alerts@example.com",
"timeout_seconds": "30"
},
"last_test_status": "succeeded",
"last_tested_at": "2026-08-18T01:00:00Z",
"created_at": "2026-10-14T00:00:00Z",
"updated_at": "2026-10-14T00:00:00Z",
"version": 1
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
response data. |
|
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 |
A reference to a saved credential, not a 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 |
The most recent test status, either succeeded or failed. Can be omitted if not set. Value: |
|
string |
The most recent test time, in RFC 3339 format. Can be omitted if not set. |
|
string |
Error description for recent tests. 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. |
Error response¶
{
"code": 3,
"message": "channel instance not found"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |