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

# Get inbox statistics

> Retrieve inbox statistics including unread message counts (total, important, clients, internal) and outbox count. Counts are based on unique threads.



## OpenAPI

````yaml /api-reference/cx/swagger.json get /inbox/_stats
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /inbox/_stats:
    get:
      tags:
        - Inbox
      summary: Get inbox statistics
      description: >-
        Retrieve inbox statistics including unread message counts (total,
        important, clients, internal) and outbox count. Counts are based on
        unique threads.
      responses:
        '200':
          description: Inbox statistics with unread and outbox counts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg_routes_inbox.StatsResult'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_inbox.StatsResult:
      type: object
      properties:
        outbox:
          type: integer
        unread:
          type: integer
        unread_clients:
          type: integer
        unread_important:
          type: integer
        unread_internal:
          type: integer
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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