Query the details of the agent task template¶
Query the complete configuration of an agent task template.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-task-templates/{template_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. Prepare personal access token, workspace ID and template ID.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-task-templates/$TEMPLATE_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Target workspace ID. |
|
string |
Yes |
Template ID to be queried. |
Successful response¶
{
"code": 0,
"data": {
"id": "template_01",
"workspace_id": "workspace_example",
"agent_id": "agent_01",
"name": "摘要任务",
"message_template": {
"role": "user",
"template": "请总结输入内容"
},
"idempotency_policy": {
"mode": "workflow_case"
},
"status": "draft",
"version": 1,
"created_at": "2026-10-14T00:00:00Z",
"updated_at": "2026-10-14T00:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
response data. |
|
string |
Object ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
The associated agent ID. |
|
string |
Name. |
|
string |
Description. Can be omitted if not set. |
|
object |
Message template. |
|
object |
JSON Schema of the input parameters. Can be omitted if not set. |
|
array of object |
Default context resource reference. Can be omitted if not set. |
|
string |
Object ID. |
|
string |
Run policy reference. Can be omitted if not set. |
|
object |
Idempotent strategy. |
|
string |
Strategy or scope pattern. Values: |
|
string |
Custom idempotent key template. Can be omitted if not set. |
|
integer |
Idempotent window, in seconds. Can be omitted if not set. |
|
object |
Output convention. Can be omitted if not set. |
|
string |
Current status. Values: |
|
integer |
Current version number. |
|
object |
Tag key-value pairs. Can be omitted if not set. |
|
object |
Extended annotations. Can be omitted if not set. |
|
string |
Creator ID. Can be omitted if not set. |
|
string |
Last updated by identifier. Can be omitted if not set. |
|
string |
Creation time, in RFC 3339 format. |
|
string |
Last updated in RFC 3339 format. |
|
string |
Message role. |
|
string |
Message template text. Can be omitted when using parts. |
|
array or null |
Structured messages are composed of items, and the content is retained by the template. |
|
object or null |
Template variables. |
|
string |
Context resource type. |
|
string |
Resource address. Can be omitted when using id. |
|
string |
Resource version. Omitted if not set. |
|
object or null |
Resource allocation. Omitted if not set. |
Error response¶
{
"code": 3,
"message": "agent task template not found"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
Common reasons: The template does not exist or is not readable by the current identity. Recommended Action: Check the template ID and workspace. |