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

# Account Group History Route



## OpenAPI

````yaml /openapi.json get /api/v1/brand-intelligence/tracked-groups/{group_id}/insights/history
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brand-intelligence/tracked-groups/{group_id}/insights/history:
    get:
      tags:
        - Brand Intelligence
      summary: Account Group History Route
      operationId: >-
        account_group_history_route_api_v1_brand_intelligence_tracked_groups__group_id__insights_history_get
      parameters:
        - name: group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Group Id
        - 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:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          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

````