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

# Get organization analytics



## OpenAPI

````yaml https://api.crosmos.dev/openapi.json get /api/v1/analytics/summary
openapi: 3.1.0
info:
  title: Crosmos API
  version: 0.1.0
servers:
  - url: /
security: []
paths:
  /api/v1/analytics/summary:
    get:
      tags:
        - analytics
      summary: Get organization analytics
      parameters:
        - schema:
            type: number
            default: 30
          required: false
          name: days
          in: query
      responses:
        '200':
          description: Current and previous-window analytics
          content:
            application/json:
              schema:
                type: object
                properties:
                  period_start:
                    type: string
                  period_end:
                    type: string
                  days:
                    anyOf:
                      - type: number
                        enum:
                          - 30
                      - type: number
                        enum:
                          - 60
                      - type: number
                        enum:
                          - 90
                  totals:
                    type: object
                    properties:
                      sources_ingested:
                        type: integer
                        description: >-
                          Sources that reached extraction_status = 'completed'
                          on that day
                      sources_failed:
                        type: integer
                        description: Sources whose extraction terminally failed on that day
                      memories_created:
                        type: integer
                        description: >-
                          Memories persisted by completed extractions on that
                          day
                      tokens_ingested:
                        type: integer
                        description: >-
                          Submitted input tokens — the quota basis, not provider
                          throughput
                      search_queries:
                        type: integer
                        description: Retrieval requests that passed the admission gates
                    required:
                      - sources_ingested
                      - sources_failed
                      - memories_created
                      - tokens_ingested
                      - search_queries
                  previous_period_totals:
                    type: object
                    properties:
                      sources_ingested:
                        type: integer
                        description: >-
                          Sources that reached extraction_status = 'completed'
                          on that day
                      sources_failed:
                        type: integer
                        description: Sources whose extraction terminally failed on that day
                      memories_created:
                        type: integer
                        description: >-
                          Memories persisted by completed extractions on that
                          day
                      tokens_ingested:
                        type: integer
                        description: >-
                          Submitted input tokens — the quota basis, not provider
                          throughput
                      search_queries:
                        type: integer
                        description: Retrieval requests that passed the admission gates
                    required:
                      - sources_ingested
                      - sources_failed
                      - memories_created
                      - tokens_ingested
                      - search_queries
                  daily:
                    type: array
                    items:
                      type: object
                      properties:
                        sources_ingested:
                          type: integer
                          description: >-
                            Sources that reached extraction_status = 'completed'
                            on that day
                        sources_failed:
                          type: integer
                          description: >-
                            Sources whose extraction terminally failed on that
                            day
                        memories_created:
                          type: integer
                          description: >-
                            Memories persisted by completed extractions on that
                            day
                        tokens_ingested:
                          type: integer
                          description: >-
                            Submitted input tokens — the quota basis, not
                            provider throughput
                        search_queries:
                          type: integer
                          description: Retrieval requests that passed the admission gates
                        date:
                          type: string
                      required:
                        - sources_ingested
                        - sources_failed
                        - memories_created
                        - tokens_ingested
                        - search_queries
                        - date
                  sources_by_content_type:
                    type: array
                    items:
                      type: object
                      properties:
                        content_type:
                          type: string
                        count:
                          type: integer
                      required:
                        - content_type
                        - count
                  spaces:
                    type: array
                    items:
                      type: object
                      properties:
                        space_id:
                          type: string
                        name:
                          type: string
                          nullable: true
                        totals:
                          type: object
                          properties:
                            sources_ingested:
                              type: integer
                              description: >-
                                Sources that reached extraction_status =
                                'completed' on that day
                            sources_failed:
                              type: integer
                              description: >-
                                Sources whose extraction terminally failed on
                                that day
                            memories_created:
                              type: integer
                              description: >-
                                Memories persisted by completed extractions on
                                that day
                            tokens_ingested:
                              type: integer
                              description: >-
                                Submitted input tokens — the quota basis, not
                                provider throughput
                            search_queries:
                              type: integer
                              description: >-
                                Retrieval requests that passed the admission
                                gates
                          required:
                            - sources_ingested
                            - sources_failed
                            - memories_created
                            - tokens_ingested
                            - search_queries
                      required:
                        - space_id
                        - name
                        - totals
                required:
                  - period_start
                  - period_end
                  - days
                  - totals
                  - previous_period_totals
                  - daily
                  - sources_by_content_type
                  - spaces
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: JWT access token or API key (csk_...)

````

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