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

# Get or list catalog tags

> If 'fqn' is provided, returns a single tag. Otherwise, returns a paginated list.



## OpenAPI

````yaml /openapi/em-runtime-utils-v2.yaml get /utils/metadata/tags
openapi: 3.1.0
info:
  title: em_runtime_utils
  version: 5.27.0
servers: []
security: []
paths:
  /utils/metadata/tags:
    get:
      tags:
        - metadata
      summary: Get or list catalog tags
      description: >-
        If 'fqn' is provided, returns a single tag. Otherwise, returns a
        paginated list.
      operationId: get_or_list_catalog_tags
      parameters:
        - name: fqn
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Fully qualified name for single tag retrieval
            title: Fqn
          description: Fully qualified name for single tag retrieval
        - name: version
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 1
              - type: 'null'
            description: Specific version to retrieve (only with fqn)
            title: Version
          description: Specific version to retrieve (only with fqn)
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number (starts at 1)
            default: 1
            title: Page
          description: Page number (starts at 1)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            description: Items per page (max 200)
            default: 50
            title: Limit
          description: Items per page (max 200)
        - name: fqn_prefix
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter tags by category FQN prefix (e.g., 'PII')
            title: Fqn Prefix
          description: Filter tags by category FQN prefix (e.g., 'PII')
        - name: q
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Search in name and description
            title: Q
          description: Search in name and description
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
            description: Sort field ('name' or 'created_at')
            default: name
            title: Sort By
          description: Sort field ('name' or 'created_at')
        - name: sort_order
          in: query
          required: false
          schema:
            type: string
            description: Sort order ('asc' or 'desc')
            default: asc
            title: Sort Order
          description: Sort order ('asc' or 'desc')
      responses:
        '200':
          description: >-
            CatalogTagDetail (if fqn provided) or CatalogTagListResponse (if
            listing)
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/CatalogTagDetail'
                  - $ref: '#/components/schemas/CatalogTagListResponse'
                title: Response Get Or List Catalog Tags
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    CatalogTagDetail:
      properties:
        id:
          type: string
          title: Id
        asset_type:
          type: string
          title: Asset Type
          default: tag
        name:
          type: string
          title: Name
        fully_qualified_name:
          type: string
          title: Fully Qualified Name
        version:
          type: integer
          title: Version
        category_id:
          type: string
          title: Category Id
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        owners:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Owners
        style:
          anyOf:
            - $ref: '#/components/schemas/TagStyle'
            - type: 'null'
        created_by:
          type: string
          title: Created By
        updated_by:
          type: string
          title: Updated By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        deleted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deleted At
      type: object
      required:
        - id
        - name
        - fully_qualified_name
        - version
        - category_id
        - created_by
        - updated_by
        - created_at
        - updated_at
      title: CatalogTagDetail
      description: Full catalog tag representation.
    CatalogTagListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/CatalogTagSummary'
          type: array
          title: Data
        pagination:
          $ref: '#/components/schemas/Pagination'
      type: object
      required:
        - data
        - pagination
      title: CatalogTagListResponse
      description: Paginated list response for catalog tags.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Standard error response model.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TagStyle:
      properties:
        color:
          anyOf:
            - type: string
              maxLength: 50
            - type: 'null'
          title: Color
          description: Tag color (e.g., '#FF0000', 'red')
        icon:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Icon
          description: Tag icon identifier
      type: object
      title: TagStyle
      description: Visual styling for a tag.
    CatalogTagSummary:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        fully_qualified_name:
          type: string
          title: Fully Qualified Name
        category_id:
          type: string
          title: Category Id
        version:
          type: integer
          title: Version
        style:
          anyOf:
            - $ref: '#/components/schemas/TagStyle'
            - type: 'null'
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - name
        - fully_qualified_name
        - category_id
        - version
        - created_at
      title: CatalogTagSummary
      description: Lightweight catalog tag for list responses.
    Pagination:
      properties:
        page:
          type: integer
          minimum: 1
          title: Page
          description: Current page number (starts at 1)
        limit:
          type: integer
          maximum: 100
          minimum: 1
          title: Limit
          description: Items per page (max 100)
        total_items:
          type: integer
          minimum: 0
          title: Total Items
        total_pages:
          type: integer
          minimum: 0
          title: Total Pages
        next_page:
          anyOf:
            - type: integer
            - type: 'null'
          title: Next Page
        prev_page:
          anyOf:
            - type: integer
            - type: 'null'
          title: Prev Page
      type: object
      required:
        - page
        - limit
        - total_items
        - total_pages
      title: Pagination
      description: Pagination metadata for list responses.
    ErrorBody:
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          title: Message
        details:
          additionalProperties: true
          type: object
          title: Details
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - code
        - message
        - request_id
        - timestamp
      title: ErrorBody
      description: Error body with structured details.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - INVALID_TOKEN
        - INSUFFICIENT_PERMISSIONS
        - RESOURCE_NOT_FOUND
        - RESOURCE_ALREADY_EXISTS
        - VALIDATION_ERROR
        - RATE_LIMIT_EXCEEDED
        - SERVICE_UNAVAILABLE
        - INTERNAL_ERROR
      title: ErrorCode
      description: Standard error codes for API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.