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

# List the inbox

> Get a workspace's comments, mentions and Google reviews in one list, the ones that need a reply first.

> [!NOTE]
>
> Needs `comments:read`. Your role in the workspace must also let you see public comments; a Client's does. See [Permissions](/docs/essentials/authentication.md#permissions).

Gives the workspace in `workspace_id` as one list: comments on your posts, posts and comments on the networks that mention your accounts, and Google reviews of your locations. Newest activity comes first, 25 a page. You don't walk posts: one call covers every account.

Open items come by default: the ones that need a reply. An item is open while the newest message in it is someone else's and nobody on the team has answered, marked it done, hidden or deleted it. It becomes done when the team replies, from PostSyncer or on the network, and a new message from them opens it again. With `status=open` and no other filter, `meta.total` is the number the app's sidebar shows (the sidebar shows 99+ past 99).

Each item carries what it takes to answer it: the words with each link whole, the post a mention quotes (`quoted`) and its link card (`link_preview`), the messages under it (`thread`), your post or the post that mentions you and who wrote it (`about`), the account a reply goes out from, the person and their contact card, `tags`, the draft waiting, what you may do (`can`), why no app can answer it when that is so (`cant_reply_reason`), and the network's reply length (`reply_limit`). [Get an inbox item](/docs/api-reference/inbox/get.md) describes every field.

## Filters

| Filter | What it keeps |
| - | - |
| `status` | `open` (the default), `done`, or `all`. |
| `ready` | `true`: items with a draft waiting to be sent. `false`: items without one. |
| `assignee` | `me`, or a teammate's user id. |
| `kind` | `comment`, `mention` or `review`. |
| `account_id`, `platform`, `post_id` | One account, one network (X is `twitter`, and `x` works too), or one post's comments. |
| `tag` | `question`, `lead`, `complaint`, `praise` or `spam`. Several, comma-separated (`question,lead`) or repeated (`tag[]=question&tag[]=lead`), keep items with any of them. |
| `q` | A search, from 2 characters, of the person's name and handle, what they wrote, and the post it's about: your post's text, or for a mention in a comment, the post above it. |
| `since` | Items PostSyncer read at or after this time (ISO 8601): a new message, or the newest one going away. |

`ready` takes the words `true` and `false`.

## Only what's new, page by page

Note the time just before each call, and send it as `since` on your next one. `since` goes by when PostSyncer read an item's newest message, not when it was written on the network, so a review or a mention that PostSyncer reads late still comes, even when its `last_activity_at` is older than `since`. An item read at exactly that time comes again, so skip the ids you have. The order and `cursor` stay on `last_activity_at`. To read on past the first page, send `meta.next_cursor` back as `cursor` with the same filters. `next_cursor` is `null` on the last page. `meta.total` counts the matching items up to 1,000.

`meta.counts` gives the workspace's open items whatever the filters: `open` in all, `ready` with a draft waiting, and `mine` given to the key's user. It comes with the first page only: on a page read with `cursor`, it is `null`.

Each count in `meta.counts` and in the summary (`open`, `ready`, `mine`, `by_kind`, `by_platform`, `by_account`) is counted up to 100: 100 means 100 or more, as the sidebar shows 99+. `meta.total` is counted up to 1,000.

It reads what PostSyncer has saved and changes nothing. Comments come in as [Answer comments](/docs/guides/comments.md#which-comments-come-in) says; mentions and reviews as [Work through the Inbox](/docs/guides/inbox.md#what-comes-in) says. Works on every plan.

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `comments:read`, its user is inactive, or your role can't see public comments. | No: grant it in Settings → API. |
| 422 | | `workspace_id` is missing or not one the key can reach, a filter isn't one of its values, `q` is under 2 characters, or `cursor` isn't one the list gave. | No: fix the request. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [Get the inbox summary](/docs/api-reference/inbox/summary.md): the counts, before you list.
* [Update an inbox item](/docs/api-reference/inbox/update.md): mark it done, give it to a teammate, or leave a draft.
* [Work through the Inbox](/docs/guides/inbox.md): the whole routine for an agent.


## OpenAPI

````yaml GET /inbox
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 14 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: Inbox
    description: >-
      Comments, mentions and Google reviews in one list: what needs a reply,
      drafts, who answers what, team notes, and replies to mentions.
  - 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:
  /inbox:
    get:
      tags:
        - Inbox
      summary: List the inbox
      description: >-
        Needs `comments:read`. Your role in the workspace must also let you see
        public comments; a Client's does. Gives the workspace's comments,
        mentions and Google reviews as one list, newest activity first, with no
        `post_id` to walk. Each item has what it takes to answer it: the words,
        the messages under it, the post it is on or the post that mentions you,
        the account, the person, tags, the draft waiting, what you may do, and
        the network's reply length. Open items by default: the ones that need a
        reply. With `status=open` and no other filter, `meta.total` is the
        number the app's sidebar shows. To read only what is new, send `since`.
        Page on with `cursor`. It reads what PostSyncer has saved and changes
        nothing. Works on every plan.
      operationId: listInbox
      parameters:
        - name: workspace_id
          in: query
          required: true
          description: The workspace. It must be one the key can reach.
          schema:
            type: integer
            example: 12
        - name: status
          in: query
          required: false
          description: >-
            `open` (the default): what needs a reply. `done`: answered, marked
            done, hidden or deleted. `all`: both.
          schema:
            type: string
            enum:
              - open
              - done
              - all
            default: open
        - name: ready
          in: query
          required: false
          description: >-
            `true` keeps the items with a draft waiting to be sent (Ready to
            send in the app), `false` the ones without.
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
        - name: assignee
          in: query
          required: false
          description: '`me`, or a teammate''s user id: the items given to them.'
          schema:
            type: string
            example: me
        - name: kind
          in: query
          required: false
          description: Only comments, only mentions or only reviews.
          schema:
            type: string
            enum:
              - comment
              - mention
              - review
        - name: account_id
          in: query
          required: false
          description: Only this account's items.
          schema:
            type: integer
        - name: platform
          in: query
          required: false
          description: >-
            Only this network's items, like `instagram`. X is `twitter` (`x`
            works too); Google reviews are `google_business`.
          schema:
            type: string
        - name: tag
          in: query
          required: false
          description: >-
            Items with this tag: `question`, `lead`, `complaint`, `praise` or
            `spam`. For any of several, comma-separated (`question,lead`) or
            repeated (`tag[]=question&tag[]=lead`).
          schema:
            type: string
            example: question
        - name: post_id
          in: query
          required: false
          description: Only the comments on this post.
          schema:
            type: integer
        - name: q
          in: query
          required: false
          description: >-
            Search, from 2 characters: the person's name or handle, what they
            wrote, and the post's text.
          schema:
            type: string
            minLength: 2
            maxLength: 200
        - name: since
          in: query
          required: false
          description: >-
            Only items PostSyncer read at or after this time (ISO 8601): a new
            message, from them or from you, or the newest one going away. Send
            the time of your last call, taken just before you made it. It goes
            by when PostSyncer read the message, not when it was written, so a
            review or a mention read late still comes, and an item can come
            whose `last_activity_at` is older than `since`. An item read at
            exactly that time comes again, so skip the ids you have.
          schema:
            type: string
            format: date-time
            example: '2030-03-15T09:00:00Z'
        - name: cursor
          in: query
          required: false
          description: The page before's `meta.next_cursor`. Send the same filters with it.
          schema:
            type: string
        - name: per_page
          in: query
          required: false
          description: 1 to 100. Default 25.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
      responses:
        '200':
          description: A page of items, newest activity first.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/InboxThread'
                  meta:
                    type: object
                    required:
                      - total
                      - next_cursor
                      - counts
                    properties:
                      total:
                        type: integer
                        description: How many items match the filters, counted up to 1,000.
                      next_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Send it as `cursor` for the next page. Null on the
                          last page.
                      counts:
                        type: object
                        nullable: true
                        description: >-
                          The workspace's open items, whatever the filters:
                          `open` in all (the sidebar's number), `ready` with a
                          draft waiting, `mine` given to the key's user. On the
                          first page only: `null` on a page read with `cursor`.
                          Each count in `meta.counts` and in the summary
                          (`open`, `ready`, `mine`, `by_kind`, `by_platform`,
                          `by_account`) is counted up to 100: 100 means 100 or
                          more, as the sidebar shows 99+. `meta.total` is
                          counted up to 1,000.
                        required:
                          - open
                          - ready
                          - mine
                        properties:
                          open:
                            type: integer
                          ready:
                            type: integer
                          mine:
                            type: integer
              examples:
                default:
                  summary: A comment with a draft, and a mention given to a teammate
                  value:
                    data:
                      - id: 8812
                        kind: comment
                        status: open
                        done_how: null
                        done_at: null
                        done_by: null
                        account:
                          id: 301
                          platform: instagram
                          username: haldencoffee
                          name: Halden Coffee
                          avatar: >-
                            https://cdn.postsyncer.com/examples/halden-coffee.jpg
                        person:
                          name: Rowan Example
                          handle: rowan.example
                          avatar: null
                          platform_user_id: '17841400000000002'
                          contact_id: 501
                          contact:
                            id: 501
                            tags:
                              - Customer
                            email: null
                            interactions: 4
                            first_seen: '2030-02-11T17:40:00.000000Z'
                            last_seen: '2030-03-15T10:12:00.000000Z'
                            lists:
                              - id: 5
                                name: Guide requests
                            notes: []
                          contact_locked: false
                        text: Is the oat milk extra?
                        media: []
                        quoted: null
                        link_preview: null
                        stars: null
                        created_at: '2030-03-15T10:12:00.000000Z'
                        last_activity_at: '2030-03-15T10:12:00.000000Z'
                        unread: true
                        about:
                          type: post
                          post_id: 92731
                          caption: The lavender oat latte is back.
                          url: https://www.instagram.com/p/DHk2mQ7sLtA/
                          thumbnail: https://cdn.postsyncer.com/examples/latte-art.jpg
                          stats: null
                          from: us
                          author_name: Halden Coffee
                        thread: []
                        notes: []
                        tags:
                          - question
                        assignee: null
                        draft:
                          text: >-
                            No, oat milk is the same price as dairy at Halden
                            Coffee.
                          by: agent
                          agent: Claude
                          at: '2030-03-15T10:20:00.000000Z'
                        can:
                          reply: true
                          hide: true
                          delete: true
                          assign: true
                          draft: true
                          note: true
                        cant_reply_reason: null
                        reply_limit: 2200
                        source:
                          comment_id: 70412
                          hidden: false
                        links:
                          open_on_network: https://www.instagram.com/p/DHk2mQ7sLtA/
                      - id: 8815
                        kind: mention
                        status: open
                        done_how: null
                        done_at: null
                        done_by: null
                        account:
                          id: 303
                          platform: twitter
                          username: haldencoffee
                          name: Halden Coffee
                          avatar: >-
                            https://cdn.postsyncer.com/examples/halden-coffee.jpg
                        person:
                          name: Jo Example
                          handle: jo_example
                          avatar: null
                          platform_user_id: '1500000000000000001'
                          contact_id: null
                          contact: null
                          contact_locked: false
                        text: >-
                          Best flat white in town is still @haldencoffee. Do you
                          open early on Sundays?
                        media: []
                        quoted:
                          author_name: Halden Coffee
                          author_handle: haldencoffee
                          text: >-
                            Our Huila flat white is back for the winter:
                            https://haldencoffee.com/menu/huila-flat-white
                          url: >-
                            https://x.com/haldencoffee/status/1899000000000000001
                        link_preview: null
                        stars: null
                        created_at: '2030-03-15T08:41:00.000000Z'
                        last_activity_at: '2030-03-15T08:41:00.000000Z'
                        unread: true
                        about:
                          type: mention_source
                          post_id: null
                          caption: null
                          url: https://x.com/jo_example/status/1900000000000000001
                          thumbnail: null
                          stats: 120 views · 8 likes
                          from: them
                          author_name: Jo Example
                        thread: []
                        notes:
                          - id: 41
                            author:
                              id: 7
                              name: Maya Ortiz
                              avatar: null
                            body: >-
                              @Sam Rivera can you answer this one? Sundays we
                              open at 8.
                            created_at: '2030-03-15T09:02:00.000000Z'
                        tags:
                          - question
                        assignee:
                          id: 9
                          name: Sam Rivera
                          avatar: null
                        draft: null
                        can:
                          reply: true
                          hide: false
                          delete: false
                          assign: true
                          draft: true
                          note: true
                        cant_reply_reason: null
                        reply_limit: 280
                        source:
                          mention_id: 2207
                        links:
                          open_on_network: https://x.com/jo_example/status/1900000000000000001
                    meta:
                      total: 2
                      next_cursor: null
                      counts:
                        open: 2
                        ready: 1
                        mine: 0
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: >-
            The key lacks `comments:read`, its user is inactive, or your role in
            the workspace can't see public comments.
          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.
                role:
                  summary: Your role can't view public comments
                  value:
                    message: >-
                      Your role in the workspace "Halden Coffee" does not allow
                      you to view public comments. Ask the workspace owner or an
                      admin to do it, or to change your role.
        '422':
          description: >-
            `workspace_id` is missing or not one the key can reach, a filter
            isn’t one of its values, `q` is under 2 characters, or `cursor`
            isn’t one the list gave.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              examples:
                workspace_id_missing:
                  summary: No workspace_id
                  value:
                    message: The workspace id field is required.
                    errors:
                      workspace_id:
                        - The workspace id field is required.
                workspace_id_invalid:
                  summary: A workspace the key can’t reach
                  value:
                    message: Invalid workspace ID.
                    errors:
                      workspace_id:
                        - Invalid workspace ID.
                status_unknown:
                  summary: status=unread
                  value:
                    message: The selected status is invalid.
                    errors:
                      status:
                        - The selected status is invalid.
                cursor_unknown:
                  summary: A cursor the list didn’t give
                  value:
                    message: >-
                      This cursor is not one the list gave. Send the next_cursor
                      of the page before.
                    errors:
                      cursor:
                        - >-
                          This cursor is not one the list gave. Send the
                          next_cursor of the page before.
        '429':
          $ref: '#/components/responses/RateLimited429'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://postsyncer.com/api/v1/inbox?workspace_id=12' \
              --header 'Authorization: Bearer <token>'
        - lang: javascript
          label: JavaScript
          source: >-
            const options = {method: 'GET', headers: {Authorization: 'Bearer
            <token>'}};


            fetch('https://postsyncer.com/api/v1/inbox?workspace_id=12',
            options)
              .then(res => res.json())
              .then(res => console.log(res))
              .catch(err => console.error(err));
        - lang: python
          label: Python
          source: |-
            import requests

            url = "https://postsyncer.com/api/v1/inbox?workspace_id=12"

            headers = {"Authorization": "Bearer <token>"}

            response = requests.get(url, headers=headers)

            print(response.text)
        - lang: php
          label: PHP
          source: |-
            <?php

            $curl = curl_init();

            curl_setopt_array($curl, [
              CURLOPT_URL => "https://postsyncer.com/api/v1/inbox?workspace_id=12",
              CURLOPT_RETURNTRANSFER => true,
              CURLOPT_ENCODING => "",
              CURLOPT_MAXREDIRS => 10,
              CURLOPT_TIMEOUT => 30,
              CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
              CURLOPT_CUSTOMREQUEST => "GET",
              CURLOPT_HTTPHEADER => [
                "Authorization: Bearer <token>"
              ],
            ]);

            $response = curl_exec($curl);
            $err = curl_error($curl);

            curl_close($curl);

            if ($err) {
              echo "cURL Error #:" . $err;
            } else {
              echo $response;
            }
components:
  schemas:
    InboxThread:
      type: object
      description: >-
        One item of the Inbox: a comment on one of your posts, a mention of one
        of your accounts, or a Google review, with everything needed to answer
        it.
      required:
        - id
        - kind
        - status
        - done_how
        - done_at
        - done_by
        - account
        - person
        - text
        - media
        - quoted
        - link_preview
        - stars
        - created_at
        - last_activity_at
        - unread
        - about
        - thread
        - notes
        - tags
        - assignee
        - draft
        - can
        - cant_reply_reason
        - reply_limit
        - source
        - links
      properties:
        id:
          type: integer
          description: The item's id, for Get, Update and Mark done.
        kind:
          type: string
          enum:
            - comment
            - mention
            - review
          description: >-
            `comment`: a top-level comment on one of your posts. `mention`:
            someone else’s post or comment that names one of your accounts.
            `review`: a Google review of a location.
        status:
          type: string
          enum:
            - open
            - done
          description: >-
            `open`: it needs a reply. `done`: answered, marked done, hidden or
            deleted. A new message from them opens it again, and so does your
            only reply being deleted on the network.
        done_how:
          type: string
          nullable: true
          enum:
            - replied
            - marked
            - hidden
            - deleted
            - null
          description: >-
            How it became done: `replied` (from PostSyncer or on the network),
            `marked` (Done with no words), `hidden` or `deleted`. Null while
            open.
        done_at:
          type: string
          nullable: true
          format: date-time
          description: When it became done. Null while open.
        done_by:
          type: object
          nullable: true
          description: >-
            The teammate who closed it. Null while open, and when the account
            answered on the network itself.
          required:
            - id
            - name
          properties:
            id:
              type: integer
            name:
              type: string
        account:
          type: object
          description: 'Your account it is for: the one a reply goes out from.'
          required:
            - id
            - platform
            - username
            - name
            - avatar
          properties:
            id:
              type: integer
            platform:
              type: string
              description: '`instagram`, `twitter` (X), `google_business` and so on.'
            username:
              type: string
              nullable: true
            name:
              type: string
              nullable: true
            avatar:
              type: string
              nullable: true
        person:
          type: object
          description: Who wrote it, and what PostSyncer holds about them.
          required:
            - name
            - handle
            - avatar
            - platform_user_id
            - contact_id
            - contact
            - contact_locked
          properties:
            name:
              type: string
              description: Their name. Empty for an anonymous review.
            handle:
              type: string
              nullable: true
              description: Their handle on the network, without the @. Null on a review.
            avatar:
              type: string
              nullable: true
              description: A link to their photo.
            platform_user_id:
              type: string
              nullable: true
              description: Their id on the network, when it gives one.
            contact_id:
              type: integer
              nullable: true
              description: >-
                Their contact, for [Get a contact](/api-reference/contacts/get).
                Null when they have none.
            contact:
              type: object
              nullable: true
              description: >-
                Their contact card: only what PostSyncer holds. Null when they
                have none, on a plan without contacts, or for a role that can’t
                see contacts.
              required:
                - id
                - tags
                - email
                - interactions
                - first_seen
                - last_seen
                - lists
                - notes
              properties:
                id:
                  type: integer
                tags:
                  type: array
                  items:
                    type: string
                  description: '`Lead` and `Customer` first, then the contact’s own tags.'
                email:
                  type: string
                  nullable: true
                  description: Their email, when they gave one.
                interactions:
                  type: integer
                  description: How many times they wrote.
                first_seen:
                  type: string
                  format: date-time
                  nullable: true
                last_seen:
                  type: string
                  format: date-time
                  nullable: true
                lists:
                  type: array
                  items:
                    type: object
                    required:
                      - id
                      - name
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                notes:
                  type: array
                  description: The team’s notes on the contact, newest first.
                  items:
                    type: object
                    required:
                      - id
                      - body
                      - created_at
                    properties:
                      id:
                        type: integer
                      body:
                        type: string
                      created_at:
                        type: string
                        format: date-time
                        nullable: true
            contact_locked:
              type: boolean
              description: >-
                `true` on a plan without contacts (Free), for a role that can
                see contacts: the card is a paid feature, so `contact` is null.
                `false` otherwise.
        text:
          type: string
          description: >-
            Their words. Each link is whole, as the person meant it. `""` for a
            comment that is only a picture, or a review with stars only.
        media:
          type: array
          description: >-
            The pictures in a comment, as [Get a
            comment](/api-reference/comments/get) gives them, or a review’s
            photos and videos. A mention’s picture is its post’s, in
            `about.thumbnail`.
          items:
            type: object
            additionalProperties: true
        quoted:
          type: object
          nullable: true
          description: >-
            The post their message quotes (a mention on Bluesky, X or Mastodon):
            who wrote it, its words, its link. Null when it quotes none.
          required:
            - author_name
            - author_handle
            - text
            - url
          properties:
            author_name:
              type: string
              nullable: true
              description: Who wrote the quoted post.
            author_handle:
              type: string
              nullable: true
              description: Their handle on the network, without the @.
            text:
              type: string
              description: Its words. Each link is whole.
            url:
              type: string
              nullable: true
              description: 'Its link on the network: http(s) only.'
        link_preview:
          type: object
          nullable: true
          description: >-
            The link card their message shows (a mention on Bluesky, Mastodon or
            LinkedIn): the page's link, title and description. Null when it
            shows none.
          required:
            - url
            - title
            - description
          properties:
            url:
              type: string
              description: 'The page''s link: http(s) only.'
            title:
              type: string
              nullable: true
            description:
              type: string
              nullable: true
        stars:
          type: integer
          nullable: true
          minimum: 1
          maximum: 5
          description: A review's stars. Null on comments and mentions.
        created_at:
          type: string
          nullable: true
          format: date-time
          description: When they wrote it.
        last_activity_at:
          type: string
          nullable: true
          format: date-time
          description: >-
            The newest message in it, theirs or yours, at the network's time.
            The list is ordered by it, and `cursor` pages on it; `since` goes by
            when PostSyncer read the message instead.
        unread:
          type: boolean
          description: >-
            `true` until someone on the team opens it in the app after their
            newest message.
        about:
          type: object
          description: What it is about.
          required:
            - type
            - post_id
            - caption
            - url
            - thumbnail
            - stats
            - from
            - author_name
          properties:
            type:
              type: string
              enum:
                - post
                - mention_source
                - place
              description: >-
                `post`: your post the comment is on. `mention_source`: the post
                that names you, or the post above the comment that does.
                `place`: the reviewed location.
            post_id:
              type: integer
              nullable: true
              description: Your post, for a comment. Null otherwise.
            caption:
              type: string
              nullable: true
              description: >-
                Your post's text; for a mention in a comment, the post above it;
                for a review, the location's name.
            url:
              type: string
              nullable: true
              description: Where it is on the network.
            thumbnail:
              type: string
              nullable: true
              description: A picture of the post, when it has one.
            stats:
              type: string
              nullable: true
              description: >-
                The mentioning post’s numbers as the network gives them, like
                `120 views · 8 likes`. Null elsewhere.
            from:
              type: string
              nullable: true
              enum:
                - us
                - them
                - null
              description: >-
                Who wrote that post: us (the account: our post, or our own reply
                a mention answers) or them; null for a review's place.
            author_name:
              type: string
              nullable: true
              description: >-
                Who wrote that post: the account's name for ours, else their
                name or @handle where the network gives it.
        thread:
          type: array
          description: >-
            The messages after the first one, oldest first: every reply under a
            comment, the replies sent from PostSyncer under a mention, and a
            review’s reply.
          items:
            type: object
            required:
              - id
              - from
              - author_name
              - avatar
              - text
              - created_at
              - sent_by
              - state
              - error
            properties:
              id:
                type: integer
                description: >-
                  The message's id. Your reply under a mention has none of its
                  own: its place under the mention, from 1.
              from:
                type: string
                enum:
                  - them
                  - us
                description: '`us`: your account wrote it.'
              author_name:
                type: string
              avatar:
                type: string
                nullable: true
              text:
                type: string
              created_at:
                type: string
                nullable: true
                format: date-time
                description: >-
                  When it was written. Your reply under a mention: when the
                  network took it, or, while it is `sending` or once `refused`,
                  when it was asked for.
              sent_by:
                type: object
                nullable: true
                description: >-
                  The teammate who sent it from PostSyncer. Null for theirs, and
                  for one written on the network.
                required:
                  - id
                  - name
                properties:
                  id:
                    type: integer
                  name:
                    type: string
              state:
                type: string
                enum:
                  - sending
                  - sent
                  - refused
                description: >-
                  Where it stands. `sent` for every message on the network. Your
                  reply under a mention is `sending` until the network answers,
                  then `sent`, or `refused` with the reason in `error`. A
                  refused reply leaves the item open.
              error:
                type: string
                nullable: true
                description: >-
                  Why the network refused your reply under a mention, in words
                  to show the user. Null otherwise.
        notes:
          type: array
          description: >-
            The team's notes on it, oldest first. They never reach the network.
            With client sign-off on, a Client member reads only the notes Client
            members wrote; the rest of the team reads them all.
          items:
            $ref: '#/components/schemas/InboxThreadNote'
        tags:
          type: array
          description: >-
            `question` (it has a question mark) and `spam` (moderation removed
            it as junk) come on their own. `lead`, `complaint` and `praise` come
            when PostSyncer AI writes a draft for it.
          items:
            type: string
            enum:
              - question
              - lead
              - complaint
              - praise
              - spam
        assignee:
          type: object
          required:
            - id
            - name
            - avatar
          properties:
            id:
              type: integer
            name:
              type: string
            avatar:
              type: string
              nullable: true
              description: A link to their photo.
          nullable: true
          description: The teammate it is given to. Null for nobody.
        draft:
          type: object
          nullable: true
          description: >-
            The reply waiting to be sent: Ready to send in the app. It never
            sends itself. A reply PostSyncer takes to send (a comment's, or a
            mention's) clears it, and a comment reply the network refuses comes
            back as the draft (`by: person`), unless someone wrote a newer one.
            Null when there is none.
          required:
            - text
            - by
            - agent
            - at
          properties:
            text:
              type: string
            by:
              type: string
              enum:
                - ai
                - agent
                - snippet
                - person
              description: >-
                `ai`: PostSyncer AI. `agent`: an AI agent or script, through the
                API or MCP. `snippet`: a saved snippet. `person`: a teammate
                typed it.
            agent:
              type: string
              nullable: true
              description: >-
                For `agent`, who wrote it: the AI app (such as `Claude`), or
                else the API key’s name. For `snippet`, the snippet’s name.
            at:
              type: string
              format: date-time
              nullable: true
        can:
          type: object
          description: >-
            What the key’s user may do with it, by their role and what the
            network allows.
          required:
            - reply
            - hide
            - delete
            - assign
            - draft
            - note
          properties:
            reply:
              type: boolean
              description: >-
                `false` when nobody can answer it from PostSyncer
                (`cant_reply_reason` says why: a mention the network takes no
                reply to from apps, or a comment hidden or deleted on its
                network), or the role can't answer. [Draft a reply with
                AI](/api-reference/inbox/draft) skips these items too.
            hide:
              type: boolean
              description: >-
                A comment on a network that hides comments: [Hide a
                comment](/api-reference/comments/hide).
            delete:
              type: boolean
              description: 'A comment: [Delete a comment](/api-reference/comments/delete).'
            assign:
              type: boolean
              description: >-
                Your role can edit public comments: give it to a teammate, mark
                it done or open it again.
            draft:
              type: boolean
              description: 'Your role can edit public comments: leave or clear its draft.'
            note:
              type: boolean
              description: >-
                Your role can write team notes: [Add a team
                note](/api-reference/inbox/notes). A Client's can.
        cant_reply_reason:
          type: string
          nullable: true
          description: >-
            Why nobody can answer it from PostSyncer, in words to show the user,
            with where to answer instead: a mention the network takes no reply
            to from apps, `The comment is hidden on {Network}. Unhide it to
            reply.` or `The comment was deleted on {Network}.` Null when a reply
            can go out, and always on a review.
        reply_limit:
          type: integer
          nullable: true
          description: The longest reply the network takes, in characters.
        source:
          type: object
          description: >-
            The id to answer it with: `comment_id` (a comment), `mention_id` (a
            mention) or `review_id` (a review). Only the one of its kind is
            there. A comment's also says whether it is `hidden` on its network.
          properties:
            comment_id:
              type: integer
              description: >-
                `parent_comment_id` for [Create a
                comment](/api-reference/comments/create).
            mention_id:
              type: integer
              description: For [Reply to a mention](/api-reference/mentions/reply).
            review_id:
              type: integer
              description: For [Reply to a review](/api-reference/reviews/reply).
            hidden:
              type: boolean
              description: >-
                A comment only: `true` while it is hidden on its network. Unhide
                it with [Hide a comment](/api-reference/comments/hide)
                (`"hidden": false`) to reply.
        links:
          type: object
          required:
            - open_on_network
          properties:
            open_on_network:
              type: string
              nullable: true
              description: >-
                Where it is on the network: the comment, the mentioning post,
                the location on Google Maps.
    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
    InboxThreadNote:
      type: object
      description: A team note on an inbox item. Only the team reads it.
      required:
        - id
        - author
        - body
        - created_at
      properties:
        id:
          type: integer
        author:
          type: object
          required:
            - id
            - name
            - avatar
          properties:
            id:
              type: integer
              nullable: true
              description: >-
                Null once the writer left the team (`name` is then `Former
                member`).
            name:
              type: string
            avatar:
              type: string
              nullable: true
        body:
          type: string
        created_at:
          type: string
          format: date-time
          nullable: true
  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.
    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.