---
title: "POST /v2/{+name}:generateAccessToken"
method: POST
path: "/v2/{+name}:generateAccessToken"
tags: ["projects"]
---

# POST /v2/{+name}:generateAccessToken

`POST /v2/{+name}:generateAccessToken`

Called by VM to return an EUC for the instance owner. Do not use this method directly. Design doc: go/wbi-euc:dd

## Path parameters

- `name` string, required

## Request body

- GenerateAccessTokenRequest — Request message for generating an EUC for the instance owner.
  - `vmToken` string — Required. The VM identity token (a JWT) for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/notebooks.md) · [All operations](https://skmtc.dev/google/apis/notebooks/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/notebooks/revisions/127a2a41b4c1/schema)
