Skip to main content
GET
/
api
/
auth
/
google
/
institution
/
authorize
Start the Google OAuth flow for an institution-level token
curl --request GET \
  --url https://pria.praxislxp.com/api/auth/google/institution/authorize \
  --header 'Authorization: Bearer <token>'
{
  "error": "Institution ID required"
}

Authorizations

Authorization
string
header
required

JWT token passed in authorization header

Query Parameters

institutionId
string
required

ObjectId of the institution to attach the token to.

scopes
string
required

Comma-separated Google service names. Resolved via GoogleServicesConfig.buildScopes.

Response

Redirect to Google's OAuth consent screen. On error during initiation (configuration / lookup failure) the user is redirected to ${PRIA_URL}/oauth/success?error=auth_initiation_failed instead.