**Full name**: projects.locations.featureOnlineStores.featureViews.generateFetchAccessToken

RPC to generate an access token for the given feature view. FeatureViews under the same FeatureOnlineStore share the same access token.

### Endpoint

post `https://{service-endpoint}/v1/{featureView}:generateFetchAccessToken`   
Where `{service-endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest#rest_endpoints).

### Path parameters

`featureView` `string` FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`

### Request body

The request body must be empty.

### Response body

Response message for `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/projects.locations.featureOnlineStores.featureViews/generateFetchAccessToken#google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken`.

If successful, the response body contains data with the following structure:
Fields `accessToken` `string` The OAuth 2.0 access token.
`expireTime` ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` token expiration time. This is always set

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`.

| JSON representation |
|---|
| ``` { "accessToken": string, "expireTime": string } ``` |

### IAM Permissions

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

- `aiplatform.featureViews.fetchFeatureValues`

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