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

# Get organization session analytics overview



## OpenAPI

````yaml /api-reference/openapi.json get /v1/analytics/sessions/overview
openapi: 3.1.0
info:
  title: Kayle ID
  version: 1.5.0
  description: Privacy-first identity verification.
  license:
    name: Apache License 2.0
    url: https://github.com/kayleai/kayle-id/blob/main/LICENSE
  contact:
    name: Kayle ID
    url: https://kayle.id
    email: help@kayle.id
  termsOfService: https://kayle.id/terms
servers:
  - url: http://127.0.0.1:8787
    description: ''
security:
  - bearerAuth: []
paths:
  /v1/analytics/sessions/overview:
    get:
      tags:
        - Analytics
      summary: Get organization session analytics overview
      responses:
        '200':
          description: >-
            Successful operation. Returns overall session analytics summary,
            daily terminal outcomes grouped by session creation date for the
            last 14 days, and period-scoped cumulative timeline data for the
            same window.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      summary:
                        $ref: '#/components/schemas/SessionAnalyticsSummary'
                      trend:
                        type: array
                        items:
                          $ref: '#/components/schemas/SessionAnalyticsTrendPoint'
                        description: >-
                          Daily terminal session outcomes grouped by session
                          creation date for the last 14 days.
                      timeline:
                        type: array
                        items:
                          $ref: '#/components/schemas/SessionAnalyticsTimelinePoint'
                        description: >-
                          Last 14 days of daily cumulative counts grouped by
                          session creation date within the current analytics
                          window.
                    required:
                      - summary
                      - trend
                      - timeline
                    examples:
                      - summary:
                          total: 142
                          active: 9
                          success: 103
                          failure: 18
                          expired: 8
                          cancelled: 4
                        trend:
                          - date: '2026-03-08'
                            success: 2
                            failure: 1
                            expired: 0
                            cancelled: 0
                          - date: '2026-03-09'
                            success: 1
                            failure: 0
                            expired: 1
                            cancelled: 1
                        timeline:
                          - date: '2026-03-08'
                            total: 5
                            active: 2
                            success: 2
                            failure: 1
                            expired: 0
                            cancelled: 0
                          - date: '2026-03-09'
                            total: 9
                            active: 3
                            success: 3
                            failure: 1
                            expired: 1
                            cancelled: 1
                  error:
                    type: 'null'
                required:
                  - data
                  - error
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: 'null'
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - INTERNAL_SERVER_ERROR
                      message:
                        type: string
                        enum:
                          - Internal server error.
                      hint:
                        type: string
                        enum:
                          - The server encountered an error.
                      docs:
                        type: string
                        enum:
                          - https://kayle.id/docs/api/errors
                    required:
                      - code
                      - message
                      - hint
                      - docs
                required:
                  - data
                  - error
      security:
        - bearerAuth: []
components:
  schemas:
    SessionAnalyticsSummary:
      type: object
      properties:
        total:
          type: integer
          minimum: 0
        active:
          type: integer
          minimum: 0
        success:
          type: integer
          minimum: 0
        failure:
          type: integer
          minimum: 0
        expired:
          type: integer
          minimum: 0
        cancelled:
          type: integer
          minimum: 0
      required:
        - total
        - active
        - success
        - failure
        - expired
        - cancelled
      description: Overall session counts for the organization.
    SessionAnalyticsTrendPoint:
      type: object
      properties:
        date:
          type: string
          description: UTC date bucket in YYYY-MM-DD format.
          example: '2026-03-21'
        success:
          type: integer
          minimum: 0
        failure:
          type: integer
          minimum: 0
        expired:
          type: integer
          minimum: 0
        cancelled:
          type: integer
          minimum: 0
      required:
        - date
        - success
        - failure
        - expired
        - cancelled
    SessionAnalyticsTimelinePoint:
      type: object
      properties:
        date:
          type: string
          description: UTC date bucket in YYYY-MM-DD format.
          example: '2026-03-21'
        total:
          type: integer
          minimum: 0
        active:
          type: integer
          minimum: 0
        success:
          type: integer
          minimum: 0
        failure:
          type: integer
          minimum: 0
        expired:
          type: integer
          minimum: 0
        cancelled:
          type: integer
          minimum: 0
      required:
        - date
        - total
        - active
        - success
        - failure
        - expired
        - cancelled
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````