> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync reviews

> Read one location's new and changed Google reviews now.

> [!NOTE]
>
> Needs `comments:read`: reviews use the comments permissions. See [Permissions](https://docs.postsyncer.com/essentials/authentication.md#permissions).

Reads the location in `account_id` from Google and saves what is new or changed; `synced` is how many reviews this read saved. Once a day a read also looks again at the newest 1,000 reviews, for replies made in Google. Works on every plan.

A location can be synced once every 2 minutes, from the app or the API. A second sync sooner answers `429` with `Reviews for this location were synced moments ago.` and no `Retry-After` header. A location that must be reconnected isn't read: the answer is `422`. When Google refuses the read or can't be reached, the answer is `500`; the 2-minute wait is lifted, so you can try again after a moment.

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `comments:read`, or its user is inactive. | No: grant it in Settings → API. |
| 404 | | No account with that id in the workspaces the key can reach. | No. |
| 422 | | `account_id` is missing or isn't a Google Business Profile location, or the location must be reconnected first. | No: fix the request, or reconnect the location. |
| 429 | | More than 60 requests a minute, or this location was synced less than 2 minutes ago. | Yes, after `Retry-After` seconds, or after 2 minutes when there is no `Retry-After`. |
| 500 | | Google refused the read or couldn't be reached. Reviews read before that stay saved, and the 2-minute wait is lifted. | Yes, after a moment. |

## Related

* [List reviews](https://docs.postsyncer.com/api-reference/reviews/list.md): what was read.
* [Answer Google reviews](https://docs.postsyncer.com/guides/reviews.md#read-again-now): when to read again.


## OpenAPI

````yaml POST /reviews/sync
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
paths:
  /reviews/sync:
    post:
      tags:
        - Reviews
      summary: Sync reviews
      description: >-
        Needs `comments:read`. Reads one location's new and changed reviews from
        Google now, and saves them. `synced` is how many reviews this read
        saved. Once a day a read also looks again at the newest 1,000, for
        replies made in Google. A location can be synced once every 2 minutes,
        from the app or the API: a second sync sooner answers `429` with
        "Reviews for this location were synced moments ago." and no
        `Retry-After`. No read is made for a location that must be reconnected.
        When Google refuses the read or can't be reached, the answer is `500`
        and the 2-minute wait is lifted, so the sync can be tried again. Works
        on every plan.
      operationId: syncReviews
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
              properties:
                account_id:
                  type: integer
                  description: >-
                    The location: a Google Business Profile account in a
                    workspace the key can reach.
            examples:
              default:
                summary: One location
                value:
                  account_id: 304
      responses:
        '200':
          description: The read finished.
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - data
                properties:
                  message:
                    type: string
                    enum:
                      - Review sync finished.
                  data:
                    type: object
                    required:
                      - account_id
                      - synced
                    properties:
                      account_id:
                        type: integer
                      synced:
                        type: integer
                        description: How many reviews this read saved.
              examples:
                default:
                  summary: Two reviews saved
                  value:
                    message: Review sync finished.
                    data:
                      account_id: 304
                      synced: 2
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: The key lacks `comments:read`, or its user is inactive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks comments:read
                  value:
                    message: >-
                      This API key does not have the "comments:read" permission.
                      Edit the key in PostSyncer under Settings → API to grant
                      it.
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '404':
          $ref: '#/components/responses/NotFound404'
        '422':
          description: >-
            `account_id` is missing or isn't a Google Business Profile location,
            or the location must be reconnected first.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationError'
                  - $ref: '#/components/schemas/Error'
              examples:
                account_id_missing:
                  summary: No account_id
                  value:
                    message: The account id field is required.
                    errors:
                      account_id:
                        - The account id field is required.
                not_a_location:
                  summary: Not a Google Business Profile account
                  value:
                    message: This account is not a Google Business Profile location.
                    errors:
                      account_id:
                        - >-
                          This account is not a Google Business Profile
                          location.
                reconnect:
                  summary: The location must be reconnected
                  value:
                    message: Reconnect this Google Business Profile location first.
        '429':
          $ref: '#/components/responses/RateLimited429'
        '500':
          description: >-
            Google refused the read or couldn't be reached. Reviews read before
            that stay saved, and the 2-minute wait is lifted, so try again after
            a moment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                google_failed:
                  summary: Google refused or couldn't be reached
                  value:
                    message: Server Error
components:
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
    NotFound404:
      description: Nothing with that id in the workspaces the key can reach.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            not_found:
              summary: Not found
              value:
                message: Not found.
    RateLimited429:
      description: >-
        More than 60 requests in a minute from this key's user (the API and the
        MCP server share the count). Wait `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds until requests are allowed again.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed a minute.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left this minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: When requests are allowed again, as a Unix timestamp.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            too_many_attempts:
              summary: Too many requests
              value:
                message: Too Many Attempts.
  schemas:
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
    ValidationError:
      type: object
      description: '422: the request didn''t pass validation, and nothing changed.'
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: >-
            The first error and, when there are more, how many: `(and 1 more
            error)`, `(and 2 more errors)`.
        errors:
          type: object
          description: >-
            The messages, by field. A field inside a list is named with dots:
            `accounts.0.id`.
          additionalProperties:
            type: array
            items:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.