# Method: projects.locations.corpora.assets.generateRetrievalUrl

- [HTTP request](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1/projects.locations.corpora.assets/generateRetrievalUrl#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1/projects.locations.corpora.assets/generateRetrievalUrl#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1/projects.locations.corpora.assets/generateRetrievalUrl#body.request_body)
- [Response body](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1/projects.locations.corpora.assets/generateRetrievalUrl#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1/projects.locations.corpora.assets/generateRetrievalUrl#body.GenerateRetrievalUrlResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1/projects.locations.corpora.assets/generateRetrievalUrl#body.aspect)

Generates a signed url for downloading the asset.

### HTTP request

`POST https://visionai.googleapis.com/v1/{name=projects/*/locations/*/corpora/*/assets/*}:generateRetrievalUrl`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The resource name of the asset to request signed url for. Format: `projects/{project_number}/locations/{locationId}/corpora/{corpus_id}/assets/{assetId}` |

### Request body

The request body must be empty.

### Response body

Response message for assets.generateRetrievalUrl API.

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

| JSON representation |
|---|
| ``` { "signedUri": string } ``` |

| Fields ||
|---|---|
| `signedUri` | `string` A signed url to download the content of the asset. |

### Authorization scopes

Requires the following OAuth scope:

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

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