Skip to main content
GET
Start the Google Services (per-user) OAuth consent flow

Authorizations

Authorization
string
header
required

JWT token passed in authorization header

Query Parameters

scopes
string
required

Comma-separated list of Google service names to request. Each name is expanded via GoogleServicesConfig.buildScopes. Common values: gmail, drive, calendar, sheets, docs.

origin
enum<string>
default:profile

Where the user was when they triggered the consent. Controls the post-callback redirect — chat returns to the chat page, profile returns to the profile page.

Available options:
profile,
chat

Response

Redirect to Google's OAuth consent screen.