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

# Get evaluation count and last-evaluated date per product

> For each requested product, returns the total non-deleted evaluation count and the `createdAt` of the most recent one. Computed as one grouped aggregate covering every requested product instead of a paginated list request, so a caller that only needs a count and a date does not pay for an unindexable sort over every matching evaluation.



## OpenAPI

````yaml https://api.galtea.ai/openapi.json get /evaluations/summary
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:
  /evaluations/summary:
    get:
      tags:
        - evaluations
      summary: Get evaluation count and last-evaluated date per product
      description: >-
        For each requested product, returns the total non-deleted evaluation
        count and the `createdAt` of the most recent one. Computed as one
        grouped aggregate covering every requested product instead of a
        paginated list request, so a caller that only needs a count and a date
        does not pay for an unindexable sort over every matching evaluation.
      operationId: getEvaluationSummaryByProduct
      parameters:
        - schema:
            type: array
            items:
              type: string
            description: Repeated query param; one value per product. At most 100.
            maxItems: 100
          required: true
          description: Repeated query param; one value per product. At most 100.
          style: form
          explode: true
          name: productIds
          in: query
        - schema:
            type: boolean
            description: Filter by the joined `Session.isProduction` flag.
          required: false
          description: Filter by the joined `Session.isProduction` flag.
          name: isProduction
          in: query
      responses:
        '200':
          description: Evaluation summaries per product
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EvaluationSummary'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Product not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    EvaluationSummary:
      type: object
      properties:
        productId:
          type: string
          description: The requested product
        count:
          type: integer
          description: Non-deleted evaluations matching the filters
        lastEvaluatedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            `createdAt` of the most recent matching evaluation, or null when
            there are none
      required:
        - productId
        - count
        - lastEvaluatedAt
    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-...`.

````