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

# Review agreement

> How much reviewers and the system agree, per item type.



## OpenAPI

````yaml openapi/en/cell.json GET /v1/review/agreement
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-1
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/review/agreement:
    get:
      tags:
        - governance
      summary: Review agreement
      description: >-
        How much reviewers agree with the system, and with each other, per kind
        of item, over the last `days` days. It is the number that tells whether
        the extraction and the measurement can be trusted in your space.


        **Authentication.** Console person token with the `review` role (or
        admin), or a source key with the `admin` scope.
      operationId: review_agreement_v1_review_agreement_get
      parameters:
        - in: query
          name: days
          required: false
          schema:
            default: 90
            maximum: 365
            minimum: 1
            title: Days
            type: integer
          description: Window of the report, from 1 to 365 days.
          example: 90
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgreementReport'
              example:
                since: '2026-06-24T00:00:00Z'
                targets:
                  - target: fact
                    judged: 1840
                    agreed: 1712
                    system_agreement:
                      value: 0.93
                      low: 0.92
                      high: 0.94
                      'n': 1840
                    reviewer_pairs: 120
                    reviewer_agreement:
                      value: 0.95
                      low: 0.9
                      high: 0.98
                      'n': 120
                  - target: signal
                    judged: 610
                    agreed: 562
                    system_agreement:
                      value: 0.92
                      low: 0.9
                      high: 0.94
                      'n': 610
                    reviewer_pairs: 0
                    reviewer_agreement: null
          description: Agreement per kind of item, with confidence intervals.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    AgreementReport:
      additionalProperties: false
      properties:
        since:
          format: date-time
          title: Since
          type: string
        targets:
          items:
            $ref: '#/components/schemas/AgreementOut'
          title: Targets
          type: array
      required:
        - since
        - targets
      title: AgreementReport
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    AgreementOut:
      additionalProperties: false
      properties:
        agreed:
          title: Agreed
          type: integer
        judged:
          title: Judged
          type: integer
        reviewer_agreement:
          anyOf:
            - $ref: '#/components/schemas/RateOut'
            - type: 'null'
        reviewer_pairs:
          title: Reviewer Pairs
          type: integer
        system_agreement:
          anyOf:
            - $ref: '#/components/schemas/RateOut'
            - type: 'null'
        target:
          title: Target
          type: string
      required:
        - target
        - judged
        - agreed
        - system_agreement
        - reviewer_pairs
        - reviewer_agreement
      title: AgreementOut
      type: object
    RateOut:
      additionalProperties: false
      properties:
        high:
          title: High
          type: number
        low:
          description: Lower bound of the 95% Wilson interval.
          title: Low
          type: number
        'n':
          description: 'The denominator: small samples get wide intervals.'
          title: 'N'
          type: integer
        value:
          title: Value
          type: number
      required:
        - value
        - low
        - high
        - 'n'
      title: RateOut
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````