Skip to main content
GET
GBP endpoints power the dashboard connection flow for Google Business Profile. They use the signed-in app session, not X-NearIQ-Key, and operate on the user’s active accessible business.
These endpoints are not public v1 API-key endpoints. They require an authenticated dashboard session and may return 401 when the session is missing.

GET /api/gbp/connect

Starts the OAuth connection flow and redirects the browser to the consent screen.
string
Optional relative path to return to after a successful connection. Non-relative values are ignored.
string
Set to 1 when the user is explicitly authorizing spreadsheet export access in the same flow.
string
Set to sheets as an alternate way to include spreadsheet export access.
Successful responses redirect to the OAuth consent screen. Missing app integration configuration returns:

GET /api/gbp/callback

Handles the OAuth callback, verifies the signed-in user matches the state payload, stores encrypted tokens, discovers the first available location, and redirects back to the requested dashboard path.
Successful callbacks redirect to the return path with gbp=connected. Failure redirects include gbp=error and a reason such as missing_code, invalid_state, auth_mismatch, token_exchange_failed, no_business, or encryption_unavailable.

GET /api/gbp/status

Returns the current user’s visible GBP connection status.
When no connection is visible:

POST /api/gbp/disconnect

Disconnects the visible GBP connection for the active business. Token revocation is best effort; the local connection is removed either way.
If there is no visible connection, the response is still successful:

GET /api/gbp/reviews

Fetches reviews for the active connected location and normalizes them for the dashboard review reply flow.
If the active business is missing or not connected, the route returns an empty review array with an explanatory error value.

POST /api/gbp/reply

Posts or updates a reply to a GBP review.
string
required
Full review resource name returned by GET /api/gbp/reviews.
string
Reply text. Either comment or reply is accepted.
string
Alternate reply text field kept for legacy clients.
Org-owned businesses require the review_responses_post permission.

DELETE /api/gbp/reply

Deletes a reply from a GBP review. DELETE /api/gbp/reviews/reply is an alias for the same handler.

POST /api/gbp/post

Creates a local post for the active connected GBP location.
This endpoint requires a plan with gbpAutoPost access. Org-owned businesses also require the social_media_publish permission.
string
required
Post text. Must be 1-1500 characters.
string
One of BOOK, ORDER, SHOP, LEARN_MORE, SIGN_UP, or CALL.
string
Optional CTA URL.
string
Optional public image URL.

POST /api/gbp/bulk-post

Creates the same local post for multiple owned business locations.
array
required
Owned business IDs to post to. The route accepts 1-50 IDs.
string
required
Post text. Must be 1-1500 characters.
Bulk posting requires a plan with gbpAutoPost access and only posts to businesses owned by the signed-in user.