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

# Count replay candidates per product for a test case revision

> For each requested product, returns how many historical evaluations in this test case's revision family would be replayed against this revision. A candidate is a distinct `(version, metric)` combination that any revision in the family was evaluated with (production sessions excluded) and whose version has not yet been run against this revision. Products with no candidates return `count: 0`. The revision must be the active head of its family, matching the replay call itself.




## OpenAPI

````yaml https://api.galtea.ai/openapi.json get /testCases/{id}/replay-candidate-count
openapi: 3.0.0
info:
  version: 1.0.0
  title: Product Management Service API
  description: API documentation for Product Management Service
  contact:
    name: Galtea AI
servers:
  - url: https://api.galtea.ai
security:
  - bearerAuth: []
tags: []
externalDocs:
  description: Galtea Platform Documentation
  url: https://docs.galtea.ai
paths:
  /testCases/{id}/replay-candidate-count:
    get:
      tags:
        - test-cases
      summary: Count replay candidates per product for a test case revision
      description: >
        For each requested product, returns how many historical evaluations in
        this test case's revision family would be replayed against this
        revision. A candidate is a distinct `(version, metric)` combination that
        any revision in the family was evaluated with (production sessions
        excluded) and whose version has not yet been run against this revision.
        Products with no candidates return `count: 0`. The revision must be the
        active head of its family, matching the replay call itself.
      operationId: getTestCaseReplayCandidateCount
      parameters:
        - name: id
          in: path
          description: Test case revision ID
          required: true
          schema:
            type: string
        - name: productIds
          in: query
          style: form
          explode: true
          required: true
          description: Repeated query param; one value per product.
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: Candidate counts per product
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    productId:
                      type: string
                    count:
                      type: integer
        '400':
          description: Invalid query or non-active revision target
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Test case or product not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: Error type
        message:
          type: string
          example: Error message description
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authorization. Pass your API key in the Authorization header as
        a Bearer token. Both new (`gsk_*`) and legacy (`gsk-`) API keys are
        accepted, e.g. `Authorization: Bearer gsk_...` or `Authorization: Bearer
        gsk-...`.

````