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

# Get policy eval counts for a quickstart

> Returns the total topics count, application-wide eval count, and per-topic eval counts for a quickstart. Includes both DRAFT and ACTIVE evals. Only evals created by this quickstart are counted.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/avido/openapi.documented.yml get /v0/quickstarts/{id}/policy-counts
openapi: 3.1.1
info:
  title: Avido API
  description: >-
    Avido's API for LLM usage events, tool calls, trace management, webhook
    validation, and more. See each endpoint's request/response schema for
    details.
  version: 0.1.0
  contact:
    name: Avido Support
    email: support@avidoai.com
    url: https://avidoai.com/support
servers:
  - url: https://api.avidoai.com
    description: Production API
security:
  - ApiKey: []
    ApplicationId: []
paths:
  /v0/quickstarts/{id}/policy-counts:
    get:
      tags:
        - QuickstartsV2
      summary: Get policy eval counts for a quickstart
      description: >-
        Returns the total topics count, application-wide eval count, and
        per-topic eval counts for a quickstart. Includes both DRAFT and ACTIVE
        evals. Only evals created by this quickstart are counted.
      operationId: getPolicyCounts
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            description: The unique identifier of the quickstart
            example: 123e4567-e89b-12d3-a456-426614174000
          required: true
          description: The unique identifier of the quickstart
      responses:
        '200':
          description: Successfully retrieved policy counts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyCountsResponse'
        '400':
          description: bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Quickstart not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
        '500':
          description: internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    PolicyCountsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            topicsCount:
              type: integer
              minimum: 0
              maximum: 9007199254740991
              description: Total number of topics in the quickstart
              example: 4
            applicationEvalCount:
              type: integer
              minimum: 0
              maximum: 9007199254740991
              description: >-
                Number of application-wide eval definitions (via
                EvalDefinitionApplication) created by this quickstart
              example: 1
            topicEvalCounts:
              type: array
              items:
                $ref: '#/components/schemas/TopicEvalCountOutput'
              description: >-
                Eval definition counts per topic. Topics with zero matching
                evals are omitted.
          required:
            - topicsCount
            - applicationEvalCount
            - topicEvalCounts
          additionalProperties: false
      required:
        - data
      additionalProperties: false
      title: PolicyCountsResponse
      description: >-
        Response containing policy eval counts for a quickstart: total topics,
        application-wide eval count, and per-topic eval counts. Includes both
        DRAFT and ACTIVE evals so counts are stable across POLICIES_REVIEW and
        COMPLETE statuses.
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable error message explaining the error.
          example: Resource not found
      required:
        - message
      additionalProperties: false
      title: ErrorResponse
      description: Standard error format for failed API operations.
    ValidationErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable error message indicating what went wrong.
          example: Invalid request data
        issues:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              message:
                type: string
              path:
                type: array
                items:
                  type: string
            required:
              - code
              - message
              - path
            additionalProperties: false
          description: Array of detailed validation error objects.
          example:
            - code: invalid_string
              message: Invalid UUID
              path:
                - id
      required:
        - message
        - issues
      additionalProperties: false
      title: ValidationErrorResponse
      description: Details about validation errors in incoming requests.
    TopicEvalCountOutput:
      type: object
      properties:
        topicId:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: Topic ID
          example: 789e4567-e89b-12d3-a456-426614174000
        evalCount:
          type: integer
          minimum: 0
          maximum: 9007199254740991
          description: Number of eval definitions scoped to this topic for the quickstart
          example: 2
      required:
        - topicId
        - evalCount
      additionalProperties: false
      title: TopicEvalCount
      description: >-
        Per-topic eval definition count for a quickstart. Only topics with at
        least one matching eval are included.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your unique Avido API key
    ApplicationId:
      type: apiKey
      in: header
      name: x-application-id
      description: Your unique Avido Application ID

````