POST
cURL
Requires an Organization token.
Generates a Google OAuth URL for connecting a Google Business Profile account. redirect_url must be HTTPS.
  1. Call this endpoint with redirect_url and optional state
  2. Redirect the user to the returned url
  3. After they authorize, they are sent to your redirect_url
Scopes requested: userinfo.email, userinfo.profile, business.manage.

Success

Errors

OAuth failures use ?error=: Connection failures use ?status=error&error_message=:

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

OAuth URL generation parameters

redirect_url
string
required

URL where the user will be redirected after OAuth authorization

state
string

Custom state data to be included in the OAuth flow for validation

Response

OAuth URL generated successfully. Redirect the user to this URL to begin the authorization flow.

success
boolean

Indicates if the request was successful

url
string

The generated Google OAuth authorization URL