> ## 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 a pack

> Requires packs:read. document is the draft. liveDocument is null when the pack has no published version.



## OpenAPI

````yaml /openapi.json get /api/packs/{packId}
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/packs/{packId}:
    get:
      tags:
        - Packs
      summary: Get a pack
      description: >-
        Requires packs:read. document is the draft. liveDocument is null when
        the pack has no published version.
      operationId: getPack
      parameters:
        - $ref: '#/components/parameters/packId'
      responses:
        '200':
          description: The pack and its draft.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pack'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    packId:
      name: packId
      in: path
      required: true
      schema:
        type: string
  schemas:
    Pack:
      type: object
      required:
        - id
        - name
        - liveVersionId
        - draftVersionId
        - document
        - liveDocument
        - updatedAt
      properties:
        id:
          type: string
        name:
          type: string
        liveVersionId:
          type:
            - string
            - 'null'
        draftVersionId:
          type: string
        document:
          $ref: '#/components/schemas/PackDocument'
        liveDocument:
          oneOf:
            - $ref: '#/components/schemas/PackDocument'
            - type: 'null'
        updatedAt:
          type: string
          format: date-time
    PackDocument:
      type: object
      required:
        - questions
      properties:
        questions:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Question'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        issues:
          type: array
          items:
            type: object
    Question:
      oneOf:
        - $ref: '#/components/schemas/ChoiceQuestion'
        - $ref: '#/components/schemas/ScoreQuestion'
        - $ref: '#/components/schemas/BooleanQuestion'
    ChoiceQuestion:
      type: object
      required:
        - type
        - id
        - name
        - instructions
        - criteria
        - review
      properties:
        type:
          const: choice
        id:
          $ref: '#/components/schemas/QuestionId'
        name:
          type: string
          minLength: 1
        instructions:
          type: string
          minLength: 1
        criteria:
          type: object
          minProperties: 1
          maxProperties: 255
          additionalProperties:
            type: string
            minLength: 1
        review:
          type: object
          required:
            - minSelectedProbability
          properties:
            minSelectedProbability:
              type: number
              minimum: 0
              maximum: 1
    ScoreQuestion:
      type: object
      required:
        - type
        - id
        - name
        - instructions
        - criteria
        - review
      properties:
        type:
          const: score
        id:
          $ref: '#/components/schemas/QuestionId'
        name:
          type: string
          minLength: 1
        instructions:
          type: string
          minLength: 1
        criteria:
          type: array
          minItems: 2
          maxItems: 10
          items:
            type: string
            minLength: 1
        review:
          type: object
          required:
            - minInclusive
            - maxInclusive
          properties:
            minInclusive:
              type: number
            maxInclusive:
              type: number
    BooleanQuestion:
      type: object
      required:
        - type
        - id
        - name
        - instructions
        - review
      properties:
        type:
          const: boolean
        id:
          $ref: '#/components/schemas/QuestionId'
        name:
          type: string
          minLength: 1
        instructions:
          type: string
          minLength: 1
        criteria:
          type: object
          required:
            - 'true'
            - 'false'
          properties:
            'true':
              type: string
            'false':
              type: string
        review:
          type: object
          required:
            - lowExclusive
            - highExclusive
          properties:
            lowExclusive:
              type: number
              minimum: 0
              maximum: 1
            highExclusive:
              type: number
              minimum: 0
              maximum: 1
    QuestionId:
      type: string
      pattern: ^[a-z][a-z0-9_]{0,63}$
  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.