**Full name**: projects.locations.processors.processorVersions.list

Lists all versions of a processor.

### HTTP request

Choose a location:
<button value="global" default="">global</button> <button value="us">us</button> <button value="eu">eu</button> <button value="asia-south1">asia-south1</button> <button value="asia-southeast1">asia-southeast1</button> <button value="northamerica-northeast1">northamerica-northeast1</button> <button value="australia-southeast1">australia-southeast1</button> <button value="europe-west2">europe-west2</button> <button value="europe-west3">europe-west3</button>   
`GET https://documentai.googleapis.com/v1/{parent}/processorVersions`

<br />

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent (project, location and processor) to list all versions. Format: `projects/{project}/locations/{location}/processors/{processor}` It takes the form `projects/{project}/locations/{location}/processors/{processor}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `documentai.processorVersions.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` The maximum number of processor versions to return. If unspecified, at most `10` processor versions will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. |
| `pageToken` | `string` We will return the processor versions sorted by creation time. The page token will point to the next processor version. |

### Request body

The request body must be empty.

### Response body

Response message for the `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions/list#google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersions` method.

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

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

| Fields ||
|---|---|
| `processorVersions[]` | ``object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.processors.processorVersions#ProcessorVersion`)`` The list of processors. |
| `nextPageToken` | `string` Points to the next processor, otherwise empty. |

### 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).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `documentai.processorVersions.list`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).