Query the agent workflow binding details¶
Query the binding configuration of a workflow node and an agent task template.
GET https://moi.matrixorigin.cn/newmoi/workspaces/{workspace_id}/agent-workflow-bindings/{binding_id}
Before you call¶
The example below uses:
$AI_STUDIO_API_KEY: Actual personal access token.$WORKSPACE_ID: Target workspace ID.$BINDING_ID: Binding ID obtained from binding list.
Request example¶
curl "https://moi.matrixorigin.cn/newmoi/workspaces/$WORKSPACE_ID/agent-workflow-bindings/$BINDING_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 |
The target workspace ID. |
|
string |
Yes |
The binding ID to query. |
Successful response¶
Returns 200 and binding configuration on success.
{"code": 0, "data": {"id": "binding_01", "workflow_id": "wf_01", "node_id": "node_01", "agent_task_template_id": "template_01", "input_mapping": {}}}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
string |
Binding ID. |
|
string |
Workflow ID. |
|
string |
Node ID. |
|
string |
Association template ID. |
|
object |
Mapping of workflow input to template input. |
Error response¶
{"code": 5, "message": "agent workflow binding not found"}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
The binding does not exist. |
Check binding ID and workspace. |