Skip to main content
GET
/
v1
/
workflows
/
versions
from retab import Retab

client = Retab()

versions = client.workflows.list_versions(workflow_id="wrk_abc123")
print(versions.data[0].id)
{
  "data": [
    {
      "id": "<string>",
      "workflow_id": "<string>",
      "organization_id": "<string>",
      "environment_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "blocks": [],
      "edges": [],
      "block_version_ids": {},
      "edge_version_ids": {}
    }
  ],
  "list_metadata": {
    "before": "<string>",
    "after": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.retab.com/llms.txt

Use this file to discover all available pages before exploring further.

List immutable workflow versions for one workflow. Each version contains the executable workflow graph and maps live block and edge ids to their corresponding immutable component version ids.
from retab import Retab

client = Retab()

versions = client.workflows.list_versions(workflow_id="wrk_abc123")
print(versions.data[0].id)

Authorizations

Api-Key
string
header
required

Query Parameters

workflow_id
string
required

Workflow whose versions to list

limit
integer
default:50

Maximum number of versions to return

Required range: 1 <= x <= 100

Response

Successful Response

A page of WorkflowGraphVersion resources. data holds the items and list_metadata carries the before/after cursors; pass after to fetch the next page.

data
WorkflowGraphVersion · object[]
required
list_metadata
ListMetadata · object
required

Boundary resource IDs for page navigation.