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

# Get OnyxBot Analytics

> [!NOTE]
>
> **Business Edition Feature**
>
> This feature requires a Business or Enterprise plan. [View plans](https://docs.onyx.app/admins/billing/overview.md)
> or [contact sales](https://onyx.app/contact-sales) to learn more.

> [!NOTE]
>
> **Required permission:** Admin (`admin`).


## OpenAPI

````yaml GET /analytics/admin/onyxbot
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /analytics/admin/onyxbot:
    get:
      tags:
        - public
      summary: Get Onyxbot Analytics
      operationId: get_onyxbot_analytics
      parameters:
        - name: start
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Start
        - name: end
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: End
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OnyxbotAnalyticsResponse'
                title: Response Get Onyxbot Analytics Analytics Admin Onyxbot Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    OnyxbotAnalyticsResponse:
      properties:
        total_queries:
          type: integer
          title: Total Queries
        auto_resolved:
          type: integer
          title: Auto Resolved
        date:
          type: string
          format: date
          title: Date
      type: object
      required:
        - total_queries
        - auto_resolved
        - date
      title: OnyxbotAnalyticsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````

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