> ## 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.

# Generate AI tags for a service

> Analyzes the service data (HTTP responses, tech stack, TLS, etc.) using AI and generates descriptive tags. Replaces existing tags with AI-generated ones.



## OpenAPI

````yaml /api-reference/openapi.json post /api/assets/service/tag/generate
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/assets/service/tag/generate:
    post:
      tags:
        - Assets
      summary: Generate AI tags for a service
      description: >-
        Analyzes the service data (HTTP responses, tech stack, TLS, etc.) using
        AI and generates descriptive tags. Replaces existing tags with
        AI-generated ones.
      operationId: AssetsController_generateServiceTags
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateServiceTagsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateServiceTagsResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    GenerateServiceTagsDto:
      type: object
      properties:
        assetServiceId:
          type: string
          description: The ID of the asset service to generate tags for
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - assetServiceId
    GenerateServiceTagsResponseDto:
      type: object
      properties:
        tags:
          description: The generated tags for the service
          example:
            - Technology
            - API
            - Cloud Service
          type: array
          items:
            type: string
      required:
        - tags

````