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

# Get Platform Analytics

> Get platform-wide statistics (users, orgs, spaces, documents)



## OpenAPI

````yaml api/openapi.json get /api/admin/analytics
openapi: 3.1.0
info:
  version: '0.1'
  title: Orchata API
servers:
  - url: https://api.orchata.ai
    description: Orchata API Server
security:
  - ApiKey: []
paths:
  /api/admin/analytics:
    get:
      tags:
        - Admin
      summary: Get Platform Analytics
      description: Get platform-wide statistics (users, orgs, spaces, documents)
      responses:
        '200':
          description: Platform analytics
          content:
            application/json:
              schema:
                type: object
                properties:
                  totalUsers:
                    type: number
                  totalOrganizations:
                    type: number
                  totalSpaces:
                    type: number
                  totalDocuments:
                    type: number
                  documentsPerSpace:
                    type: array
                    items:
                      type: object
                      properties:
                        spaceId:
                          type: string
                        spaceName:
                          type: string
                        count:
                          type: number
                      required:
                        - spaceId
                        - spaceName
                        - count
                  recentActivity:
                    type: object
                    properties:
                      usersThisWeek:
                        type: number
                      documentsThisWeek:
                        type: number
                      orgsThisWeek:
                        type: number
                    required:
                      - usersThisWeek
                      - documentsThisWeek
                      - orgsThisWeek
                required:
                  - totalUsers
                  - totalOrganizations
                  - totalSpaces
                  - totalDocuments
                  - documentsPerSpace
                  - recentActivity
        '403':
          description: Admin access required
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: Oai-Api-Key

````