Skip to main content
GET
/
connections
/
{nameOrID}
/
federation
/
oauth
/
authorize
Start the Google OAuth consent flow for a connection
curl --request GET \
  --url https://use.hoop.dev/api/connections/{nameOrID}/federation/oauth/authorize
{
  "url": "https://accounts.google.com/o/oauth2/auth?client_id=...&state=..."
}

Path Parameters

nameOrID
string
required

Name or UUID of the connection

Query Parameters

redirect
string

URL to return the browser to after consent (must match the API hostname)

Response

OK

url
string

URL is the Google OAuth consent URL to redirect the user's browser to.

Example:

"https://accounts.google.com/o/oauth2/auth?client_id=...&state=..."