Endpoints
Reviews cannot be created or deleted through the API, and SocialAPI has no endpoint to edit or delete a reply. To change a reply, send a new one: a review has one business reply, and a new reply replaces it.
The two list endpoints
The twoGET endpoints answer different questions:
GET /v1/inbox/reviewsreturns one row per review-capable account: the account, its average rating, its review count, and the time of its newest review. Use it to build a list of locations. It returns no reviews. Addplatform=googleto filter.GET /v1/inbox/reviews/{account_id}returns the reviews of the 1 account you name. Use it to read, sort, and page through them.
status is ok, reconnection_required (the account needs reconnecting), or error (Google did not answer in time). average_rating, total_count, and last_review_at are null unless status is ok. A failing account never fails the whole list.
List the reviews of a location
Response (HTTP 200):
Google serves reviews for verified locations only.
GET /v1/inbox/reviews/{account_id} on an account whose platform has no reviews returns 422 account.platform_unsupported.
Reply to a review
A reply costs 1 interaction credit. When the allowance is used up, the call returns
429 validation.interaction_limit_exhausted. A missing account_id or text returns 400 validation.field_required. A review ID that is not a review ID returns 400 validation.id_invalid, and one from another platform returns 400 validation.id_platform_mismatch. An account that needs reconnecting returns 403 account.reconnection_required.
Replies are moderated
SocialAPI sends a
review.updated webhook event when Google decides, with change set to reply_approved or reply_rejected. You can also read the review again and look at reply.state. A rejected reply carries reply.policy_violation, passed through as Google sends it:
Review events
Google Business Profile sends review events to SocialAPI as they happen, and SocialAPI delivers them to your webhook endpoints like every other event.
The payloads are in Webhook events. Google can miss a notification and does not replay it, so a gap is permanent. Read
GET /v1/inbox/reviews/{account_id} on a schedule to backfill.
Scopes
Use from an AI agent
Related
- Reviews: the platform-independent review workflow
- Webhook events: the
review.receivedandreview.updatedpayloads - Google Business Profile API: capabilities, connect rules, and limits for the platform
- Google Business Profile locations: read and update the location behind the reviews
- Plans and usage: what costs an interaction credit