> ## 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 Group Delta Route

> Record the canonical all-time cohort baseline and return its delta.

This endpoint is intentionally separate from the filterable Insights
response.  A 30/90-day UI filter can never become a retention baseline.
Snapshot failures are fail-open: the main Insights view still renders and
this small projection reports ``unavailable``.



## OpenAPI

````yaml /openapi.json post /api/v1/brands/{brand_id}/brand-intelligence/group-insights/delta
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brands/{brand_id}/brand-intelligence/group-insights/delta:
    post:
      tags:
        - Brand Intelligence
        - Brand Intelligence
      summary: Get Brand Intelligence Group Delta Route
      description: >-
        Record the canonical all-time cohort baseline and return its delta.


        This endpoint is intentionally separate from the filterable Insights

        response.  A 30/90-day UI filter can never become a retention baseline.

        Snapshot failures are fail-open: the main Insights view still renders
        and

        this small projection reports ``unavailable``.
      operationId: >-
        get_brand_intelligence_group_delta_route_api_v1_brands__brand_id__brand_intelligence_group_insights_delta_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/BrandIntelligenceGroupDeltaRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandIntelligenceGroupDeltaResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BrandIntelligenceGroupDeltaRequest:
      properties:
        advertiser_ids:
          items:
            type: string
            format: uuid
          type: array
          maxItems: 60
          minItems: 1
          title: Advertiser Ids
          description: >-
            Advisory client cohort used to validate request shape; the server
            always resolves and persists canonical tracked-group membership.
        group_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Group Id
      type: object
      required:
        - advertiser_ids
      title: BrandIntelligenceGroupDeltaRequest
      description: Stable Paid Media cohort to observe against its prior daily baseline.
    BrandIntelligenceGroupDeltaResponse:
      properties:
        group_key:
          type: string
          title: Group Key
        status:
          type: string
          enum:
            - baseline_started
            - ready
            - membership_changed
            - unavailable
          title: Status
        since:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Since
        captured_at:
          type: string
          format: date-time
          title: Captured At
        net_new_ads:
          type: integer
          minimum: 0
          title: Net New Ads
          default: 0
        accelerated_brands:
          items:
            $ref: '#/components/schemas/BrandIntelligenceGroupDeltaAcceleratedBrand'
          type: array
          maxItems: 5
          title: Accelerated Brands
        themes_entered_top_10:
          items:
            $ref: '#/components/schemas/BrandIntelligenceGroupDeltaTheme'
          type: array
          maxItems: 5
          title: Themes Entered Top 10
      type: object
      required:
        - group_key
        - status
        - captured_at
      title: BrandIntelligenceGroupDeltaResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BrandIntelligenceGroupDeltaAcceleratedBrand:
      properties:
        advertiser_id:
          type: string
          format: uuid
          title: Advertiser Id
        name:
          type: string
          title: Name
        change:
          type: integer
          minimum: 1
          title: Change
        current_new_ads_30d:
          type: integer
          minimum: 0
          title: Current New Ads 30D
        previous_new_ads_30d:
          type: integer
          minimum: 0
          title: Previous New Ads 30D
      type: object
      required:
        - advertiser_id
        - name
        - change
        - current_new_ads_30d
        - previous_new_ads_30d
      title: BrandIntelligenceGroupDeltaAcceleratedBrand
    BrandIntelligenceGroupDeltaTheme:
      properties:
        key:
          type: string
          title: Key
        count:
          type: integer
          minimum: 0
          title: Count
      type: object
      required:
        - key
        - count
      title: BrandIntelligenceGroupDeltaTheme
    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

````