Skip to main content

List Dynamic Workflow Versions

List published versions of a dynamic workflow with pagination, sorted by version number in descending order.

Prerequisites

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

Endpoint

GET /dynamic_workflows/{workflow_id}/versions

Path parameter

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

Query parameters

limit int (Optional)Number of items per page. Range 1–100, default 20page string (Optional)Pagination cursor. Omit on the first request; pass the next_page from the previous response

Request example

curl "$AGENTSTUDIO_URL/dynamic_workflows/wf_01M7RMD9PRNVEPY2QKW1MA36TE/versions?limit=20" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

data arrayPublished version summary list, sorted by version number in descending order. Each item contains id, type, name, description, status, archived, version, created_at, and updated_at; script and input_schema are always nullnext_page string / nullCursor for the next page, a string containing the last public version number on the previous page; null when there are no more recordsrequest_id stringUnique request identifier

Response example

{
  "data": [
    {
      "id": "wf_01M7RMD9PRNVEPY2QKW1MA36TE",
      "type": "dynamic_workflow",
      "name": "sum-workflow",
      "description": "Adds two integers",
      "status": "published",
      "archived": false,
      "version": 3,
      "script": null,
      "input_schema": null,
      "created_at": "2026-11-19T01:00:00Z",
      "updated_at": "2026-11-21T10:15:00Z"
    }
  ],
  "next_page": "2",
  "request_id": "req_example"
}