---
title: "POST /v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:checkAuthorization"
method: POST
path: "/v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:checkAuthorization"
tags: ["projects"]
---

# POST /v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:checkAuthorization

`POST /v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:checkAuthorization`

## Request

- Base URL: `https://notebooks.googleapis.com`
- URL: `https://notebooks.googleapis.com/v2/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:checkAuthorization`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/notebooks`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/notebooks`

Initiated by Cloud Console for Oauth consent flow for Workbench Instances. Do not use this method directly. Design doc: go/wbi-euc:auth-dd

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `instancesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- CheckAuthorizationRequest: Request message for checking authorization for the instance owner.
  - `authorizationDetails` object: Optional. The details of the OAuth authorization response. This may include additional params such as dry_run, version_info, origin, propagate, etc.

## Response `200`

Successful response

- CheckAuthorizationResponse: Response message for checking authorization for the instance owner.
  - `createTime` string, google-datetime: Output only. Timestamp when this Authorization request was created.
  - `oauth_uri` string: If the user has not completed OAuth consent, then the oauth_url is returned. Otherwise, this field is not set.
  - `success` boolean: Success indicates that the user completed OAuth consent and access tokens can be generated.

## Changes

- **2026-12-05** `4dfb67434032`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/notebooks` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/notebooks` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/notebooks/changes/v2/projects/:projectsId/locations/:locationsId/instances/:instancesId:checkAuthorization/post.md)

---

[API](https://skmtc.dev/google/apis/notebooks.md) - [All operations](https://skmtc.dev/google/apis/notebooks/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/notebooks/revisions/4dfb67434032?raw)
