---
title: "List all versions of a workflow definition"
method: GET
path: "/workflows/{workflow_id}/versions"
tags: ["Workflows"]
---

# List all versions of a workflow definition

`GET /workflows/{workflow_id}/versions`

Return a list of all workflow versions under a workflow definition

### User Access Permission
You must be assigned the **Workflow View Access** permission to run this operation.

## Path parameters

- `workflow_id` integer, required

## Headers

- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string

## Response `200`

OK

- GetVersionsResponse
  - `data` Workflow[] — The list of workflow versions retrieved.
    - `calloutTrigger` boolean — Indicates whether the callout trigger is enabled for the retrieved workflow.
    - `createdAt` string, datetime — The date and time when the workflow is created, in the `YYYY-MM-DD HH:MM:SS` format.
    - `description` string — The description of the workflow.
    - `id` integer — The unique ID of the workflow.
    - `interval` string, nullable — The schedule of the workflow, in a CRON expression. Returns null if the schedued trigger is disabled.
    - `name` string — The name of the workflow.
    - `ondemandTrigger` boolean — Indicates whether the ondemand trigger is enabled for the workflow.
    - `scheduledTrigger` boolean — Indicates whether the scheduled trigger is enabled for the workflow.
    - `timezone` string, nullable — The timezone that is configured for the scheduler of the workflow. Returns null if the scheduled trigger is disabled.
    - `type` 'Workflow::Setup' | 'Workflow::Instance' — The type of the workflow. Currently the only valid value is 'Workflow::Setup'.
    - `updatedAt` string, datetime — The date and time when the workflow is updated the last time, in the `YYYY-MM-DD HH:MM:SS` format.
    - `version` string — The version number of the workflow.

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
