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

# Work through the Inbox

> One list of a workspace's comments, mentions and Google reviews: find what needs a reply, draft or answer it, and mark the rest done. The routine an agent runs.

The Inbox puts a workspace's comments, mentions and Google reviews in one list, newest first. An agent reads the whole workspace at once, with no post to walk, and reads only what is new on its next run. The app shows the same list on its Inbox page, and the sidebar's number is the list's count of what needs a reply.

## Before you start

The key needs `comments:read` to read the Inbox, `comments:update` to mark items done, give them to a teammate and leave drafts, and `comments:create` to reply to a comment or a mention and to leave team notes. A reply to a Google review needs `comments:update`. Its person's role must allow the same in the workspace: a Client reads the Inbox and writes team notes, and changes nothing else in it.

The Inbox works on every plan. AI drafts spend the workspace's AI credits, 1 each; on Free, AI drafts of reviews are on paid plans.

## What comes in

| Kind | What it is | How it arrives |
| - | - | - |
| `comment` | A top-level comment on one of your posts, with the replies under it. | As [Answer comments](/docs/guides/comments.md#which-comments-come-in) says. |
| `mention` | Someone else's post or comment that names one of your accounts. | Read on a schedule: see [Mentions on each network](#mentions-on-each-network). |
| `review` | A Google review of one of your locations. | Read every 30 minutes, as [Answer Google reviews](/docs/guides/reviews.md) says. |

An item is **open** while the newest message in it is someone else's and nobody on the team has answered it. Every one counts, a question or not. It becomes **done** when:

* someone replies from PostSyncer, or the account replies on the network itself;
* someone marks it done: for what needs no words;
* its comment is hidden or deleted.

A new message from them in the same item opens it again, and so does your reply being deleted on the network when it was the only answer. Open items are what the app calls Needs reply, and the sidebar counts them.

An item can join another. When PostSyncer learns that a comment is a reply in a conversation, or that a mention is a comment on one of your posts, its item goes into the conversation's item: its team notes move there, and its assignee and draft too when that item has none. The old item's id then answers `404` with `{"message": "This item is now part of item 123. Use that id.", "moved_to": 123}` for someone who can open item `moved_to`: read or change that one instead.

When the Inbox started, it took in the comments of the 30 days before and every review without a reply. Older comments aren't in it.

## Mentions on each network

| Network | What comes in | How often |
| - | - | - |
| X | Posts that @mention the account, and replies to its replies under other people's posts | Every 15 minutes, on the paid plans only (not on Free) |
| Bluesky | Posts that mention or quote the account, and replies to its replies under other people's posts | Every 15 minutes |
| Mastodon | Posts that mention the account, and replies to its replies under other people's posts | Every 15 minutes |
| LinkedIn | Posts that mention a Page you connected (Pages only). A Page whose account has `mentions_reconnect: true` must be reconnected first. | Every 30 minutes |
| Facebook | Public posts that tag the Page | Every 30 minutes |
| TikTok | Posts that mention the account in their caption, and comments that mention it, for an account on TikTok's business app (`connection: business`) that has TikTok's Advanced Access or is a verified business account. An account whose `mentions_reconnect` is `true` must be reconnected first. | Once a day (TikTok gives them 24 to 48 hours late) |
| Instagram, Threads | Not read yet. | |
| YouTube, Pinterest, Google Business Profile, Telegram, Slack, Discord | Not read: these networks give apps no mentions. | |

A reply anywhere in the thread of one of your own posts is a comment, never also a mention, even when it names your account. Your own accounts' posts aren't mentions either.

The first read of an account's mentions brings in the ones from before, as many as one read takes, as open items. Those written more than 24 hours earlier don't send [`mention.received`](/docs/webhooks/events#mention-received); after that first read, every new mention does. When a network refuses an account's mentions for good (a Facebook Page without the permission, a LinkedIn Page whose role or app doesn't give them), PostSyncer tries that account once a day instead of at every read, until a read works again. When a busy account gets more mentions in one stretch than a read takes, the next reads catch up on the rest, so none is skipped; its newest mentions can then come a run or two later. On X, Bluesky, Mastodon, LinkedIn, Facebook and TikTok, you can [reply to a mention](/docs/api-reference/mentions/reply.md) from the account: on LinkedIn and Facebook, as the Page; on TikTok, to a comment that mentions the account, since TikTok lets apps comment only on the account's own videos, not on a video that names it in its caption.

## Triage the Inbox

The routine an agent runs, each morning or every few minutes:

**1. Read the summary**

[Get the inbox summary](/docs/api-reference/inbox/summary.md) gives the open items in all, how many have a draft waiting (`ready`), how many are given to you (`mine`), and the counts by kind, network and account. With `open` at `0`, there's nothing to do.

```bash theme={null}
curl "https://postsyncer.com/api/v1/inbox/summary?workspace_id=12" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

**2. List what waits without a draft**

[List the inbox](/docs/api-reference/inbox/list.md) with `status=open` and `ready=false`: the items that need a reply and that nobody drafted yet. Add `kind`, `platform`, `account_id`, `tag` or `assignee=me` to narrow it.

```bash theme={null}
curl "https://postsyncer.com/api/v1/inbox?workspace_id=12&status=open&ready=false" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

**3. Draft, reply or mark done**

For each item, read `text`, `thread`, `about` and `person`, then do one of these. `text` is their words, and each link is whole, as the person meant it. A mention also carries the post it quotes (`quoted`, on Bluesky, X and Mastodon) and its link card (`link_preview`, on Bluesky, Mastodon and LinkedIn). `about.from` says who wrote the post the item is about or under: `us` (your post, or your own reply a mention answers) or `them`, named in `about.author_name`.

* **Leave a draft** for the team to send: [update the item](/docs/api-reference/inbox/update.md) with `draft`, or have PostSyncer AI [write one](/docs/api-reference/inbox/draft.md) in the brand's voice.
* **Reply now**, when the user asked you to: see [Answer an item](#answer-an-item). Keep it within `reply_limit`. A reply is public, so use the user's words or show it to them first.
* **Mark it done** when it needs no words, such as a thank-you: [update the item](/docs/api-reference/inbox/update.md) with `"status": "done"`, or [mark many done](/docs/api-reference/inbox/done.md) at once.
* **Give it to a teammate** who should answer: `assignee_id` on the update, and a [team note](/docs/api-reference/inbox/notes.md) to say why.

When `can.reply` is `false`, nobody can answer the item from PostSyncer, and `cant_reply_reason` says why: a mention the network takes no reply to from apps, or a comment hidden or deleted on its network (`source.hidden`). Tell the user, with `links.open_on_network`. AI drafts skip these items and charge nothing for them.

**4. Next time, read only what's new**

Note the time just before each run, and send it as `since` on the next one: it lists the items PostSyncer read since then, even a review or a mention read late, whose `last_activity_at` is older. An item read at exactly that time comes again, so skip the ids you've handled. Send `status=all` to see the ones answered since too. For more than one page, send `meta.next_cursor` back as `cursor`.

```bash theme={null}
curl "https://postsyncer.com/api/v1/inbox?workspace_id=12&status=all&since=2030-03-15T09:00:00Z" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Answer an item

Each kind is answered where it lives. The id to use is in the item's `source`:

| Kind | Reply with | Send |
| - | - | - |
| `comment` | [Create a comment](/docs/api-reference/comments/create.md) | `post_id` (the item's `about.post_id`), `parent_comment_id` (`source.comment_id`) and `content` |
| `mention` | [Reply to a mention](/docs/api-reference/mentions/reply.md) | `POST /mentions/{source.mention_id}/reply` with `text` |
| `review` | [Reply to a review](/docs/api-reference/reviews/reply.md) | `PUT /reviews/{source.review_id}/reply` with `comment` |

```bash theme={null}
curl -X POST "https://postsyncer.com/api/v1/mentions/2207/reply" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Yes! We open at 8 on Sundays." }'
```

A reply that goes out marks the item done, with `done_how: replied`. A reply the network refuses leaves it open. Your replies under a mention show in its `thread` with their `state`: `sending` until the network answers, then `sent`, or `refused` with the network's reason in `error`.

## Drafts never send

A draft waits on the item until a person sends it from the app, or you send it on purpose with the reply above. A reply PostSyncer takes to send clears the draft, from the app, the API or MCP alike. If the network refuses a comment reply, its words come back as the draft (`by: person`), unless someone wrote a newer one; a refused mention reply stays in `thread` with its `error`. The app shows a draft as Ready to send, with who wrote it:

| `draft.by` | Written by |
| - | - |
| `agent` | An AI agent or script, through the API or MCP. `draft.agent` names the AI app (such as `Claude`), or else the key. |
| `ai` | PostSyncer AI, from [Draft a reply with AI](/docs/api-reference/inbox/draft.md) or the app. |
| `snippet` | A saved snippet; `draft.agent` is its name. |
| `person` | A teammate typing in the app. |

Nothing is drafted as items come in, so no credits go on items nobody answers. A PostSyncer AI draft costs 1 AI credit and also tags the item `lead`, `complaint` or `praise` when it reads as one. PostSyncer AI's draft reads what the message shares: the post it quotes, its link card and up to 3 pages its links lead to. Still 1 credit. [Draft replies for many items](/docs/api-reference/inbox/draft-many.md) asks for up to 50 at once. To find the items with a draft waiting, list with `ready=true`.

## Hear about new items

To hear about new items without polling, subscribe a [webhook](/docs/api-reference/webhooks/create.md) to these events. [Webhook events](/docs/webhooks/events.md) shows each one's `data`.

| Event | Sent when |
| - | - |
| [`comment.received`](/docs/webhooks/events#comment-received) | Someone commented on a published post. |
| [`mention.received`](/docs/webhooks/events#mention-received) | Someone mentioned one of your accounts. Its `id` is the mention's, for [Reply to a mention](/docs/api-reference/mentions/reply.md). An account's first read sends it only for mentions from the last 24 hours. |
| [`review.received`](/docs/webhooks/events#review-received) | A new Google review came in. |
| [`inbox.assigned`](/docs/webhooks/events#inbox-assigned) | An item was given to a teammate. |
| [`inbox.updated`](/docs/webhooks/events#inbox-updated) | An item became done or open again, was given to someone, or got a draft from an agent or PostSyncer AI. |

## With MCP

The MCP tools do the same, with the same permissions: `get-inbox-summary`, `list-inbox`, `get-inbox-item`, `update-inbox-item`, `mark-inbox-done`, `add-inbox-note`, `draft-inbox-reply`, `draft-inbox-replies` and `reply-to-mention`, with `create-comment` and `reply-to-review` for the other replies. The item tools take the item's `id` as `item_id`. See the [MCP tools reference](/docs/mcp/tools-reference.md#inbox).

## Related

> [card] [List the inbox](/docs/api-reference/inbox/list.md)
>
> The filters, `since` and the item's fields.

> [card] [Answer comments](/docs/guides/comments.md)
>
> Comments on one post, hides and deletes.


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