> ## 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.

# Reply to a review

> Send your reply to a Google review, or replace the one it has.

> [!NOTE]
>
> Needs `comments:update`: reviews use the comments permissions. Your role in the location's workspace must also let you edit comments. See [Permissions](https://docs.postsyncer.com/essentials/authentication.md#permissions).

Sends `comment` to Google as the review's reply. A review has one reply, so this replaces a reply already there, one made in Google too. The reply is saved in PostSyncer only once Google takes it, with `reply_source: postsyncer`. It can be up to 4,096 characters. Works on every plan.

If Google refuses, the answer is `422` on `comment` with Google's reason, and nothing changes.

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `comments:update`, or its user is inactive. | No: grant it in Settings → API. |
| 403 | | Your role in the location's workspace can't edit comments. | No. |
| 404 | | No review with that id on a location in the workspaces the key can reach. | No. |
| 422 | | No `comment`, a blank one or one over 4,096 characters, the location must be reconnected, or Google refused the reply. | No, unless the message says Google is limiting requests or couldn't be reached; then try again after a few minutes. Otherwise fix the reply, or reconnect the location. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [Delete a review reply](https://docs.postsyncer.com/api-reference/reviews/delete-reply.md): take the reply down.
* [Answer Google reviews](https://docs.postsyncer.com/guides/reviews.md#reply-to-a-review): how to answer.


## OpenAPI

````yaml PUT /reviews/{review}/reply
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/{review}/reply:
    put:
      tags:
        - Reviews
      summary: Reply to a review
      description: >-
        Needs `comments:update`. Reviews use the comments permissions, and your
        role in the location's workspace must also let you edit comments. Sends
        your reply to Google, or replaces the one there: a review has one reply.
        It is saved in PostSyncer only once Google takes it, with `reply_source:
        postsyncer`. If Google refuses, the answer is `422` on `comment` with
        Google's reason, and nothing changes. Works on every plan.
      operationId: replyToReview
      parameters:
        - name: review
          in: path
          required: true
          description: The review's id (`id` in a list).
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - comment
              properties:
                comment:
                  type: string
                  maxLength: 4096
                  description: >-
                    The reply, up to 4,096 characters. Spaces around it are
                    trimmed; it can't be blank.
            examples:
              default:
                summary: A thank-you
                value:
                  comment: Thank you, Rowan! See you next time.
      responses:
        '200':
          description: The review with your reply.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Review'
              examples:
                default:
                  summary: Replied
                  value:
                    id: 6120
                    account_id: 304
                    location_title: Halden Coffee · Harbourside
                    reviewer_name: Rowan Example
                    reviewer_photo_url: https://cdn.postsyncer.com/examples/avatar-rowan.jpg
                    star_rating: 5
                    comment: Best flat white in Bristol, and they remembered my order.
                    media: []
                    reviewed_at: '2030-03-12T15:04:00.000000Z'
                    reply_comment: Thank you, Rowan! See you next time.
                    reply_updated_at: '2030-03-15T09:30:00.000000Z'
                    reply_source: postsyncer
                    review_url: https://maps.google.com/?cid=4512345678901234567
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: >-
            The key lacks `comments:update`, its user is inactive, or your role
            can't edit comments.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks comments:update
                  value:
                    message: >-
                      This API key does not have the "comments:update"
                      permission. Edit the key in PostSyncer under Settings →
                      API to grant it.
                role:
                  summary: Your role can't edit comments
                  value:
                    message: >-
                      Your role in the workspace "Halden Coffee" does not allow
                      you to edit comments. Ask the workspace owner or a manager
                      to do it, or to change your role.
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '404':
          $ref: '#/components/responses/NotFound404'
        '422':
          description: >-
            No reply, a blank one or one over 4,096 characters, the location
            must be reconnected, or Google refused it.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationError'
                  - $ref: '#/components/schemas/Error'
              examples:
                comment_missing:
                  summary: No comment
                  value:
                    message: The comment field is required.
                    errors:
                      comment:
                        - The comment field is required.
                blank:
                  summary: Empty or only spaces
                  value:
                    message: The comment field is required.
                    errors:
                      comment:
                        - The comment field is required.
                too_long:
                  summary: Over 4,096 characters
                  value:
                    message: A reply can be at most 4,096 characters.
                    errors:
                      comment:
                        - A reply can be at most 4,096 characters.
                reconnect:
                  summary: The location must be reconnected
                  value:
                    message: Reconnect this Google Business Profile location first.
                google_refused:
                  summary: 'Google refused: its own words'
                  value:
                    message: The caller does not have permission
                    errors:
                      comment:
                        - The caller does not have permission
                google_busy:
                  summary: Google is limiting requests
                  value:
                    message: >-
                      Google Business Profile is limiting requests right now
                      (HTTP 429). Nothing was changed: try again in a few
                      minutes.
                    errors:
                      comment:
                        - >-
                          Google Business Profile is limiting requests right now
                          (HTTP 429). Nothing was changed: try again in a few
                          minutes.
        '429':
          $ref: '#/components/responses/RateLimited429'
components:
  schemas:
    Review:
      type: object
      description: >-
        A Google review of a connected Google Business Profile location, with
        your reply when there is one.
      required:
        - id
        - account_id
        - location_title
        - reviewer_name
        - reviewer_photo_url
        - star_rating
        - comment
        - media
        - reviewed_at
        - reply_comment
        - reply_updated_at
        - reply_source
        - review_url
      properties:
        id:
          type: integer
          description: PostSyncer's id for the review.
        account_id:
          type: integer
          description: 'The location: a connected Google Business Profile account.'
        location_title:
          type: string
          nullable: true
          description: The location's name in PostSyncer.
        reviewer_name:
          type: string
          nullable: true
          description: The name Google shows.
        reviewer_photo_url:
          type: string
          nullable: true
        star_rating:
          type: integer
          nullable: true
          minimum: 1
          maximum: 5
          description: 1 to 5 stars; null when Google gives none.
        comment:
          type: string
          nullable: true
          description: The review's text; null for stars only.
        media:
          type: array
          description: Photos and videos the reviewer added.
          items:
            type: object
            required:
              - thumbnail_url
              - video_url
              - label
            properties:
              thumbnail_url:
                type: string
                nullable: true
              video_url:
                type: string
                nullable: true
                description: Set on a video.
              label:
                type: string
                nullable: true
        reviewed_at:
          type: string
          format: date-time
          nullable: true
          description: When it was written, UTC.
        reply_comment:
          type: string
          nullable: true
          description: Your reply; null when there is none.
        reply_updated_at:
          type: string
          format: date-time
          nullable: true
          description: When the reply was written or last changed, UTC.
        reply_source:
          type: string
          nullable: true
          enum:
            - postsyncer
            - google
            - null
          description: >-
            `postsyncer` when the reply was sent from PostSyncer, `google` when
            it was written in Google; null with no reply.
        review_url:
          type: string
          nullable: true
          description: The location on Google Maps, where its reviews are.
    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
  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.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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