# Method: projects.locations.workflows.listRevisions

- [HTTP request](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#body.request_body)
- [Response body](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#body.ListWorkflowRevisionsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#body.aspect)
- [Try it!](https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#try-it)

Lists revisions for a given workflow.

### HTTP request

`GET https://workflows.googleapis.com/v1/{name=projects/*/locations/*/workflows/*}:listRevisions`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Workflow for which the revisions should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow} Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `workflows.workflows.listRevision` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` The maximum number of revisions to return per page. If a value is not specified, a default value of 20 is used. The maximum permitted value is 100. Values greater than 100 are coerced down to 100. |
| `pageToken` | `string` The page token, received from a previous workflows.listRevisions call. Provide this to retrieve the subsequent page. |

### Request body

The request body must be empty.

### Response body

Response for the `https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows/listRevisions#google.cloud.workflows.v1.Workflows.ListWorkflowRevisions` method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "workflows": [ { object (`https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows#Workflow`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `workflows[]` | ``object (`https://docs.cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows#Workflow`)`` The revisions of the workflow, ordered in reverse chronological order. |
| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).