Skip to main content
POST
/
workflows
/
versions
/
list
Python SDK
res = client.workflows.versions.list(["my_workflow", "my_workflow_2"])

from cognite.client.data_classes import WorkflowVersionId
res = client.workflows.versions.list(
    [WorkflowVersionId("my_workflow"), WorkflowVersionId("my_workflow_2")])

res = client.workflows.versions.list(
    [("my_workflow", "1"), ("my_workflow_2", "2")])
{
  "items": [
    {
      "workflowExternalId": "<string>",
      "version": "<string>",
      "workflowDefinition": {
        "hash": "<string>",
        "tasks": [
          {
            "externalId": "<string>",
            "type": "function",
            "parameters": {
              "function": {
                "externalId": "my.known.id",
                "data": {
                  "key1": "value1",
                  "key2": "value2"
                }
              },
              "isAsyncComplete": false
            },
            "name": "<string>",
            "description": "<string>",
            "retries": 3,
            "timeout": 3600,
            "onFailure": "abortWorkflow",
            "dependsOn": [
              {
                "externalId": "my.known.id"
              }
            ]
          }
        ],
        "description": "<string>"
      },
      "createdTime": 1730204346000,
      "lastUpdatedTime": 1730204346000
    }
  ],
  "nextCursor": "4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Body

application/json
filter
object
limit
integer
default:100

The maximum number of results to return.

Required range: 1 <= x <= 1000
cursor
string

Cursor to use for paging through results. This cursor is returned in the response of a previous request as nextCursor. If not specified, start from the first page of results.

Example:

"4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"

Response

200 - application/json

List of workflow versions

items
Workflow Version · object[]
required
Maximum array length: 1000
nextCursor
string

Cursor to get the next page of results. If not present, no more results are available.

Example:

"4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"

Last modified on April 23, 2026