Skip to main content

Get Dynamic Workflow

Get the latest published version of a dynamic workflow. Archived resources support read-only queries.

Prerequisites

Complete the endpoint and authentication configuration. See API Overview and Authentication.

Endpoint

GET /dynamic_workflows/{workflow_id}

Path parameter

workflow_id string (Required)Workflow ID in the format wf_<ULID>

Request example

curl "$AGENTSTUDIO_URL/dynamic_workflows/wf_01M7RMD9PRNVEPY2QKW1MA36TE" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

id stringWorkflow ID in the format wf_<ULID>type stringFixed to dynamic_workflowname / description stringName and descriptionstatus / archived string / boolstatus is fixed to published; archived indicates whether the workflow is archivedversion intLatest published version numberscript / input_schema string / objectComplete script and input schemacreated_at / updated_at stringCreation and last modification time, ISO 8601request_id stringUnique request identifier

Response example

{
  "id": "wf_01M7RMD9PRNVEPY2QKW1MA36TE",
  "type": "dynamic_workflow",
  "name": "sum-workflow",
  "description": "Adds two integers",
  "status": "published",
  "archived": false,
  "version": 2,
  "script": "export const meta = { name: 'sum-workflow' }\n\nreturn { sum: Number(args.a) + Number(args.b) }",
  "input_schema": {},
  "created_at": "2026-11-19T01:00:00Z",
  "updated_at": "2026-11-20T08:30:00Z",
  "request_id": "req_example"
}