List GBP locations
For headless flows. Returns the list of GBP locations the user can manage. Use pendingDataToken (from the OAuth callback redirect) to list locations without consuming the token, so it remains available for select-location. Use X-Connect-Token header if connecting via API key.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
Profile ID from your connection flow. Required for auth validation when provided.
Token from the OAuth callback redirect. Preferred over tempToken because it preserves server-side token storage. One of pendingDataToken or tempToken is required.
Legacy. Direct Google access token. Use pendingDataToken instead when available.
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.googleBusiness.listGoogleBusinessLocations();console.log(data);{
"locations": [
{
"id": "9281089117903930794",
"name": "My Coffee Shop",
"accountId": "accounts/113303573364907650416",
"accountName": "My Business Account",
"address": "123 Main St, City, Country",
"category": "Coffee shop"
}
]
}{
"error": "Unauthorized"
}{
"error": "string"
}Update Facebook page PUT
Switch which Facebook Page is active for a connected account.
Select GBP location POST
Complete the headless GBP 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.