> ## Documentation Index
> Fetch the complete documentation index at: https://hc.saas-manager.biz.nuro.jp/llms.txt
> Use this file to discover all available pages before exploring further.

# Session statistics

> Counts grouped by status and assignee type.



## OpenAPI

````yaml https://assist.i.moneyforward.com/api/v1/openapi.json get /api/v1/sessions/stats
openapi: 3.1.0
info:
  title: Minabot Public API
  description: >-
    Read-only REST API for querying sessions and knowledge articles. Requires an
    API key issued from the Admina admin panel.


    ### Rate limits

    Not currently enforced at the HTTP layer. Respect upstream DynamoDB capacity
    when making bulk requests (keep concurrency under ~20 RPS per key).
  version: 1.0.0
  contact:
    name: Minabot
    url: https://github.com/moneyforward-i/minabot
servers:
  - url: https://assist.i.moneyforward.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/sessions/stats:
    get:
      tags:
        - Sessions
      summary: Session statistics
      description: Counts grouped by status and assignee type.
      operationId: getApiV1SessionsStats
      responses:
        '200':
          description: Stats
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                  stats:
                    type: object
                    properties:
                      total:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      byStatus:
                        type: object
                        properties:
                          open:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          in_progress:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          pending_approval:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          resolved:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                        required:
                          - open
                          - in_progress
                          - pending_approval
                          - resolved
                      byAssigneeType:
                        type: object
                        properties:
                          unassigned:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          ai_agent:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          human_agent:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          requester:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                        required:
                          - unassigned
                          - ai_agent
                          - human_agent
                          - requester
                    required:
                      - total
                      - byStatus
                      - byAssigneeType
                required:
                  - ok
                  - stats
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key created via the Admina admin panel (`Settings → API Keys →
        Create`). Format: `mb_live_<40-hex>`.

````