Create agent workflow binding

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region.

Bind an agent task template to a workflow node. Successful creation only saves the binding and does not create plans or execution tasks.

HTTP
POST $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-workflow-bindings

Request body

Replace $WORKSPACE_ID, $CLOUDSIGMA_API_KEY, $WORKFLOW_ID, $TEMPLATE_ID in the example with actual values.

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-workflow-bindings" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID" -H 'Content-Type: application/json' -d '{
  "workflow_id": "'$WORKFLOW_ID'",
  "node_id": "summary",
  "agent_task_template_id": "'$TEMPLATE_ID'"
}'

Parameter

Type

Required

Description

workspace_id

string

Yes

The workspace ID to which it belongs.

Request body

Field

Type

Required

Description

id

string

No

logo.

workflow_id

string

Yes

workflow ID.

workflow_version_id

string

No

workflow version ID.

node_id

string

Yes

workflow node ID.

agent_task_template_id

string

Yes

Agent task template ID.

input_mapping

object or null

No

Enter the mapping.

output_mapping

object or null

No

Output mapping.

failure_mapping

object or null

No

Failure handling mapping.

status

string

No

Binding status.

labels

object or null

No

Tag key-value pairs.

annotations

object or null

No

Annotation key-value pairs.

Custom id can be provided, which is generated by the server when omitted or empty. status defaults to active.

The referenced task template must exist in the current workspace. Saving a binding does not mean that other references have been verified and available.

Omit or fill in the mapping and label of null to use an empty configuration.

Successful response

JSON
{
  "code": 0,
  "data": {
    "id": "binding_01",
    "workspace_id": "",
    "workflow_id": "wf_01",
    "node_id": "root.prepare",
    "agent_task_template_id": "template_01",
    "status": "active",
    "version": 0,
    "created_at": "2026-08-21T07:00:00Z",
    "updated_at": "2026-08-21T07:00:00Z"
  }
}

Field

Type

Description

data.id

string

Create a new binding ID.

data.workspace_id

string

The workspace ID to which it belongs.

data.workflow_id

string

workflow ID.

data.workflow_version_id

string

workflow version ID.

data.node_id

string

Full node path.

data.agent_task_template_id

string

Association template ID.

data.input_mapping

object

Enter the mapping.

data.output_mapping

object

Output mapping.

data.failure_mapping

object

Failed mapping.

data.status

string

status. Values: active, disabled, archived.

data.version

integer

version.

data.labels

object

Tag mapping.

data.annotations

object

Annotation mapping.

data.created_by

string

Creator.

data.updated_by

string

Last updated by.

data.created_at

string

Creation time. RFC 3339 time.

data.updated_at

string

Update time. RFC 3339 time.

Error response

When the same workflow version, node and binding condition hit the unique key, 409 is returned. Reusing custom IDs may also create conflicts.

JSON
{
  "code": 4,
  "message": "agent workflow binding already exists"
}

Common HTTP errors

HTTP status code

error code

Description

400

2

Common reasons: The bound field is invalid. Recommended Action: Check workflow, node and template identification.

409

4

Common reasons: The same workflow node is already bound. Recommended Action: Query or update existing bindings.

Last updated on