---
title: "POST /v1/{+name}:authorize"
method: POST
path: "/v1/{+name}:authorize"
tags: ["users"]
---

# POST /v1/{+name}:authorize

`POST /v1/{+name}:authorize`

Sends OAuth credentials to a running environment on behalf of a user. When this completes, the environment will be authorized to run various Google Cloud command line tools without requiring the user to manually authenticate.

## Path parameters

- `name` string, required

## Request body

- AuthorizeEnvironmentRequest — Request message for AuthorizeEnvironment.
  - `expireTime` string, google-datetime — The time when the credentials expire. If not set, defaults to one hour from when the server received the request.
  - `accessToken` string — The OAuth access token that should be sent to the environment.
  - `idToken` string — The OAuth ID token that should be sent to the environment.

## Response `200`

Successful response

---

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