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

# Get workspace statistics

> Retrieves statistics for a workspace including total targets, assets, vulnerabilities, and unique technologies.



## OpenAPI

````yaml /api-reference/openapi.json get /api/statistic
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/statistic:
    get:
      tags:
        - Statistic
      summary: Get workspace statistics
      description: >-
        Retrieves statistics for a workspace including total targets, assets,
        vulnerabilities, and unique technologies.
      operationId: StatisticController_getStatistics
      parameters:
        - name: workspaceId
          required: true
          in: query
          description: The ID of the workspace to get statistics for
          schema:
            example: 123e4567-e89b-12d3-a456-426614174000
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatisticResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    StatisticResponseDto:
      type: object
      properties:
        assets:
          type: number
          description: Number of assets
          example: 42
        targets:
          type: number
          description: Number of targets
          example: 10
        vuls:
          type: number
          description: Number of vulnerabilities
          example: 100
        criticalVuls:
          type: number
          description: Number of critical vulnerabilities
          example: 5
        highVuls:
          type: number
          description: Number of high severity vulnerabilities
          example: 15
        mediumVuls:
          type: number
          description: Number of medium severity vulnerabilities
          example: 30
        lowVuls:
          type: number
          description: Number of low severity vulnerabilities
          example: 40
        infoVuls:
          type: number
          description: Number of info severity vulnerabilities
          example: 10
        techs:
          type: number
          description: Number of technologies detected
          example: 15
        ports:
          type: number
          description: Number of ports
          example: 80
        score:
          type: number
          description: Security score
          example: 7.5
        services:
          type: number
          description: Number of services
          example: 100
      required:
        - assets
        - targets
        - vuls
        - criticalVuls
        - highVuls
        - mediumVuls
        - lowVuls
        - infoVuls
        - techs
        - ports
        - score
        - services

````