Query channel instance details¶
Read non-sensitive configuration, capabilities, and recent test information for a channel instance.
GET https://moi.matrixorigin.cn/newmoi/workspaces/{workspace_id}/channels/{provider}/instances/{instance_id}
Before you call¶
First query the channel instance list to obtain the instance ID. Prepare a personal access token with access to the target workspace, target workspace ID, channel provider ID, and instance ID.
The example below uses:
$AI_STUDIO_API_KEY: The actual personal access token, passed through theX-API-KeyHeader.$WORKSPACE_ID: Target workspace ID, passed through theX-Workspace-IDHeader and also asworkspace_idin the path.$PROVIDER: Channel Provider ID, asproviderin the path.$INSTANCE_ID: The channel instance ID to query asinstance_idin the path.
Request example¶
curl "https://moi.matrixorigin.cn/newmoi/workspaces/$WORKSPACE_ID/channels/$PROVIDER/instances/$INSTANCE_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters¶
Parameters |
Type |
Is it required |
Description |
|---|---|---|---|
|
string |
Yes |
Workspace ID. |
|
string |
Yes |
Channel Provider ID. |
|
string |
Yes |
Channel instance ID. |
Successful response¶
Returns 200 on success. The interface does not return the clear text content of secrets.
{
"code": 0,
"data": {
"id": "inst_01",
"workspace_id": "ws_01",
"provider": "wecom",
"channel_type": "wecom_mail",
"name": "告警通道",
"status": "active",
"credential_ref": "cred_01",
"config": {
"endpoint": "https://example.com/hook"
},
"last_test_status": "passed",
"last_tested_at": "2026-08-18T01:00:00Z"
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
string |
Instance ID and workspace. |
|
string |
Instance ID and workspace. |
|
string |
Provider, channel type and status. |
|
string |
Provider, channel type and status. |
|
string |
Provider, channel type and status. |
|
string |
Name, description, and credential reference. |
|
string |
Name, description, and credential reference. |
|
string |
Name, description, and credential reference. |
|
object |
Non-sensitive configuration and tags. |
|
object |
Non-sensitive configuration and tags. |
|
string |
Callback path, capabilities, and associated tools; returned when available. |
|
string[] |
Callback path, capabilities, and associated tools; returned when available. |
|
string[] |
Callback path, capabilities, and associated tools; returned when available. |
|
string |
Recent test status, time and error; may not be returned if it has not been tested yet. |
|
string |
Recent test status, time and error; may not be returned if it has not been tested yet. |
|
string |
Recent test status, time and error; may not be returned if it has not been tested yet. |
[] after a type denotes an array. [] in a field path denotes each item in an array.
Error response¶
{
"code": 3,
"message": "channel instance not found"
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
Invalid provider or instance ID. |
Check path parameters. |
|
|
Lack of valid identity credentials. |
Check API Key. |
|
|
The current identity does not have read permission for this instance. |
Check workspace authorization. |
|
|
The instance does not exist or does not belong to the Provider in the path. |
Check the Provider and Instance ID. |
|
|
Channel instance services or authorization dependencies are temporarily unavailable. |
Try again later. |
Follow-up operations¶
You can Update channel instance or Test the created channel instance.