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

# Get item counts by state

> Returns a count of items per lifecycle `state` (`active`, `archived`, `trashed`) for the tenant. Useful for surfacing item totals in a dashboard or sidebar without paging through `/items`. Type-permission scoped: a credential sees only the counts for types it can read. See [Lifecycle](/concepts/lifecycle).



## OpenAPI

````yaml /openapi.json get /items/stats
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /items/stats:
    get:
      tags:
        - Items
      summary: Get item counts by state
      description: >-
        Returns a count of items per lifecycle `state` (`active`, `archived`,
        `trashed`) for the tenant. Useful for surfacing item totals in a
        dashboard or sidebar without paging through `/items`. Type-permission
        scoped: a credential sees only the counts for types it can read. See
        [Lifecycle](/concepts/lifecycle).
      responses:
        '200':
          description: Item counts by state
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: number
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unauthorized
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or OAuth Token
      description: Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

````