> ## 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 top 10 assets with the most vulnerabilities in a workspace

> Retrieves the top 10 assets with the most vulnerabilities in a workspace.



## OpenAPI

````yaml /api-reference/openapi.json get /api/statistic/top-assets-vulnerabilities
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/top-assets-vulnerabilities:
    get:
      tags:
        - Statistic
      summary: Get top 10 assets with the most vulnerabilities in a workspace
      description: >-
        Retrieves the top 10 assets with the most vulnerabilities in a
        workspace.
      operationId: StatisticController_getTopAssetsWithMostVulnerabilities
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
                type: array
                items:
                  $ref: '#/components/schemas/TopAssetVulnerabilities'
components:
  schemas:
    AppResponseSerialization:
      type: object
      properties: {}
    TopAssetVulnerabilities:
      type: object
      properties:
        critical:
          type: number
          example: 5
          description: The number of critical vulnerabilities
        high:
          type: number
          example: 10
          description: The number of high severity vulnerabilities
        medium:
          type: number
          example: 15
          description: The number of medium severity vulnerabilities
        low:
          type: number
          example: 20
          description: The number of low severity vulnerabilities
        info:
          type: number
          example: 5
          description: The number of info severity vulnerabilities
        total:
          type: number
          example: 55
          description: The total number of vulnerabilities
        id:
          type: string
          example: asset-id-123
          description: The ID of the asset
        value:
          type: string
          example: example.com
          description: The value of the asset
      required:
        - critical
        - high
        - medium
        - low
        - info
        - total
        - id
        - value

````