> ## 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 asset group by ID

> Fetches a specific asset group by its unique identifier.



## OpenAPI

````yaml /api-reference/openapi.json get /api/asset-group/{id}
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/asset-group/{id}:
    get:
      tags:
        - Asset Group
      summary: Get asset group by ID
      description: Fetches a specific asset group by its unique identifier.
      operationId: AssetGroupController_getById
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetGroup'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    AssetGroup:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        name:
          type: string
        hexColor:
          type: string
          example: '#78716C'
        totalAssets:
          type: number
      required:
        - id
        - createdAt
        - updatedAt
        - name
        - totalAssets

````