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

# Get task agreement

> Get human-vs-human and human-vs-evaluator agreement metrics for a task



## OpenAPI

````yaml /api-reference/openapi.json get /annotation-tasks/{task_uuid}/agreement
openapi: 3.1.0
info:
  title: Calibrate Public API
  version: 0.1.0
  description: Programmatic API for CI/automation. Pass your key in the `X-API-Key` header.
servers:
  - url: https://api.calibrate.artpark.ai
    description: Production
security: []
paths:
  /annotation-tasks/{task_uuid}/agreement:
    get:
      tags:
        - annotation-tasks
      summary: Get task agreement
      description: Get human-vs-human and human-vs-evaluator agreement metrics for a task
      operationId: task_agreement_annotation_tasks__task_uuid__agreement_get
      parameters:
        - name: task_uuid
          in: path
          required: true
          schema:
            type: string
            description: Annotation task to act on
            examples:
              - f47ac10b-58cc-4372-a567-0e02b2c3d479
            title: Task Uuid
          description: Annotation task to act on
        - name: bucket
          in: query
          required: false
          schema:
            enum:
              - week
              - month
              - year
            type: string
            description: How to bucket points in the trend series
            default: week
            title: Bucket
          description: How to bucket points in the trend series
        - name: days
          in: query
          required: false
          schema:
            type: integer
            maximum: 3650
            minimum: 1
            description: Trailing window in days for the trend series
            default: 90
            title: Days
          description: Trailing window in days for the trend series
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskAgreementResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TaskAgreementResponse:
      properties:
        task_id:
          type: string
          title: Task Id
          description: ID of the task
          examples:
            - f47ac10b-58cc-4372-a567-0e02b2c3d479
        bucket:
          type: string
          title: Bucket
          description: Time bucket used for the trend series
        days:
          type: integer
          title: Days
          description: Length of the trailing window in days
        human_human:
          $ref: '#/components/schemas/HumanAgreementBlock'
          description: Agreement between annotators who labelled the same items
        evaluators:
          items:
            additionalProperties: true
            type: object
          type: array
          description: >-
            Agreement between each evaluator and the annotators, one entry per
            linked evaluator
      additionalProperties: true
      type: object
      required:
        - task_id
        - bucket
        - days
        - human_human
        - evaluators
      title: TaskAgreementResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HumanAgreementBlock:
      properties:
        current:
          anyOf:
            - type: number
            - type: 'null'
          title: Current
          description: Current mean pairwise agreement among annotators
        pair_count:
          type: integer
          title: Pair Count
          description: How many annotator pairs the current value averages over
        series:
          items:
            additionalProperties: true
            type: object
          type: array
          description: Agreement over time, one point per time bucket
      additionalProperties: true
      type: object
      required:
        - current
        - pair_count
        - series
      title: HumanAgreementBlock
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````