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

# Concordância da revisão

> Quanto revisores e sistema concordam, por tipo de item.



## OpenAPI

````yaml openapi/pt/cell.json GET /v1/review/agreement
openapi: 3.1.0
info:
  title: API de dados da Niadra
  version: '1'
  description: >-
    Escrita, contexto, histórico, objetos, identidade, privacidade e governança
    de um espaço. Cada espaço tem um endereço estável, com o espaço e a região
    no nome.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: O espaço, que vem na chave de fonte.
      region:
        default: us-east-1
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/review/agreement:
    get:
      tags:
        - governance
      summary: Concordância da revisão
      description: >-
        Quanto os revisores concordam com o sistema, e entre si, por tipo de
        item, nos últimos `days` dias. É o número que diz se a extração e a
        medição merecem confiança no seu espaço.


        **Autenticação.** Token de pessoa do Console com o papel `review` (ou
        admin), ou chave de fonte com o escopo `admin`.
      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: Janela do relatório, de 1 a 365 dias.
          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: Concordância por tipo de item, com intervalos de confiança.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      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: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      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: Limite inferior do intervalo de Wilson de 95%.
          title: Low
          type: number
        'n':
          description: 'O denominador: amostras pequenas dão intervalos largos.'
          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

````