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

# Sync comments from the networks

> Read a post's comments from its networks now, and see per copy what was read.

> [!NOTE]
>
> Needs `comments:read`. See [Permissions](/docs/essentials/authentication.md#permissions).

Reads the comments of each published copy of the post in `post_id`, as page 1 of [List comments](/docs/api-reference/comments/list.md) does, then says per copy what happened in `platform_posts`. A row with `synced: false` has its `reason`: `not_published`, `read_recently` (a read was started in the last 2 minutes, X: 5, even one that failed, or is running now) or `free_daily_limit`.

X, LinkedIn, Bluesky, YouTube, Mastodon and Facebook (not Facebook Stories) are read. Instagram and Threads send their comments as they are written, and TikTok, Pinterest, Telegram and Google Business Profile comments are not read, so `synced: true` on those copies means only that nothing stopped the read. On Free, once today's X allowance is used up, `not_read` has `{ "platform": "twitter", "reason": "free_daily_limit" }`; see [Plan limits](/docs/plan-limits.md#x-comments-on-free). On Facebook, `comments_withheld` counts the comments Facebook counts but didn't return: hidden by privacy settings, deleted, or the account must be reconnected to give comment access.

## 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 | | The post isn't in a workspace the key can reach. | No. |
| 422 | | `post_id` is missing, or no post has it. | No: fix the request. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [List comments](/docs/api-reference/comments/list.md): what was read.
* [Answer comments](/docs/guides/comments.md#ask-for-a-fresh-read): when to ask for a read.


## OpenAPI

````yaml POST /comments/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.
  - name: Billing
    description: >-
      The owner's plan, invoices and the links that pay for, change or cancel
      it.
  - name: Team
    description: A workspace's teammates and invitations, and their roles.
  - name: Notifications
    description: >-
      Your bell and notification settings, and the workspace's Slack, Discord
      and Telegram channels.
  - name: Blog-to-social
    description: Blog feeds that turn a workspace's new articles into posts.
  - name: Products
    description: Products the workspace's posts can promote.
  - name: Contacts
    description: People who commented on the workspace's posts, and the lists they are on.
  - name: Profile
    description: 'The key''s user: their name and sign-in email.'
  - name: API keys
    description: 'Your API keys: listing and deleting them.'
  - name: Agent sign-up
    description: >-
      An AI agent signs a person up with a code emailed to them, and gets their
      first key. No key needed.
paths:
  /comments/sync:
    post:
      tags:
        - Comments
      summary: Sync comments from the networks
      description: >-
        Needs `comments:read`. Reads the comments of a post's published copies
        from their networks now, as List comments does on its first page, and
        says per copy what happened. X, LinkedIn, Bluesky, YouTube, Mastodon and
        Facebook (not Facebook Stories) are read; Instagram and Threads send
        their comments to PostSyncer as they are written; TikTok, Pinterest,
        Telegram and Google Business Profile comments are not read. A copy whose
        read was started in the last 2 minutes (X: 5), even one that failed, or
        is running now, is not read again. `synced: true` on Instagram, Threads,
        TikTok, Pinterest, Telegram and Google Business Profile copies means
        only that nothing stopped the read: none is made there. On Free, X
        comments are read from a daily allowance shared by all Free posts; once
        today's is used up, the comments already saved are listed and X is read
        again after midnight UTC. `not_read` then has `{ "platform": "twitter",
        "reason": "free_daily_limit" }`. The answer's `message` says the same in
        words.
      operationId: syncComments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - post_id
              properties:
                post_id:
                  type: integer
                  description: The post. It must be in a workspace the key can reach.
            examples:
              default:
                summary: One post
                value:
                  post_id: 4182
      responses:
        '200':
          description: 'What was read: a row per copy, and the networks that weren''t read.'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - data
                properties:
                  message:
                    type: string
                    description: >-
                      What happened, in words: it adds a sentence when a copy
                      was read recently, when Facebook withheld comments, and
                      when Free X reads are used up.
                  data:
                    type: object
                    required:
                      - post_id
                      - platform_posts
                      - not_read
                    properties:
                      post_id:
                        type: integer
                      platform_posts:
                        type: array
                        items:
                          $ref: '#/components/schemas/CommentSyncRow'
                      not_read:
                        type: array
                        description: >-
                          Networks left unread for a reason of the network or
                          the plan, once each. Today only `free_daily_limit` on
                          X.
                        items:
                          type: object
                          required:
                            - platform
                            - reason
                          properties:
                            platform:
                              type: string
                            reason:
                              type: string
                              enum:
                                - free_daily_limit
              examples:
                default:
                  summary: Instagram arrives by itself, LinkedIn read now
                  value:
                    message: >-
                      Comment sync finished. Published platform posts were
                      refreshed from their networks.
                    data:
                      post_id: 4182
                      platform_posts:
                        - platform_post_id: 7801
                          provider: instagram
                          synced: true
                          reason: null
                          comments_withheld: null
                        - platform_post_id: 7802
                          provider: linkedin
                          synced: true
                          reason: null
                          comments_withheld: null
                      not_read: []
                read_recently:
                  summary: A copy read a minute ago
                  value:
                    message: >-
                      Comment sync finished. Published platform posts were
                      refreshed from their networks. Platform posts read in the
                      last few minutes were not read again (X: 5 minutes,
                      others: 2).
                    data:
                      post_id: 4182
                      platform_posts:
                        - platform_post_id: 7801
                          provider: instagram
                          synced: true
                          reason: null
                          comments_withheld: null
                        - platform_post_id: 7802
                          provider: linkedin
                          synced: false
                          reason: read_recently
                          comments_withheld: null
                      not_read: []
                free_x:
                  summary: 'Free: today''s X reads are used up'
                  value:
                    message: >-
                      Comment sync finished. Published platform posts were
                      refreshed from their networks. Some networks counted
                      comments they withheld (comments_withheld): hidden by
                      privacy settings, deleted, or the account must be
                      reconnected to grant comment access. X was not read
                      (not_read): posts on the Free plan get a set number of X
                      comment reads a day, and today's are used up. The comments
                      already saved are still listed. X is read again after
                      midnight UTC.
                    data:
                      post_id: 4190
                      platform_posts:
                        - platform_post_id: 7830
                          provider: twitter
                          synced: false
                          reason: free_daily_limit
                          comments_withheld: null
                        - platform_post_id: 7831
                          provider: facebook
                          synced: true
                          reason: null
                          comments_withheld: 2
                      not_read:
                        - platform: twitter
                          reason: free_daily_limit
        '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: '`post_id` is missing, or no post has it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              examples:
                post_id_missing:
                  summary: No post_id
                  value:
                    message: The post id field is required.
                    errors:
                      post_id:
                        - The post id field is required.
                post_id_unknown:
                  summary: No post with that id
                  value:
                    message: The selected post id is invalid.
                    errors:
                      post_id:
                        - The selected post id is invalid.
        '429':
          $ref: '#/components/responses/RateLimited429'
components:
  schemas:
    CommentSyncRow:
      type: object
      description: >-
        One copy of the post (a `platforms[]` row): whether its comments were
        read from the network now.
      required:
        - platform_post_id
        - provider
        - synced
        - reason
        - comments_withheld
      properties:
        platform_post_id:
          type: integer
          description: The copy's id (`platforms[].id` on the post).
        provider:
          type: string
          description: The network, like `facebook`.
        synced:
          type: boolean
          description: >-
            False when `reason` says why the copy was not read. True otherwise,
            but on Instagram, Threads, TikTok, Pinterest, Telegram and Google
            Business Profile nothing is read from the network either way.
        reason:
          type: string
          nullable: true
          enum:
            - not_published
            - read_recently
            - free_daily_limit
            - null
          description: >-
            `not_published`: the copy isn't published, or has no id on the
            network. `read_recently`: a read was started in the last 2 minutes
            (X: 5), even one that failed, or is running now, so it wasn't tried
            again. `free_daily_limit`: an X copy on Free, and today's Free X
            reads are used up. Null when it was read.
        comments_withheld:
          type: integer
          nullable: true
          description: >-
            Facebook only: comments Facebook counts but didn't return (hidden by
            privacy settings, deleted, or the account must be reconnected to
            give comment access). Null on the other networks.
    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.
        error:
          type: string
          description: >-
            A code a few errors add, such as `rate_limited`. See [Handle
            errors](/essentials/error-handling#answers-with-an-error-code).
    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.