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

# Get the inbox summary

> Count a workspace's open comments, mentions and reviews by kind, network and account.

> [!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).

The workspace's open items, the ones that need a reply, counted every way:

* `open`: in all. It is the number the app's sidebar shows, and the `meta.total` of [List the inbox](/docs/api-reference/inbox/list.md) with `status=open`.
* `ready`: open items with a draft waiting to be sent.
* `mine`: open items given to the key's user.
* `by_kind`: comments, mentions and reviews.
* `by_platform` and `by_account`: by network and by account, most first. One with none is left out. X is `twitter`, Google reviews `google_business`.
* `oldest_open_at`: when the open item that waited longest last had a message, or `null` with nothing open.

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.

Read it first, as a morning brief, then list what you'll answer. It counts what PostSyncer has saved and changes nothing. 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. | No: fix the request. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [List the inbox](/docs/api-reference/inbox/list.md): the items behind the counts.
* [Work through the Inbox](/docs/guides/inbox.md): the routine that starts here.


## OpenAPI

````yaml GET /inbox/summary
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/summary:
    get:
      tags:
        - Inbox
      summary: Get the inbox summary
      description: >-
        Needs `comments:read`. Your role in the workspace must also let you see
        public comments; a Client's does. The workspace's open items counted
        every way: in all, with a draft waiting, given to the key's user, by
        kind, by network and by account, and when the oldest one last moved.
        They are the open items [List the inbox](/api-reference/inbox/list)
        gives, so `open` is the number the app's sidebar shows. Read it first,
        as a morning brief, then list what to answer. 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
        changes nothing. Works on every plan.
      operationId: getInboxSummary
      parameters:
        - name: workspace_id
          in: query
          required: true
          description: The workspace. It must be one the key can reach.
          schema:
            type: integer
            example: 12
      responses:
        '200':
          description: The counts.
          content:
            application/json:
              schema:
                type: object
                required:
                  - open
                  - ready
                  - mine
                  - by_kind
                  - by_platform
                  - by_account
                  - oldest_open_at
                properties:
                  open:
                    type: integer
                    description: >-
                      Open items: they need a reply. Counted up to 100: 100
                      means 100 or more.
                  ready:
                    type: integer
                    description: >-
                      Open items with a draft waiting to be sent, counted up to
                      100.
                  mine:
                    type: integer
                    description: Open items given to the key's user, counted up to 100.
                  by_kind:
                    type: object
                    required:
                      - comment
                      - mention
                      - review
                    properties:
                      comment:
                        type: integer
                      mention:
                        type: integer
                      review:
                        type: integer
                    description: Open items by kind, each counted up to 100.
                  by_platform:
                    type: object
                    description: >-
                      Open items by network, most first, each counted up to 100:
                      `instagram`, `twitter` (X), `google_business` and so on. A
                      network with none is left out.
                    additionalProperties:
                      type: integer
                  by_account:
                    type: array
                    description: >-
                      Open items by account, most first, each counted up to 100.
                      An account with none is left out.
                    items:
                      type: object
                      required:
                        - account_id
                        - open
                      properties:
                        account_id:
                          type: integer
                        open:
                          type: integer
                  oldest_open_at:
                    type: string
                    nullable: true
                    format: date-time
                    description: >-
                      When the open item that waited longest last had a message.
                      Null with nothing open.
              examples:
                default:
                  summary: Five open, one ready to send
                  value:
                    open: 5
                    ready: 1
                    mine: 1
                    by_kind:
                      comment: 3
                      mention: 1
                      review: 1
                    by_platform:
                      instagram: 3
                      twitter: 1
                      google_business: 1
                    by_account:
                      - account_id: 301
                        open: 3
                      - account_id: 303
                        open: 1
                      - account_id: 305
                        open: 1
                    oldest_open_at: '2030-03-13T18:22:00.000000Z'
                nothing_open:
                  summary: All caught up
                  value:
                    open: 0
                    ready: 0
                    mine: 0
                    by_kind:
                      comment: 0
                      mention: 0
                      review: 0
                    by_platform: {}
                    by_account: []
                    oldest_open_at: null
        '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.'
          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.
        '429':
          $ref: '#/components/responses/RateLimited429'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://postsyncer.com/api/v1/inbox/summary?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/summary?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/summary?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/summary?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:
  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.
  schemas:
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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