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

# List tags for a document

> Return all tags associated with *doc_id*, ordered by creation date.



## OpenAPI

````yaml /api-reference/knowledge-api.json get /v1/knowledge/documents/{doc_id}/tags
openapi: 3.1.0
info:
  title: Strattum Knowledge API
  description: >-
    REST API that serves semantic document search — embeddings via the
    configured LLM provider, indexed in Qdrant, with metadata stored in
    PostgreSQL. (PRD-004, Workstream 1.4)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/knowledge/documents/{doc_id}/tags:
    get:
      tags:
        - tags
      summary: List tags for a document
      description: Return all tags associated with *doc_id*, ordered by creation date.
      operationId: list_tags_v1_knowledge_documents__doc_id__tags_get
      parameters:
        - name: doc_id
          in: path
          required: true
          schema:
            type: string
            title: Doc Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagListResponse'
        '404':
          description: Document not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: PostgreSQL unavailable
components:
  schemas:
    TagListResponse:
      properties:
        doc_id:
          type: string
          title: Doc Id
        tags:
          items:
            $ref: '#/components/schemas/TagResponse'
          type: array
          title: Tags
        count:
          type: integer
          title: Count
      type: object
      required:
        - doc_id
        - tags
        - count
      title: TagListResponse
      description: Response for GET /knowledge/documents/{doc_id}/tags.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TagResponse:
      properties:
        id:
          type: integer
          title: Id
        doc_id:
          type: string
          title: Doc Id
        tag:
          type: string
          title: Tag
        status:
          type: string
          title: Status
          description: '''suggested'' | ''confirmed'' | ''rejected'''
        source:
          type: string
          title: Source
          description: '''auto'' | ''manual'''
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - doc_id
        - tag
        - status
        - source
      title: TagResponse
      description: A single tag record.
    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

````