Assign Google Business Profile location to another profile
Connect a Google Business Profile location onto a DIFFERENT profile by reusing the OAuth grant from an already-connected Google Business Profile account, with no browser and no re-authorization.
Built for agencies whose single Google account has manager access to many client locations and who run one profile per client:
- Connect one location the normal way (browser OAuth).
- Bulk-assign the rest onto each client's profile via this endpoint.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Path parameters
A source connected Google Business Profile account whose OAuth grant is reused.
Body
application/jsonWhat every request needs
Target profile to connect the location onto.
The Google Business Profile location ID to assign (e.g. "locations/123").
Optional parameters1 field
Optional but recommended. The Google Business Profile Account resource name ("accounts/123") that owns the location (from GET gmb-locations). When provided the location is resolved directly instead of by enumerating the account, required for accounts with many locations.
Responses
Success· the request worked
Errors· the request failed
How it behaves
Parameters
- The path
accountIdis a SOURCE connected Google Business Profile account (the token holder). - The body
profileIdis the TARGET profile, which may already hold other locations.
Assigning a location the target profile already holds refreshes that account.
Select Google Business Profile location
Complete the headless Google Business Profile flow by saving the user's selected location. The pendingDataToken is returned in your redirect URL after OAuth completes (step=select_location). Tokens and profile data are stored server-side, so only the pendingDataToken is needed here. Use X-Connect-Token header if connecting via API key.
List Google Business Profile locations
Returns Google Business Profile locations the connected account can access, plus the currently selected location. The list is bounded (see hasMore). For accounts that own many locations: - use the search or filter query params to find a specific one instead of loading them all; - or raise limit to enumerate an account with more than 100 locations.