# Every publish of one workflow

Every version one workflow has published, newest first: what each publish froze, when, and which version a rollback republished. A version is immutable and a run points at one, so this is the history that reads FORWARDS — a rollback publishes an old version's words as a new version rather than restoring it. The draft being edited is in `get_workflows_id`.

Access class: `workspace`.

## Endpoint

`GET /v1/workflows/{id}/versions`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "versions": [
      {
        "createdAt": "string",
        "definition": "string",
        "id": 1,
        "publishedByUserId": 1,
        "rolledBackFrom": 1,
        "runAsAccountId": "",
        "version": 1,
        "workflowId": 1
      }
    ]
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
