Generate a Google OAuth authorization URL for authenticating and authorizing access to Google Business Profile data. The user should be redirected to this URL to complete the OAuth flow.
state and redirect_urlredirect_url with authorization resultsuserinfo.email - Access to user’s email addressuserinfo.profile - Access to user’s basic profile informationbusiness.manage - Manage Google Business Profile locationsredirect_url with the following query parameters:
uid - User identifier (null for external API)googleId - Google user IDbilling_id - Organization IDtoken_refreshed - Whether a refresh token was obtainedexternal_api - Always true for external API callsstate - The original state parametererror parameter:
business.manage) was not granted by the user.
uid (string) - User identifiergoogleId (string) - Google user ID from the OAuth callbackid (string) - Account identifierbilling_id (string) - Organization/billing IDexternal_api (boolean) - Must be true for external API callsstate (string) - The state parameter from your OAuth flowexternal_api=true, the endpoint returns a JSON object with a redirect URL instead of the standard response:
status - Always success for successful connectionsgmb_profile_id - The Google Business Profile account IDbusiness_name - The name of the connected business (URL encoded)state - The original state parameter from your OAuth flowstatus - Always error for failed connectionserror_message - A description of the error (URL encoded)state - The original state parameter from your OAuth flowerror_message parameter.
POST /connect/account with all required parameters, including external_api=trueurl provided in the response (contains success status and profile details)url provided in the response (contains error status and message)uid (string) - User identifiergoogleId (string) - Google user ID of the account to disconnectid (string) - Account identifier (GMB profile ID)external_api (boolean) - Must be true for external API callsstate (string) - The state parameter from your OAuth flowexternal_api=true, the endpoint returns a JSON object with a redirect URL:
status - Always success_disconnect for successful disconnectionsstate - The original state parameter from your OAuth flowaccount_id - The ID of the disconnected accountDELETE /disconnect/account with the account details and external_api=trueurl provided in the response (contains success status and account ID)uid (string) - User identifiergoogleId (string) - Google user ID of the account to reconnectid (string) - Account identifier (GMB profile ID)external_api (boolean) - Must be true for external API callsstate (string) - The state parameter from your OAuth flowexternal_api=true, the endpoint returns a JSON object with a redirect URL instead of the standard response:
status - Always success_reconnect for successful reconnectionsstate - The original state parameter from your OAuth flowaccount_id - The ID of the reconnected accountstatus - Always error for failed reconnectionserror_message - A description of the error (URL encoded)state - The original state parameter from your OAuth flowerror_message parameter. These may include token refresh failures or API communication errors.
POST /reconnect/account with the account details and external_api=trueurl provided in the response (contains success status and account ID)url provided in the response (contains error status and message)Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OAuth URL generation parameters