> ## 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 Social Own Commentary Route

> Weekly rule-bound commentary on the brand's own posting.

Runs on its OWN cache scope. ``group_key`` hashes only (domains,
platforms, window), so a one-brand own cohort and a one-competitor
cohort holding the same domain produce an identical key -- on a shared
scope the user would read a competitor's commentary as their own.



## OpenAPI

````yaml /openapi.json post /api/v1/brands/{brand_id}/brand-intelligence/social-own-insights/commentary
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/brand-intelligence/social-own-insights/commentary:
    post:
      tags:
        - Brand Intelligence
        - Brand Intelligence
      summary: Get Brand Intelligence Social Own Commentary Route
      description: |-
        Weekly rule-bound commentary on the brand's own posting.

        Runs on its OWN cache scope. ``group_key`` hashes only (domains,
        platforms, window), so a one-brand own cohort and a one-competitor
        cohort holding the same domain produce an identical key -- on a shared
        scope the user would read a competitor's commentary as their own.
      operationId: >-
        get_brand_intelligence_social_own_commentary_route_api_v1_brands__brand_id__brand_intelligence_social_own_insights_commentary_post
      parameters:
        - name: brand_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Brand Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SocialOwnCommentaryRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModuleGroupCommentaryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    SocialOwnCommentaryRequest:
      properties:
        window_days:
          type: integer
          enum:
            - 7
            - 30
            - 90
          title: Window Days
          default: 30
        platforms:
          items:
            type: string
            enum:
              - youtube
              - x
              - linkedin
              - instagram
              - facebook
              - tiktok
          type: array
          maxItems: 6
          title: Platforms
        refresh:
          type: boolean
          title: Refresh
          default: false
      type: object
      title: SocialOwnCommentaryRequest
    ModuleGroupCommentaryResponse:
      properties:
        module:
          type: string
          enum:
            - seo
            - content
            - reviews
            - social
            - google-ads
            - audits
          title: Module
        group_key:
          type: string
          title: Group Key
        generated_at:
          type: string
          format: date-time
          title: Generated At
        period:
          type: string
          title: Period
        prompt_version:
          type: string
          title: Prompt Version
        schema_version:
          type: string
          title: Schema Version
        status:
          type: string
          enum:
            - ready
            - pending
          title: Status
          default: ready
        summary:
          type: string
          maxLength: 600
          title: Summary
          default: ''
        strengths:
          items:
            $ref: '#/components/schemas/ModuleInsight'
          type: array
          maxItems: 6
          title: Strengths
        weaknesses:
          items:
            $ref: '#/components/schemas/ModuleInsight'
          type: array
          maxItems: 6
          title: Weaknesses
        table_stakes:
          items:
            $ref: '#/components/schemas/ModuleInsight'
          type: array
          maxItems: 6
          title: Table Stakes
        recommendations:
          items:
            $ref: '#/components/schemas/ModuleInsight'
          type: array
          maxItems: 6
          title: Recommendations
        source_refs:
          additionalProperties:
            type: string
          type: object
          title: Source Refs
        provenance:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Provenance
        fallback_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Fallback Reason
        refresh_available_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Refresh Available At
      type: object
      required:
        - module
        - group_key
        - generated_at
        - period
        - prompt_version
        - schema_version
      title: ModuleGroupCommentaryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ModuleInsight:
      properties:
        title:
          type: string
          maxLength: 120
          minLength: 1
          title: Title
        detail:
          type: string
          maxLength: 600
          minLength: 1
          title: Detail
        evidence_refs:
          items:
            type: string
          type: array
          maxItems: 8
          minItems: 1
          title: Evidence Refs
        confidence:
          type: string
          enum:
            - low
            - medium
            - high
          title: Confidence
          default: medium
        rule_id:
          type: string
          maxLength: 80
          minLength: 1
          title: Rule Id
      type: object
      required:
        - title
        - detail
        - evidence_refs
        - rule_id
      title: ModuleInsight
      description: >-
        One narrated item. ``rule_id`` binds it to a deterministic finding.


        This is the D2 close: the LLM narrates measured facts and never invents

        analysis, because every item it emits must name the rule that produced
        it.
    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

````