> ## 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 human annotation stats aggregated by date

> Aggregates human annotation pass/total counts bucketed by the requested time granularity. `avgScore` is always 0 and is returned only for chart-shape parity with eval stats.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/avido/openapi.documented.yml get /v0/reporting/human-annotation-stats/by-date
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/reporting/human-annotation-stats/by-date:
    get:
      tags:
        - Reports
      summary: Get human annotation stats aggregated by date
      description: >-
        Aggregates human annotation pass/total counts bucketed by the requested
        time granularity. `avgScore` is always 0 and is returned only for
        chart-shape parity with eval stats.
      operationId: getHumanAnnotationStatsByDate
      parameters:
        - in: query
          name: start
          schema:
            description: Start of the time range (ISO8601, inclusive).
            example: '2025-01-01T00:00:00Z'
            type: string
            format: date-time
            pattern: >-
              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
          description: Start of the time range (ISO8601, inclusive).
        - in: query
          name: end
          schema:
            description: End of the time range (ISO8601, inclusive).
            example: '2025-01-31T23:59:59Z'
            type: string
            format: date-time
            pattern: >-
              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
          description: End of the time range (ISO8601, inclusive).
        - in: query
          name: topicIds
          schema:
            description: Optional list of topic IDs to restrict the aggregation to.
            example:
              - 123e4567-e89b-12d3-a456-426614174000
            maxItems: 200
            type: array
            items:
              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: Optional list of topic IDs to restrict the aggregation to.
        - in: query
          name: timeBucket
          schema:
            $ref: '#/components/schemas/HumanAnnotationStatsTimeBucket'
            default: 1d
            description: >-
              Granularity used to bucket rows by date. Defaults to '1d' when
              omitted.
            example: 1d
          description: >-
            Granularity used to bucket rows by date. Defaults to '1d' when
            omitted.
      responses:
        '200':
          description: Successfully retrieved human annotation stats by date
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HumanAnnotationStatsByDateResponse'
              examples:
                success:
                  summary: Human annotation stats by date
                  value:
                    stats:
                      - date: '2025-01-05T00:00:00.000Z'
                        passed: 42
                        total: 50
                        avgScore: 0
                    total: 50
        '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'
        '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:
    HumanAnnotationStatsTimeBucket:
      type: string
      enum:
        - 1h
        - 1d
        - 1w
        - 1mo
      title: HumanAnnotationStatsTimeBucket
      description: >-
        Granularity used to bucket human annotation stats by date (hour, day,
        week or month).
      example: 1d
    HumanAnnotationStatsByDateResponse:
      type: object
      properties:
        stats:
          type: array
          items:
            $ref: '#/components/schemas/HumanAnnotationStatByDateOutput'
          description: >-
            Human annotation stats aggregated per date bucket, ordered by bucket
            start.
        total:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Sum of `total` across all returned stat rows.
          example: 100
      required:
        - stats
        - total
      additionalProperties: false
      title: HumanAnnotationStatsByDateResponse
      description: Human annotation stats aggregated by date bucket.
    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.
    HumanAnnotationStatByDateOutput:
      type: object
      properties:
        date:
          description: Start of the time bucket (ISO8601).
          example: '2025-01-05T00:00:00.000Z'
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        passed:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Number of human annotations with verdict=true in the bucket.
          example: 42
        total:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Total number of human annotations in the bucket.
          example: 50
        avgScore:
          type: number
          description: >-
            Always 0 for human annotations; included only for chart-shape parity
            with eval stats.
          example: 0
      required:
        - date
        - passed
        - total
        - avgScore
      additionalProperties: false
      title: HumanAnnotationStatByDate
      description: >-
        Aggregated human annotation stats for a single date bucket. `avgScore`
        is always 0 and is included only for chart-shape parity with eval stats.
  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

````