# List Workflow Versions

See a workflow's history: the current draft plus every published and unpublished version, newest first.

`GET https://connect.mindcloud.co/v2/workflows/:workflowId/versions`

Permissions: `workflow:view`.

## Parameters

### Path

- `workflowId` (string, required): The workflow's id, from List Workflows.

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

## Example request

```bash
curl --request GET \
  --url 'https://connect.mindcloud.co/v2/workflows/Wq3kZ8pLx2Nb/versions' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `version` (string): The version string, or "draft" for the current draft.
- `isPublished` (boolean): True for the published version.
- `createdOn` (date): When this version was created.
