Get one workflow template with its steps.
GET/api/v1/workflow-templates/{workflow_template_id}workflows:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
The current version's steps (node_id is the stable node ID) and settings. The builder canvas is added with include=canvas. Credentials are replaced by a redaction marker unless the caller has View Workflow Node Secrets: the Password, Token, TokenSecret and auth_request_config inputs, the value of every header in a Headers input (the names stay), and the same keys in the canvas. Editing credentials requires Edit Workflow Node Secrets. Send the marker back in a credential input (or a canvas credential key) to keep the credential the step stores when you save the template again with create_workflow_template or compile_workflow_template.
| スコープ | workflows:read |
| 非同期 | いいえ |
| MCP ツール | get_workflow_template |
| Portal の権限 | view_workflow_templates, view_workflow_node_configs, view_workflow_template_io |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
workflow_template_id | path | string | 必須 | |
include | query | string または null | 任意 | canvas adds the builder canvas to the answer. |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json WorkflowTemplateDetail |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
| コード | ステータス |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
not_found | 404 |
method_not_allowed | 405 |
not_acceptable | 406 |
wrong_region | 421 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
スキーマ
WorkflowTemplateDetail
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
canvas | object または null | 必須 | The builder canvas (format workflow_canvas, version 1); null unless include=canvas. |
current_workflow_template_version_id | string | 必須 | |
entity_sub_type | string | 必須 | |
entity_type | string | 必須 | |
is_active | boolean | 必須 | |
name | string | 必須 | |
project_id | string または null | 必須 | |
redacted_count | integer | 必須 | Credential values replaced by the redaction marker in the steps and the canvas. Reading credentials requires View Workflow Node Secrets; changing them requires Edit Workflow Node Secrets. Sent back as the marker in a save, a hidden credential keeps the credential the step stores. ≥ -2147483648; ≤ 2147483647 |
settings | WorkflowTemplateSettings | 必須 | The template's settings, as its Start step holds them. |
steps | WorkflowTemplateStep の配列 | 必須 | |
workflow_template_group_id | string または null | 必須 | |
workflow_template_id | string | 必須 | |
workflow_template_version_id | string | 必須 | The version the steps, settings and canvas belong to: the current version for get_workflow_template, any version for get_workflow_template_version. |
WorkflowTemplateSettings
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
late_action_request_emails | boolean | 必須 | |
late_action_request_send_frequency_seconds | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
main_item_requires_actions | boolean | 必須 | |
notify_owner_about_action_response | boolean | 必須 | |
notify_owner_about_completion | boolean | 必須 | |
notify_owner_about_late_action_requests | boolean | 必須 |
WorkflowTemplateStep
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
inputs | WorkflowTemplateStepSetting の配列 | 必須 | |
label | string または null | 必須 | |
node_id | string | 必須 | |
node_type | string | 必須 | The step type, as list_node_types names it (for example StartNode). |
original_node_id | string または null | 必須 | A source step in the visible parent lineage whose unchanged credentials may be retained, independent of step identity. |
outputs | WorkflowTemplateStepOutput の配列 | 必須 | |
previous_node_id | string または null | 必須 | The step's node_id in the version it was copied from, so it keeps its identity; null for a new step. |
WorkflowTemplateStepOutput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
response_node_id | string または null | 必須 | |
type | string | 必須 | |
value | string または null | 必須 |
WorkflowTemplateStepSetting
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
redacted | boolean | 必須 | true when the value is a redacted credential the read replaced. Send it back as the marker to keep the credential the step it continues stores (previous_node_id); a marker on a step with no stored credential is refused. |
type | string | 必須 | |
value | string または null | 必須 |