Skip to main content
GET
/
api
/
auth
/
google
/
services
/
authorize
Start the Google Services (per-user) OAuth consent flow
curl --request GET \
  --url https://pria.praxislxp.com/api/auth/google/services/authorize \
  --header 'Authorization: Bearer <token>'
{
  "error": "No services specified"
}

Documentation Index

Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt

Use this file to discover all available pages before exploring further.

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.