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

# Get Aggregated Stats

> Get aggregated stats from Trata AI like call count, prospect count, etc.



## OpenAPI

````yaml openapi.json get /v1/stats
openapi: 3.1.0
info:
  title: Trata AI API
  description: >-
    Human like conversation to answer calls, drive engagement, automate
    follow-ups & schedule bookings 24/7  with end to end integrations ensuring
    you never miss a sales enquiry.
  version: 1.0.0
servers:
  - url: https://api.trata.ai
    description: Production
  - url: http://localhost:8000
    description: Development
security: []
paths:
  /v1/stats:
    get:
      tags:
        - Analytics
      summary: Get Aggregated Stats
      description: Get aggregated stats from Trata AI like call count, prospect count, etc.
      operationId: getOverallStats_v1_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    StatsResponse:
      properties:
        response:
          allOf:
            - $ref: '#/components/schemas/StatsData'
          description: Overall stats of prospects
      type: object
      required:
        - response
      title: StatsResponse
    StatsData:
      properties:
        no_of_prospects:
          type: integer
          title: No Of Prospects
        appointment_scheduled:
          type: integer
          title: Appointment Scheduled
        unqualified:
          type: integer
          title: Unqualified
        average_call_duration:
          type: number
          title: Average Call Duration
      type: object
      required:
        - no_of_prospects
        - appointment_scheduled
        - unqualified
        - average_call_duration
      title: StatsData
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````