View workflow template details

Read the complete definition of a workflow template. Can read built-in templates for the current language, as well as custom templates created in the current workspace.

HTTP
GET $CLOUDSIGMA_API_BASE/workflow-templates/{id}

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

First query workflow template list to obtain the template ID.

Request

Shell
curl "$CLOUDSIGMA_API_BASE/workflow-templates/$TEMPLATE_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Request parameters

Successful response

Returns 200 on success. data is a complete template object.

The response fields are as follows.

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "id": 12,
    "workspace_id": "ws-001",
    "created_by": "user-001",
    "updated_by": "user-001",
    "template_key": "",
    "name": "daily-import-template",
    "description": "每日导入工作流模板",
    "language": "zh-CN",
    "dsl_yaml": "workflow: {}",
    "runtime_fields": "{\"fields\":[]}",
    "is_builtin": false,
    "created_at": "2026-08-18T10:00:00Z",
    "updated_at": "2026-08-18T10:00:00Z"
  }
}
FieldTypeDescription
codestringOK when successful.
msgstringOK when successful.
data.idintegerTemplate ID.
data.workspace_idstringThe ID of the workspace to which it belongs; the built-in template is an empty string.
data.created_bystringCreator ID.
data.updated_bystringLast updater ID.
data.template_keystringBuilt-in template identifier; custom template is an empty string.
data.namestringTemplate name.
data.descriptionstringTemplate description.
data.languagestringTemplate language.
data.dsl_yamlstringWorkflow DSL YAML.
data.runtime_fieldsstringRuntime field JSON text; empty string when not configured.
data.is_builtinbooleanWhether it is a built-in template.
data.created_atstringCreation time; may be omitted if not provided by the server.
data.updated_atstringLast updated time; may be omitted if not provided by the server.

Error response

JSON
{
  "code": "ErrNotFound",
  "msg": "模板不存在",
  "data": null
}
FieldTypeDescription
codestringError code.
msgstringReadable error message.
datanull`null` in an error response.

Follow-up operations

When the definition needs to be modified, Update workflow template; when it is no longer used, Delete workflow template.

Last updated on