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

# Answer comments

> Read a post's comments, find the ones that need a reply, reply as the account, hide or delete them, and leave team notes.

PostSyncer brings the comments on your published posts into one place, per post. You can read them, reply from the account the post went out on, hide or delete them on the network, and talk with your team in notes next to them.

## Before you start

The key needs `comments:read` to read, `comments:create` to reply or write a note, `comments:update` to edit or hide, and `comments:delete` to delete. Its person's role must allow the same in the workspace.

## Which comments come in

| Network | How comments arrive |
| - | - |
| X, LinkedIn, Bluesky, YouTube, Mastodon, Facebook | PostSyncer reads them on a schedule, and when you ask (below). |
| Instagram, Threads | The network sends them to PostSyncer as they're written. |
| TikTok, Pinterest, Telegram, Google Business Profile | Not read. Google reviews have their own [guide](https://docs.postsyncer.com/guides/reviews.md). |

Comments on a Facebook Story aren't read: Facebook gives no way to read them.

The schedule reads a post an hour after it goes out, then every 6 hours for its first day, then once a day until it's 7 days old. A post with comment moderation on is read every 2 hours for its first 3 days (7 on YouTube). X is read less: 2 hours after the post goes out, then once a day until day 2. On Free, X comments come from a daily allowance: see [Plan limits](https://docs.postsyncer.com/plan-limits.md#x-comments-on-free).

## Read a post's comments

[List comments](https://docs.postsyncer.com/api-reference/comments/list.md) needs `post_id`. Reading the first page of a post's social comments reads its networks first, so it's current.

```bash theme={null}
curl "https://postsyncer.com/api/v1/comments?post_id=92731" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json theme={null}
{
  "data": [
    {
      "id": 70412,
      "post_id": 92731,
      "parent_comment_id": null,
      "source": "SOCIAL",
      "platform": "instagram",
      "author_name": "Rowan Example",
      "content": "Is the oat milk extra?",
      "needs_reply": true,
      "is_hidden_on_platform": false,
      "is_deleted_on_platform": false,
      "account_id": 16235,
      "created_at": "2030-03-15T10:12:00.000000Z"
    }
  ],
  "pagination": { "current_page": 1, "last_page": 1, "per_page": 20, "total": 1, "has_more_pages": false }
}
```

* `source` is `SOCIAL` by default: comments from the networks. `INTERNAL` lists team notes, with approval and share-link comments.
* Filter with `provider` (a network), `is_resolved`, `is_approved` and `include_replies` (`true` or `false`). `per_page` is 1 to 100, 20 by default.
* See [Pagination](https://docs.postsyncer.com/pagination.md) to read every page.

### Ask for a fresh read

[Sync comments](https://docs.postsyncer.com/api-reference/comments/sync.md) reads every published row of a post now. Each row in the answer says whether it was read:

| `reason` | Meaning |
| - | - |
| `null` | Read. On Instagram and Threads, which send their comments to PostSyncer on their own, and on TikTok, Pinterest, Telegram and Google Business Profile, nothing is read even so. |
| `not_published` | The row isn't live, so there's nothing to read. |
| `read_recently` | A read was started in the last few minutes (5 on X, 2 elsewhere), even one that failed, or is running now, so it wasn't tried again. |
| `free_daily_limit` | On Free, today's X reads are used up. X is read again after midnight UTC. |

`comments_withheld` counts comments a network said it has but didn't share, for example because of privacy settings.

## Find what needs a reply

A comment has `needs_reply: true` when it's a top-level comment from someone outside the workspace, still shown on the network, has a question mark in it, and has no reply from the workspace yet.

[Comment summary](https://docs.postsyncer.com/api-reference/comments/summary.md) (`GET /posts/{id}/comments/summary`) counts them for a post, with the team threads waiting on the key's person:

```json theme={null}
{ "needs_reply": 1, "team_waiting": 0 }
```

To hear about new comments without polling, subscribe a [webhook](https://docs.postsyncer.com/api-reference/webhooks/create.md) to `comment.received`. It carries the post's `id`, the `account` and the comment's author, text and media, but no comment id: list the post's comments to find it. [Webhook events](https://docs.postsyncer.com/webhooks/events.md) shows each event.

## Reply as the account

Create a comment with `parent_comment_id` set to the comment you answer. The reply goes out from the account the post was published on. You don't pick the account.

```bash theme={null}
curl -X POST "https://postsyncer.com/api/v1/comments" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "post_id": 92731,
    "parent_comment_id": 70412,
    "content": "No, oat milk is the same price at Halden Coffee."
  }'
```

* It answers `201` with the reply, then sends it to the network. If the network refuses it, the reply is removed. Read the comments again to see it went out.
* A reply needs `content`, `media` or both. `media` takes up to 10 pictures or videos, as library ids or links. Documents can't go in comments.
* Replies go out on Facebook, Instagram, Threads, X, YouTube, LinkedIn, Bluesky and Mastodon.
* [Update comment](https://docs.postsyncer.com/api-reference/comments/update.md) changes PostSyncer's copy only. The network keeps the words it got. Only the comment's author can edit it.

## Hide or delete a comment

[Hide a comment](https://docs.postsyncer.com/api-reference/comments/hide.md) with `PATCH /comments/{id}/hide` and `"hidden": true`. Hiding never deletes it.

| Network | Hide | Show again (`"hidden": false`) |
| - | - | - |
| Facebook, Instagram | Yes | Yes |
| YouTube | Yes: held for review | Yes: published |
| Threads, X | Yes | No |
| LinkedIn, Bluesky, Mastodon | No: delete it instead | No |
| TikTok, Pinterest, Telegram, Google Business Profile | No | No |

On a network that can't hide, the answer is `422`, such as `LinkedIn can't hide comments. Delete the comment instead.`, and nothing is sent. When a network that can hide doesn't, the answer is `422` with `<Network> did not hide the comment.` and its reason when it gave one. If the account needs reconnecting, a hide on Facebook, Instagram or Threads answers `500`: reconnect it, then try again. YouTube needs the channel to allow comment access: reconnect it if the answer says so.

[Delete comment](https://docs.postsyncer.com/api-reference/comments/delete.md) acts on a social comment on Facebook, Instagram, Threads, X, YouTube, LinkedIn, Bluesky and Mastodon. The comment stays in PostSyncer: `is_deleted_on_platform: true` when it was removed, `is_hidden_on_platform: true` when it was hidden instead. On Bluesky, someone else's reply is marked deleted though it stays up. A deleted comment can't be shown again.

| Network | What a delete does | When it doesn't happen |
| - | - | - |
| Facebook, Instagram | Deletes the comment. One already gone from the network counts as deleted. | `422` with the network's reason |
| Threads | Deletes a reply sent from PostSyncer or written by the account. Hides anyone else's. | `500` |
| X | Deletes a reply the account wrote on X. Hides any other comment, a reply sent from PostSyncer included. | `200`, nothing changes |
| YouTube | Deletes the channel's own comment. Rejects anyone else's, which removes it for good. | `200`, nothing changes |
| LinkedIn | Asks LinkedIn to delete the comment, as the account. | `200`, nothing changes |
| Bluesky | Deletes a reply the account wrote, one sent from PostSyncer included. Anyone else's reply stays on Bluesky, but PostSyncer still marks it `is_deleted_on_platform: true`. | `200`, nothing changes |
| Mastodon | Deletes a reply the account wrote, one sent from PostSyncer included. Mastodon refuses to delete anyone else's, so it stays. | `200`, nothing changes |

If the account needs reconnecting, a delete on Facebook, Instagram, Threads, LinkedIn or Mastodon answers `422` with `Token expired or platform post not found`. On X, YouTube and Bluesky it answers `200` and changes nothing. Every `200` says `Comment deleted successfully`, so read the comment with [Get comment](https://docs.postsyncer.com/api-reference/comments/get.md) to see what happened.

## Team notes

A comment with no `parent_comment_id` is a team note on the post: `source` is `INTERNAL`, and it never goes to a network. Notes work on every plan.

```json theme={null}
{
  "post_id": 92731,
  "content": "Can we answer the oat milk questions before noon?",
  "mentions": [318]
}
```

* `mentions` takes workspace members' ids, up to 50. [List people](https://docs.postsyncer.com/api-reference/comments/people.md) (`GET /posts/{id}/people`) gives the ids. A mentioned person gets a `comment.mentioned` event.
* `quote` (up to 500 characters) quotes part of the post. `anchor` ties the note to one thread item or network.
* `is_resolved` and `is_approved` mark where a note stands. Set them when you create the note, as JSON `true` or `false`. `PUT /comments/{id}` doesn't change them.
* Quotes and mentions are for team notes only. On a reply to a social comment, they're refused.
* Deleting a note removes it from PostSyncer. Only its author can edit or delete it.

## With MCP

The MCP tools do the same, with the same permissions: `list-comments`, `get-comment`, `sync-comments-from-platforms`, `create-comment`, `update-comment`, `hide-comment`, `delete-comment`, `list-post-people` and `get-comment-summary`. See the [MCP tools reference](https://docs.postsyncer.com/mcp/tools-reference.md).

## Related

> [card] [Comments overview](https://docs.postsyncer.com/api-reference/comments/overview.md)
>
> The comment endpoints and the comment object.

> [card] [Answer Google reviews](https://docs.postsyncer.com/guides/reviews.md)
>
> Reviews on Google Business Profile locations.


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