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

# Get Brand Intelligence Commentary History Route

> Archived commentary for one owned brand, newest first.

Read-only over ``brand_intel_commentary_history`` (every response that
reached a commentary cache, fallbacks included). Same gate + ownership
contract as the commentary routes: the two gates every commentary route
shares (Brand Intelligence + group insights, which is the parent flag of
every module commentary flag) fire first, then ``_get_brand_or_404``
scopes the brand to the caller, and the service query is additionally
bound to ``user_id`` so a caller can never read another user's rows
(UOB/DOB). Never triggers a generation.



## OpenAPI

````yaml /openapi.json get /api/v1/brands/{brand_id}/brand-intelligence/commentary-history
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/brand-intelligence/commentary-history:
    get:
      tags:
        - Brand Intelligence
        - Brand Intelligence
      summary: Get Brand Intelligence Commentary History Route
      description: |-
        Archived commentary for one owned brand, newest first.

        Read-only over ``brand_intel_commentary_history`` (every response that
        reached a commentary cache, fallbacks included). Same gate + ownership
        contract as the commentary routes: the two gates every commentary route
        shares (Brand Intelligence + group insights, which is the parent flag of
        every module commentary flag) fire first, then ``_get_brand_or_404``
        scopes the brand to the caller, and the service query is additionally
        bound to ``user_id`` so a caller can never read another user's rows
        (UOB/DOB). Never triggers a generation.
      operationId: >-
        get_brand_intelligence_commentary_history_route_api_v1_brands__brand_id__brand_intelligence_commentary_history_get
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Brand Id
        - name: module
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 40
              - type: 'null'
            title: Module
        - name: group_key
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 64
              - type: 'null'
            title: Group Key
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            title: Limit
            default: 20
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/BrandIntelligenceCommentaryHistoryResponse
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BrandIntelligenceCommentaryHistoryResponse:
      properties:
        brand_id:
          type: string
          format: uuid
          title: Brand Id
        items:
          items:
            $ref: '#/components/schemas/BrandIntelligenceCommentaryHistoryEntry'
          type: array
          title: Items
      type: object
      required:
        - brand_id
      title: BrandIntelligenceCommentaryHistoryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BrandIntelligenceCommentaryHistoryEntry:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
        module:
          type: string
          title: Module
        subject:
          type: string
          title: Subject
        group_key:
          type: string
          title: Group Key
        period:
          type: string
          title: Period
        prompt_version:
          type: string
          title: Prompt Version
        schema_version:
          type: string
          title: Schema Version
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
        narrated:
          type: boolean
          title: Narrated
        fallback_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Fallback Reason
        response:
          additionalProperties: true
          type: object
          title: Response
      type: object
      required:
        - id
        - created_at
        - module
        - subject
        - group_key
        - period
        - prompt_version
        - schema_version
        - narrated
      title: BrandIntelligenceCommentaryHistoryEntry
      description: |-
        One archived commentary response (``brand_intel_commentary_history``).

        ``response`` is the full cached payload of that period — the group or
        module commentary response as it was served — so a reader can diff two
        periods without re-generating either. ``narrated=False`` rows are
        deterministic fallbacks kept so the timeline stays complete.
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````