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

# Get ESI dashboard stats.

> Returns schema-backed inventory, service, generic finding, secret finding, and recent inventory rollup data for the authenticated project. Secret findings share the `esi.findings.view` scope.



## OpenAPI

````yaml https://api.infrawatch.com/openapi.json?contract=d15375c get /projects/{project_uuid}/esi/dashboard/stats
openapi: 3.1.0
info:
  description: >-
    Customer-facing Infrawatch APIs. Authenticate with an API key unless an
    operation documents another supported credential.


    ### Infrawatch Public API


    Public API authenticated exclusively with Infrawatch API keys.


    ### Infrawatch Customer Alerting API


    Project alert rules, destinations, silences, inbox state, and delivery
    history.


    ### Infrawatch Remote Browser API


    Project-scoped interactive browser sessions owned by Platform Core.


    Session admission, lifecycle, RBAC, audit, usage, screenshot history, and

    stream tickets are Platform Core resources. The browser master is private

    infrastructure and its identifiers, proxy routes, process options, and

    credentials are never exposed by this API.


    A session and all of its evidence are private to the credential that created

    it. Project managers may list project session metadata, inspect one
    session's

    metadata, and terminate it, but cannot access its live stream, screenshots,

    or network events.


    Terminal session metadata and screenshots are retained indefinitely. A

    creator can replay a terminal session as a new queued resource while

    preserving a durable link to the source session.


    ### Infrawatch ESI API


    Customer-facing External Surface Intelligence API for project-scoped

    product data authenticated by an Infrawatch API key. API keys

    are constrained to their immutable owner's project ceiling and assigned

    ESI scopes; human project-manager fallback never expands an API key.

    Authorised API-key requests are rate-limited and consume monthly quota.


    ### Infrawatch Reports API


    Threat report discovery API authenticated by an Infrawatch API key.


    ### Infrawatch Public Rules API


    Account-aware rule authoring, taxonomy, catalogue, and runtime observations
    for API clients.


    ### Infrawatch Search API


    Search hosts, services, DNS records, and certificates. Complete
    percent-encoded query strings are limited to 65536 bytes.
  title: Infrawatch Customer API
  version: 1.0.0
servers:
  - description: Infrawatch customer API
    url: https://api.infrawatch.com/api/v1
security: []
tags:
  - name: API Usage
  - name: Projects
  - name: Alert destinations
  - name: Alert rules
  - name: Alert silences
  - name: Alerts
  - name: Browser sessions
  - name: Browser evidence
  - name: Browser streaming
  - name: Access
  - name: Inventory
  - name: Dangling DNS
  - name: Findings
  - name: Secrets
  - name: Typosquatting
  - name: Services
  - name: AI Surface
  - description: Search hosts, services, DNS records, certificates, and open directories.
    name: Search
  - name: Dashboard
  - name: Reports
  - name: Rules
  - name: Rule tags
  - name: Rule observations
paths:
  /projects/{project_uuid}/esi/dashboard/stats:
    servers:
      - url: https://api.infrawatch.com/api/v1
    parameters:
      - $ref: '#/components/parameters/esi_v1_ProjectUUID'
    get:
      tags:
        - Dashboard
      summary: Get ESI dashboard stats.
      description: >-
        Returns schema-backed inventory, service, generic finding, secret
        finding, and recent inventory rollup data for the authenticated project.
        Secret findings share the `esi.findings.view` scope.
      operationId: getESIDashboardStats
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  stats:
                    $ref: '#/components/schemas/esi_v1_ESIDashboardStats'
                required:
                  - stats
                type: object
          description: ESI dashboard stats.
        '400':
          $ref: '#/components/responses/esi_v1_BadRequest'
        '401':
          $ref: '#/components/responses/esi_v1_Unauthorized'
        '403':
          $ref: '#/components/responses/esi_v1_Forbidden'
      security:
        - apiKeyAuth: []
components:
  parameters:
    esi_v1_ProjectUUID:
      in: path
      name: project_uuid
      required: true
      schema:
        format: uuid
        type: string
  schemas:
    esi_v1_ESIDashboardStats:
      properties:
        asset_kind_counts:
          items:
            $ref: '#/components/schemas/esi_v1_CountByKey'
          type: array
        finding_severity_counts:
          items:
            $ref: '#/components/schemas/esi_v1_CountByKey'
          type: array
        finding_status_counts:
          items:
            $ref: '#/components/schemas/esi_v1_CountByKey'
          type: array
        generated_at:
          format: date-time
          type: string
        inventory_status_counts:
          items:
            $ref: '#/components/schemas/esi_v1_CountByKey'
          type: array
        recent_inventory_rollups:
          items:
            $ref: '#/components/schemas/esi_v1_InventoryRollup'
          type: array
        service_protocol_counts:
          items:
            $ref: '#/components/schemas/esi_v1_CountByKey'
          type: array
        totals:
          $ref: '#/components/schemas/esi_v1_ESIDashboardTotals'
      required:
        - generated_at
        - totals
        - inventory_status_counts
        - asset_kind_counts
        - finding_status_counts
        - finding_severity_counts
        - service_protocol_counts
        - recent_inventory_rollups
      type: object
    esi_v1_CountByKey:
      properties:
        count:
          minimum: 0
          type: integer
        key:
          type: string
      required:
        - key
        - count
      type: object
    esi_v1_InventoryRollup:
      properties:
        added_count:
          minimum: 0
          type: integer
        approved_count:
          minimum: 0
          type: integer
        computed_at:
          format: date-time
          type: string
        day:
          format: date
          type: string
        dimension:
          type: string
        dimension_value:
          type: string
        ignored_count:
          minimum: 0
          type: integer
        is_final:
          type: boolean
        removed_count:
          minimum: 0
          type: integer
        source_max_at:
          format: date-time
          type: string
        source_min_at:
          format: date-time
          type: string
        total_count:
          minimum: 0
          type: integer
        watermark_at:
          format: date-time
          type: string
      required:
        - day
        - dimension
        - dimension_value
        - total_count
        - added_count
        - removed_count
        - approved_count
        - ignored_count
        - computed_at
        - is_final
      type: object
    esi_v1_ESIDashboardTotals:
      properties:
        asns:
          minimum: 0
          type: integer
        assets:
          minimum: 0
          type: integer
        certificates:
          minimum: 0
          type: integer
        contacts:
          minimum: 0
          type: integer
        domains:
          minimum: 0
          type: integer
        findings:
          minimum: 0
          type: integer
        ip_addresses:
          minimum: 0
          type: integer
        ip_blocks:
          minimum: 0
          type: integer
        open_findings:
          minimum: 0
          type: integer
        open_secret_findings:
          minimum: 0
          type: integer
        pages:
          minimum: 0
          type: integer
        secret_findings:
          minimum: 0
          type: integer
        services:
          minimum: 0
          type: integer
        subdomains:
          minimum: 0
          type: integer
      required:
        - assets
        - domains
        - subdomains
        - pages
        - certificates
        - ip_addresses
        - ip_blocks
        - asns
        - contacts
        - services
        - findings
        - open_findings
        - secret_findings
        - open_secret_findings
      type: object
    esi_v1_ErrorResponse:
      properties:
        error:
          properties:
            code:
              type: string
            field_errors:
              items:
                properties:
                  code:
                    type: string
                  field:
                    type: string
                  message:
                    type: string
                required:
                  - field
                  - code
                  - message
                type: object
              type: array
            message:
              type: string
            request_id:
              type: string
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  responses:
    esi_v1_BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/esi_v1_ErrorResponse'
      description: Invalid request.
    esi_v1_Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/esi_v1_ErrorResponse'
      description: Authentication required.
    esi_v1_Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/esi_v1_ErrorResponse'
      description: Required scope or project access missing.
  securitySchemes:
    apiKeyAuth:
      description: >-
        Infrawatch API key. Supply the complete key directly as the header
        value.
      in: header
      name: X-API-Key
      type: apiKey

````