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

# Get an evaluation

> Requires judgments:read.



## OpenAPI

````yaml /openapi.json get /api/evaluations/{id}
openapi: 3.1.0
info:
  title: judged.systems
  version: 0.1.0
  description: >-
    Judge one support ticket. Product routes accept an API key or a browser
    session. If a key is sent, the session is not used. POST /api/judge and POST
    /api/webhooks/inbound accept an API key only. Send the key in the x-api-key
    header or as Authorization: Bearer.
servers:
  - url: https://judged.systems
security:
  - apiKey: []
  - bearerAuth: []
  - {}
tags:
  - name: Packs
  - name: Judge
  - name: Evaluations
  - name: Reviews
  - name: Labels
  - name: Datasets
  - name: Simulations
  - name: Stats
  - name: Webhooks
paths:
  /api/evaluations/{id}:
    get:
      tags:
        - Evaluations
      summary: Get an evaluation
      description: Requires judgments:read.
      operationId: getEvaluation
      parameters:
        - $ref: '#/components/parameters/evaluationId'
      responses:
        '200':
          description: The evaluation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Evaluation'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    evaluationId:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    Evaluation:
      type: object
      required:
        - id
        - packId
        - packVersionId
        - source
        - status
        - redactedTicket
        - result
        - modelId
        - latencyMs
        - usage
        - createdAt
        - labels
      properties:
        id:
          type: string
        packId:
          type: string
        packVersionId:
          type: string
        source:
          $ref: '#/components/schemas/EvaluationSource'
        status:
          $ref: '#/components/schemas/ResultStatus'
        redactedTicket:
          $ref: '#/components/schemas/Ticket'
        result:
          $ref: '#/components/schemas/JudgmentResult'
        modelId:
          type: string
        latencyMs:
          type: integer
        usage:
          type:
            - object
            - 'null'
        createdAt:
          type: string
          format: date-time
        labels:
          type: array
          items:
            $ref: '#/components/schemas/EvaluationLabel'
    EvaluationSource:
      type: string
      enum:
        - playground
        - api
        - mcp
        - webhook
        - simulation
    ResultStatus:
      type: string
      enum:
        - accept
        - review
        - reject
    Ticket:
      type: object
      required:
        - subject
        - customerMessage
      example:
        externalId: '48213'
        subject: Charged twice for May
        customerMessage: I was billed twice and want one refunded.
      properties:
        externalId:
          type: string
          minLength: 1
        subject:
          type: string
          minLength: 1
        customerMessage:
          type: string
          minLength: 1
        messages:
          type: array
          items:
            $ref: '#/components/schemas/TicketMessage'
        metadata:
          type: object
          additionalProperties:
            type:
              - string
              - number
              - boolean
              - 'null'
        createdAt:
          type: string
          format: date-time
    JudgmentResult:
      type: object
      required:
        - status
        - answers
        - reviewReasons
        - modelId
        - latencyMs
      properties:
        status:
          $ref: '#/components/schemas/ResultStatus'
        answers:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/Answer'
        reviewReasons:
          type: array
          items:
            type: string
        derived:
          type: object
          properties:
            department:
              type: string
            priority:
              type: string
            tags:
              type: array
              items:
                type: string
        usage:
          type: object
          properties:
            inputTokens:
              type: number
            outputTokens:
              type: number
        modelId:
          type: string
          minLength: 1
        latencyMs:
          type: number
    EvaluationLabel:
      allOf:
        - $ref: '#/components/schemas/Label'
        - type: object
          required:
            - agreement
          properties:
            agreement:
              type:
                - boolean
                - 'null'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        issues:
          type: array
          items:
            type: object
    TicketMessage:
      type: object
      required:
        - role
        - text
      properties:
        role:
          type: string
          enum:
            - customer
            - agent
            - system
        text:
          type: string
        at:
          type: string
          format: date-time
    Answer:
      oneOf:
        - $ref: '#/components/schemas/ChoiceAnswer'
        - $ref: '#/components/schemas/ScoreAnswer'
        - $ref: '#/components/schemas/BooleanAnswer'
    Label:
      type: object
      required:
        - id
        - questionId
        - answer
        - note
      properties:
        id:
          type: string
        questionId:
          type: string
        answer:
          $ref: '#/components/schemas/LabelAnswer'
        note:
          type:
            - string
            - 'null'
    ChoiceAnswer:
      type: object
      required:
        - type
        - choice
      properties:
        type:
          const: choice
        choice:
          type: string
        probabilities:
          type: object
          additionalProperties:
            type: number
            minimum: 0
            maximum: 1
    ScoreAnswer:
      type: object
      required:
        - type
        - score
      properties:
        type:
          const: score
        score:
          type: number
        probabilities:
          type: object
          additionalProperties:
            type: number
            minimum: 0
            maximum: 1
    BooleanAnswer:
      type: object
      required:
        - type
        - probability
      properties:
        type:
          const: boolean
        probability:
          type: number
          minimum: 0
          maximum: 1
    LabelAnswer:
      oneOf:
        - $ref: '#/components/schemas/ChoiceLabel'
        - $ref: '#/components/schemas/ScoreLabel'
        - $ref: '#/components/schemas/BooleanLabel'
    ChoiceLabel:
      type: object
      required:
        - type
        - choice
      properties:
        type:
          const: choice
        choice:
          type: string
          minLength: 1
    ScoreLabel:
      type: object
      required:
        - type
        - levelIndex
      properties:
        type:
          const: score
        levelIndex:
          type: integer
          minimum: 0
    BooleanLabel:
      type: object
      required:
        - type
        - value
      properties:
        type:
          const: boolean
        value:
          type: boolean
  responses:
    Error:
      description: >-
        Error body is { error: string }. Status is 400, 401, 403, 404, 409, 429,
        or 500. A 400 from a schema failure also includes issues.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    bearerAuth:
      type: http
      scheme: bearer
      description: 'The API key, sent as Authorization: Bearer.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.