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

# Get stats

> Retrieve aggregate statistics.

# Get stats

Returns aggregated service metrics, including status breakdowns and disk usage totals.


## OpenAPI

````yaml openapi/senthrex.json GET /stats
openapi: 3.1.0
info:
  title: Senthrex Simulation API
  description: >-
    API for running comprehensive security assessments including subdomain
    enumeration, port scanning, vulnerability scanning, OSINT reconnaissance,
    and security exposure detection
  version: 2.0.0
servers:
  - url: https://rts-senthrex.slayers.tech
    description: Production server
security: []
paths:
  /stats:
    get:
      summary: Get Stats
      description: Get API statistics. API keys only see stats for their own scans.
      operationId: get_stats_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    StatsResponse:
      properties:
        total_scans:
          type: integer
          title: Total Scans
        active_scans:
          type: integer
          title: Active Scans
        max_concurrent_scans:
          type: integer
          title: Max Concurrent Scans
        status_breakdown:
          additionalProperties:
            type: integer
          type: object
          title: Status Breakdown
        disk_usage:
          $ref: '#/components/schemas/DiskUsage'
      type: object
      required:
        - total_scans
        - active_scans
        - max_concurrent_scans
        - status_breakdown
        - disk_usage
      title: StatsResponse
      description: |-
        API statistics response.

        Attributes:
            total_scans: Total number of scans tracked.
            active_scans: Number of pending or running scans.
            max_concurrent_scans: Configured concurrency limit.
            status_breakdown: Counts keyed by scan status.
            disk_usage: Storage consumption summary.
    DiskUsage:
      properties:
        total_size_bytes:
          type: integer
          title: Total Size Bytes
        total_size_mb:
          type: number
          title: Total Size Mb
        scan_directories:
          type: integer
          title: Scan Directories
      type: object
      required:
        - total_size_bytes
        - total_size_mb
        - scan_directories
      title: DiskUsage
      description: |-
        Disk usage breakdown for scan storage.

        Attributes:
            total_size_bytes: Total size in bytes.
            total_size_mb: Total size in megabytes.
            scan_directories: Number of scan directories on disk.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````