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

# Get Tag Group Performance

> Roll up outcome stats for the entities in a tag group by tag value: per-value won/lost/open/total deal counts, finding and call counts, correlated won amount, and win rate (from summed deals across the entities carrying each value). `totalDealCount` includes open deals; `dataWindow` states which precomputed stats period the numbers cover.



## OpenAPI

````yaml get /api/v2/tag-group/performance
openapi: 3.0.0
info:
  version: 5.4.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/tag-group/performance:
    get:
      tags:
        - Tag Group
      summary: Get Tag Group Performance
      description: >-
        Roll up outcome stats for the entities in a tag group by tag value:
        per-value won/lost/open/total deal counts, finding and call counts,
        correlated won amount, and win rate (from summed deals across the
        entities carrying each value). `totalDealCount` includes open deals;
        `dataWindow` states which precomputed stats period the numbers cover.
      operationId: getTagGroupPerformance
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Tag group OId
            example: tg_1234
          required: true
          description: Tag group OId
          name: oId
          in: query
        - schema:
            type: string
            format: date-time
            description: ISO datetime anchor for the 'as of' window. Defaults to now.
          required: false
          description: ISO datetime anchor for the 'as of' window. Defaults to now.
          name: anchorAt
          in: query
      responses:
        '200':
          description: Get Tag Group Performance response
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  data:
                    $ref: '#/components/schemas/TagGroupPerformance'
                required:
                  - _metadata
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
        '404':
          description: Tag group, tag or entity not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          example: 0
          description: API usage
        requestId:
          type: string
          example: requestId
          description: Request ID
        message:
          type: string
          example: message
          description: Message
        timestamp:
          type: string
          example: '2021-01-01T00:00:00.000Z'
          description: Timestamp
      required:
        - requestId
        - timestamp
    TagGroupPerformance:
      type: object
      properties:
        tagGroupOId:
          type: string
        tagGroupName:
          type: string
        entityType:
          type: string
          enum:
            - segment
            - persona
            - use_case
            - proof_point
            - reference
            - competitor
            - alternative
            - buying_trigger
            - objection
            - product
            - service
            - solution
            - core_feature
        anchorAt:
          type: string
          format: date-time
        dataWindow:
          type: object
          properties:
            kind:
              type: string
              enum:
                - event_range
                - stats_period
            startDate:
              type: string
              nullable: true
              description: Inclusive start (ISO). Null only when no data exists yet.
            endDate:
              type: string
              nullable: true
              description: >-
                End (ISO). An event_range with no endDate given ends at the time
                of the request.
            isDefault:
              type: boolean
              description: >-
                True when the caller did not choose this window and the tool's
                default applied.
            periodType:
              type: string
              nullable: true
              enum:
                - week
                - month
                - quarter
                - null
              description: week / month / quarter for a stats_period; null otherwise.
          required:
            - kind
            - startDate
            - endDate
            - isDefault
            - periodType
          description: >-
            The time span these numbers cover. Compare numbers from two tools
            only when their dataWindow kind and dates match.
        customerScope:
          type: string
          enum:
            - ALL
            - NEW_CUSTOMERS
            - EXISTING_CUSTOMERS
        entitiesOnOlderPeriod:
          type: integer
        items:
          type: array
          items:
            type: object
            properties:
              tagOId:
                type: string
              tagName:
                type: string
              entityCount:
                type: integer
              wonDealCount:
                type: integer
              lostDealCount:
                type: integer
              openDealCount:
                type: integer
              totalDealCount:
                type: integer
              totalFindingCount:
                type: integer
              callFindingCount:
                type: integer
              wonDealTotalAmount:
                type: number
              winRate:
                type: number
                nullable: true
            required:
              - tagOId
              - tagName
              - entityCount
              - wonDealCount
              - lostDealCount
              - openDealCount
              - totalDealCount
              - totalFindingCount
              - callFindingCount
              - wonDealTotalAmount
              - winRate
      required:
        - tagGroupOId
        - tagGroupName
        - entityType
        - anchorAt
        - dataWindow
        - customerScope
        - entitiesOnOlderPeriod
        - items
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````