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

# Get online evals versions

> Requires scopes: eval:read



## OpenAPI

````yaml /api-reference/openapi.json get /api/online-evals/monitors/{id}/versions
openapi: 3.1.2
info:
  title: EvalGate API
  version: 18.13.0
  description: EvalGate API. See docs/api-contract.md for stability commitments.
servers:
  - url: https://evalgate.com
    description: Production
  - url: http://localhost:3000
    description: Local
security: []
paths:
  /api/online-evals/monitors/{id}/versions:
    get:
      tags:
        - online evals
      summary: Get online evals versions
      description: 'Requires scopes: eval:read'
      operationId: get_online_evals_monitors_id_versions
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiOnlineEvalsMonitorsIdVersionsResponse200ApplicationJson
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - bearerAuth: []
components:
  schemas:
    GetApiOnlineEvalsMonitorsIdVersionsResponse200ApplicationJson:
      type: object
      properties:
        versions:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              organizationId:
                $ref: '#/components/schemas/OrganizationId'
              monitorId:
                type: number
              versionNumber:
                type: number
              status:
                type: string
              configHash:
                type: string
              sourceSnapshot:
                type: object
                properties:
                  environment:
                    type: string
                  source:
                    type: string
                  status:
                    type: string
                  nameContains:
                    type: string
                  savedViewId:
                    oneOf:
                      - type: 'null'
                      - type: string
                  savedViewQuery:
                    oneOf:
                      - type: 'null'
                      - type: object
                        properties:
                          version:
                            type: number
                            enum:
                              - 1
                          filters:
                            type: array
                            items:
                              type: object
                              properties:
                                field:
                                  oneOf:
                                    - type: string
                                      enum:
                                        - status
                                    - type: string
                                      enum:
                                        - user
                                    - type: string
                                      enum:
                                        - provenance
                                    - type: string
                                      enum:
                                        - source
                                    - type: string
                                      enum:
                                        - environment
                                    - type: string
                                      enum:
                                        - provider
                                    - type: string
                                      enum:
                                        - model
                                    - type: string
                                      enum:
                                        - tag
                                    - type: string
                                      enum:
                                        - trace_id
                                    - type: string
                                      enum:
                                        - duration_ms
                                    - type: string
                                      enum:
                                        - score
                                    - type: string
                                      enum:
                                        - tool_name
                                    - type: string
                                      enum:
                                        - latency_ms
                                    - type: string
                                      enum:
                                        - deployment_version
                                    - type: string
                                      enum:
                                        - session
                                    - type: string
                                      enum:
                                        - prompt_version
                                    - type: string
                                      enum:
                                        - backend
                                    - type: string
                                      enum:
                                        - cost_usd
                                    - type: string
                                      enum:
                                        - review_status
                                    - type: string
                                      enum:
                                        - created
                                    - type: string
                                      enum:
                                        - trace_name
                                    - type: string
                                      enum:
                                        - failure_category
                                    - type: string
                                      enum:
                                        - tool_error
                                    - type: string
                                      enum:
                                        - tokens
                                    - type: string
                                      enum:
                                        - alert_status
                                operator:
                                  oneOf:
                                    - type: string
                                      enum:
                                        - exists
                                    - type: string
                                      enum:
                                        - in
                                    - type: string
                                      enum:
                                        - gte
                                    - type: string
                                      enum:
                                        - lte
                                    - type: string
                                      enum:
                                        - eq
                                    - type: string
                                      enum:
                                        - neq
                                    - type: string
                                      enum:
                                        - gt
                                    - type: string
                                      enum:
                                        - lt
                                    - type: string
                                      enum:
                                        - contains
                                value:
                                  oneOf:
                                    - type: string
                                    - type: number
                                    - type: boolean
                                      enum:
                                        - false
                                    - type: boolean
                                      enum:
                                        - true
                                    - type: array
                                      items:
                                        type: string
                                    - type: array
                                      items:
                                        type: number
                              additionalProperties: false
                              required:
                                - field
                                - operator
                          freeText:
                            type: string
                          sort:
                            type: array
                            items:
                              type: object
                              properties:
                                field:
                                  oneOf:
                                    - type: string
                                      enum:
                                        - duration_ms
                                    - type: string
                                      enum:
                                        - score
                                    - type: string
                                      enum:
                                        - latency_ms
                                    - type: string
                                      enum:
                                        - cost_usd
                                    - type: string
                                      enum:
                                        - created
                                direction:
                                  oneOf:
                                    - type: string
                                      enum:
                                        - asc
                                    - type: string
                                      enum:
                                        - desc
                              additionalProperties: false
                              required:
                                - field
                                - direction
                        additionalProperties: false
                        required:
                          - version
                          - filters
                          - sort
                  savedViewQueryHash:
                    oneOf:
                      - type: 'null'
                      - type: string
                  deploymentId:
                    oneOf:
                      - type: 'null'
                      - type: string
                  promptVersionId:
                    oneOf:
                      - type: 'null'
                      - type: number
                additionalProperties: false
              samplingSnapshot:
                type: object
                properties:
                  mode:
                    oneOf:
                      - type: string
                        enum:
                          - random
                      - type: string
                        enum:
                          - failure_only
                      - type: string
                        enum:
                          - severity_weighted
                      - type: string
                        enum:
                          - uncertainty_weighted
                      - type: string
                        enum:
                          - adaptive
                  sampleRate:
                    type: number
                  failureOnly:
                    type: boolean
                  maxDailySamples:
                    oneOf:
                      - type: 'null'
                      - type: number
                  severityMultiplier:
                    type: number
                  uncertaintyBoost:
                    type: number
                  adaptiveTargetRate:
                    oneOf:
                      - type: 'null'
                      - type: number
                additionalProperties: false
                required:
                  - mode
                  - sampleRate
                  - failureOnly
                  - maxDailySamples
                  - severityMultiplier
                  - uncertaintyBoost
                  - adaptiveTargetRate
              checksSnapshot:
                type: object
                properties:
                  deterministic:
                    type: boolean
                  llmJudge:
                    type: boolean
                  scorerVersionIds:
                    type: array
                    items:
                      type: number
                  maxLatencyMs:
                    oneOf:
                      - type: 'null'
                      - type: number
                  maxCostUsd:
                    oneOf:
                      - type: 'null'
                      - type: number
                  minimumScore:
                    oneOf:
                      - type: 'null'
                      - type: number
                additionalProperties: false
                required:
                  - deterministic
                  - llmJudge
                  - scorerVersionIds
                  - maxLatencyMs
                  - maxCostUsd
                  - minimumScore
              budgetSnapshot:
                type: object
                properties:
                  maxDailyCostUsd:
                    oneOf:
                      - type: 'null'
                      - type: number
                  maxPerCallCostUsd:
                    oneOf:
                      - type: 'null'
                      - type: number
                  maxDailyModelCalls:
                    oneOf:
                      - type: 'null'
                      - type: number
                  backfillMaxCostUsd:
                    oneOf:
                      - type: 'null'
                      - type: number
                  fallbackBehavior:
                    oneOf:
                      - type: string
                        enum:
                          - fail_closed
                      - type: string
                        enum:
                          - skip
                      - type: string
                        enum:
                          - deterministic_only
                additionalProperties: false
                required:
                  - maxDailyCostUsd
                  - maxPerCallCostUsd
                  - maxDailyModelCalls
                  - backfillMaxCostUsd
                  - fallbackBehavior
              alertSnapshot:
                type: object
                properties:
                  failureRateThreshold:
                    type: number
                  minimumSeverity:
                    oneOf:
                      - type: string
                        enum:
                          - medium
                      - type: string
                        enum:
                          - high
                      - type: string
                        enum:
                          - critical
                      - type: string
                        enum:
                          - low
                  dedupeWindowMinutes:
                    type: number
                  channels:
                    type: array
                    items:
                      oneOf:
                        - type: string
                          enum:
                            - review_queue
                        - type: string
                          enum:
                            - webhook
                        - type: string
                          enum:
                            - in_app
                  activationCostWarningUsd:
                    oneOf:
                      - type: 'null'
                      - type: number
                  activationAlertWarningCount:
                    oneOf:
                      - type: 'null'
                      - type: number
                additionalProperties: false
                required:
                  - failureRateThreshold
                  - minimumSeverity
                  - dedupeWindowMinutes
                  - channels
                  - activationCostWarningUsd
                  - activationAlertWarningCount
              learningSnapshot:
                type: object
                properties:
                  generateCandidates:
                    type: boolean
                  autoCreateReview:
                    type: boolean
                  topicAssignment:
                    type: boolean
                  promotionPolicy:
                    oneOf:
                      - type: string
                        enum:
                          - manual
                      - type: string
                        enum:
                          - review_required
                additionalProperties: false
                required:
                  - generateCandidates
                  - autoCreateReview
                  - topicAssignment
                  - promotionPolicy
              policySnapshot:
                type: object
                additionalProperties:
                  $ref: '#/components/schemas/JsonValue'
              promptVersionId:
                oneOf:
                  - type: 'null'
                  - type: number
              promptSnapshot:
                oneOf:
                  - type: 'null'
                  - type: object
                    properties:
                      artifactId:
                        type: number
                      versionId:
                        type: number
                      contentHash:
                        type: string
                      payloadHash:
                        type: string
                      name:
                        type: string
                    additionalProperties: false
                    required:
                      - artifactId
                      - versionId
                      - contentHash
                      - payloadHash
                      - name
              datasetVersionId:
                oneOf:
                  - type: 'null'
                  - type: string
              datasetSnapshot:
                oneOf:
                  - type: 'null'
                  - type: object
                    properties:
                      datasetId:
                        type: string
                      versionId:
                        type: string
                      versionNumber:
                        type: number
                      contentHash:
                        type: string
                      rowCount:
                        type: number
                    additionalProperties: false
                    required:
                      - datasetId
                      - versionId
                      - versionNumber
                      - contentHash
                      - rowCount
              environment:
                type: string
              seed:
                type: number
              snapshotJson:
                type: object
                properties:
                  schemaVersion:
                    type: string
                    enum:
                      - continuous-eval-v1
                  monitorId:
                    type: number
                  versionNumber:
                    type: number
                  source:
                    type: object
                    properties:
                      environment:
                        type: string
                      source:
                        type: string
                      status:
                        type: string
                      nameContains:
                        type: string
                      savedViewId:
                        oneOf:
                          - type: 'null'
                          - type: string
                      savedViewQuery:
                        oneOf:
                          - type: 'null'
                          - type: object
                            properties:
                              version:
                                type: number
                                enum:
                                  - 1
                              filters:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    field:
                                      oneOf:
                                        - type: string
                                          enum:
                                            - status
                                        - type: string
                                          enum:
                                            - user
                                        - type: string
                                          enum:
                                            - provenance
                                        - type: string
                                          enum:
                                            - source
                                        - type: string
                                          enum:
                                            - environment
                                        - type: string
                                          enum:
                                            - provider
                                        - type: string
                                          enum:
                                            - model
                                        - type: string
                                          enum:
                                            - tag
                                        - type: string
                                          enum:
                                            - trace_id
                                        - type: string
                                          enum:
                                            - duration_ms
                                        - type: string
                                          enum:
                                            - score
                                        - type: string
                                          enum:
                                            - tool_name
                                        - type: string
                                          enum:
                                            - latency_ms
                                        - type: string
                                          enum:
                                            - deployment_version
                                        - type: string
                                          enum:
                                            - session
                                        - type: string
                                          enum:
                                            - prompt_version
                                        - type: string
                                          enum:
                                            - backend
                                        - type: string
                                          enum:
                                            - cost_usd
                                        - type: string
                                          enum:
                                            - review_status
                                        - type: string
                                          enum:
                                            - created
                                        - type: string
                                          enum:
                                            - trace_name
                                        - type: string
                                          enum:
                                            - failure_category
                                        - type: string
                                          enum:
                                            - tool_error
                                        - type: string
                                          enum:
                                            - tokens
                                        - type: string
                                          enum:
                                            - alert_status
                                    operator:
                                      oneOf:
                                        - type: string
                                          enum:
                                            - exists
                                        - type: string
                                          enum:
                                            - in
                                        - type: string
                                          enum:
                                            - gte
                                        - type: string
                                          enum:
                                            - lte
                                        - type: string
                                          enum:
                                            - eq
                                        - type: string
                                          enum:
                                            - neq
                                        - type: string
                                          enum:
                                            - gt
                                        - type: string
                                          enum:
                                            - lt
                                        - type: string
                                          enum:
                                            - contains
                                    value:
                                      oneOf:
                                        - type: string
                                        - type: number
                                        - type: boolean
                                          enum:
                                            - false
                                        - type: boolean
                                          enum:
                                            - true
                                        - type: array
                                          items:
                                            type: string
                                        - type: array
                                          items:
                                            type: number
                                  additionalProperties: false
                                  required:
                                    - field
                                    - operator
                              freeText:
                                type: string
                              sort:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    field:
                                      oneOf:
                                        - type: string
                                          enum:
                                            - duration_ms
                                        - type: string
                                          enum:
                                            - score
                                        - type: string
                                          enum:
                                            - latency_ms
                                        - type: string
                                          enum:
                                            - cost_usd
                                        - type: string
                                          enum:
                                            - created
                                    direction:
                                      oneOf:
                                        - type: string
                                          enum:
                                            - asc
                                        - type: string
                                          enum:
                                            - desc
                                  additionalProperties: false
                                  required:
                                    - field
                                    - direction
                            additionalProperties: false
                            required:
                              - version
                              - filters
                              - sort
                      savedViewQueryHash:
                        oneOf:
                          - type: 'null'
                          - type: string
                      deploymentId:
                        oneOf:
                          - type: 'null'
                          - type: string
                      promptVersionId:
                        oneOf:
                          - type: 'null'
                          - type: number
                    additionalProperties: false
                  sampling:
                    type: object
                    properties:
                      mode:
                        oneOf:
                          - type: string
                            enum:
                              - random
                          - type: string
                            enum:
                              - failure_only
                          - type: string
                            enum:
                              - severity_weighted
                          - type: string
                            enum:
                              - uncertainty_weighted
                          - type: string
                            enum:
                              - adaptive
                      sampleRate:
                        type: number
                      failureOnly:
                        type: boolean
                      maxDailySamples:
                        oneOf:
                          - type: 'null'
                          - type: number
                      severityMultiplier:
                        type: number
                      uncertaintyBoost:
                        type: number
                      adaptiveTargetRate:
                        oneOf:
                          - type: 'null'
                          - type: number
                    additionalProperties: false
                    required:
                      - mode
                      - sampleRate
                      - failureOnly
                      - maxDailySamples
                      - severityMultiplier
                      - uncertaintyBoost
                      - adaptiveTargetRate
                  checks:
                    type: object
                    properties:
                      deterministic:
                        type: boolean
                      llmJudge:
                        type: boolean
                      scorerVersionIds:
                        type: array
                        items:
                          type: number
                      maxLatencyMs:
                        oneOf:
                          - type: 'null'
                          - type: number
                      maxCostUsd:
                        oneOf:
                          - type: 'null'
                          - type: number
                      minimumScore:
                        oneOf:
                          - type: 'null'
                          - type: number
                    additionalProperties: false
                    required:
                      - deterministic
                      - llmJudge
                      - scorerVersionIds
                      - maxLatencyMs
                      - maxCostUsd
                      - minimumScore
                  budget:
                    type: object
                    properties:
                      maxDailyCostUsd:
                        oneOf:
                          - type: 'null'
                          - type: number
                      maxPerCallCostUsd:
                        oneOf:
                          - type: 'null'
                          - type: number
                      maxDailyModelCalls:
                        oneOf:
                          - type: 'null'
                          - type: number
                      backfillMaxCostUsd:
                        oneOf:
                          - type: 'null'
                          - type: number
                      fallbackBehavior:
                        oneOf:
                          - type: string
                            enum:
                              - fail_closed
                          - type: string
                            enum:
                              - skip
                          - type: string
                            enum:
                              - deterministic_only
                    additionalProperties: false
                    required:
                      - maxDailyCostUsd
                      - maxPerCallCostUsd
                      - maxDailyModelCalls
                      - backfillMaxCostUsd
                      - fallbackBehavior
                  alerting:
                    type: object
                    properties:
                      failureRateThreshold:
                        type: number
                      minimumSeverity:
                        oneOf:
                          - type: string
                            enum:
                              - medium
                          - type: string
                            enum:
                              - high
                          - type: string
                            enum:
                              - critical
                          - type: string
                            enum:
                              - low
                      dedupeWindowMinutes:
                        type: number
                      channels:
                        type: array
                        items:
                          oneOf:
                            - type: string
                              enum:
                                - review_queue
                            - type: string
                              enum:
                                - webhook
                            - type: string
                              enum:
                                - in_app
                      activationCostWarningUsd:
                        oneOf:
                          - type: 'null'
                          - type: number
                      activationAlertWarningCount:
                        oneOf:
                          - type: 'null'
                          - type: number
                    additionalProperties: false
                    required:
                      - failureRateThreshold
                      - minimumSeverity
                      - dedupeWindowMinutes
                      - channels
                      - activationCostWarningUsd
                      - activationAlertWarningCount
                  learning:
                    type: object
                    properties:
                      generateCandidates:
                        type: boolean
                      autoCreateReview:
                        type: boolean
                      topicAssignment:
                        type: boolean
                      promotionPolicy:
                        oneOf:
                          - type: string
                            enum:
                              - manual
                          - type: string
                            enum:
                              - review_required
                    additionalProperties: false
                    required:
                      - generateCandidates
                      - autoCreateReview
                      - topicAssignment
                      - promotionPolicy
                  scorers:
                    type: array
                    items:
                      type: object
                      properties:
                        artifactId:
                          type: number
                        versionId:
                          type: number
                        contentHash:
                          type: string
                        name:
                          type: string
                        type:
                          type: string
                        definition:
                          type: object
                          additionalProperties:
                            $ref: '#/components/schemas/JsonValue'
                        calibrationBindingId:
                          oneOf:
                            - type: 'null'
                            - type: string
                        calibrationSetId:
                          oneOf:
                            - type: 'null'
                            - type: string
                        calibrationRunId:
                          oneOf:
                            - type: 'null'
                            - type: string
                        scoreMappingId:
                          oneOf:
                            - type: 'null'
                            - type: string
                        comparabilityStatus:
                          oneOf:
                            - type: string
                              enum:
                                - exact
                            - type: string
                              enum:
                                - calibrated
                            - type: string
                              enum:
                                - not_comparable
                      additionalProperties: false
                      required:
                        - artifactId
                        - versionId
                        - contentHash
                        - name
                        - type
                        - definition
                        - calibrationBindingId
                        - calibrationSetId
                        - calibrationRunId
                        - scoreMappingId
                        - comparabilityStatus
                  prompt:
                    oneOf:
                      - type: 'null'
                      - type: object
                        properties:
                          artifactId:
                            type: number
                          versionId:
                            type: number
                          contentHash:
                            type: string
                          payloadHash:
                            type: string
                          name:
                            type: string
                        additionalProperties: false
                        required:
                          - artifactId
                          - versionId
                          - contentHash
                          - payloadHash
                          - name
                  dataset:
                    oneOf:
                      - type: 'null'
                      - type: object
                        properties:
                          datasetId:
                            type: string
                          versionId:
                            type: string
                          versionNumber:
                            type: number
                          contentHash:
                            type: string
                          rowCount:
                            type: number
                        additionalProperties: false
                        required:
                          - datasetId
                          - versionId
                          - versionNumber
                          - contentHash
                          - rowCount
                  policy:
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/JsonValue'
                  evaluatorAction:
                    oneOf:
                      - type: 'null'
                      - type: object
                        properties:
                          approvalId:
                            type: number
                          action:
                            oneOf:
                              - type: string
                                enum:
                                  - release_gate
                              - type: string
                                enum:
                                  - advisory
                              - type: string
                                enum:
                                  - review_routing
                              - type: string
                                enum:
                                  - auto_adjudication
                          target:
                            type: object
                            properties:
                              provider:
                                type: string
                              policyHash:
                                type: string
                              evaluatorReleaseId:
                                type: string
                              measurementRevisionId:
                                type: string
                              model:
                                type: string
                              taskId:
                                type: string
                              sliceId:
                                type: string
                              targetScopeHash:
                                type: string
                              evaluatorIdentityHash:
                                type: string
                              experimentDigest:
                                type: string
                              dataScopeHash:
                                type: string
                            additionalProperties: false
                            required:
                              - provider
                              - policyHash
                              - evaluatorReleaseId
                              - measurementRevisionId
                              - model
                              - taskId
                              - sliceId
                              - targetScopeHash
                              - evaluatorIdentityHash
                              - experimentDigest
                              - dataScopeHash
                        additionalProperties: false
                        required:
                          - approvalId
                          - action
                          - target
                  environment:
                    type: string
                  seed:
                    type: number
                additionalProperties: false
                required:
                  - schemaVersion
                  - monitorId
                  - versionNumber
                  - source
                  - sampling
                  - checks
                  - budget
                  - alerting
                  - learning
                  - scorers
                  - prompt
                  - dataset
                  - policy
                  - environment
                  - seed
              createdBy:
                type: string
              createdAt:
                type: string
                format: date-time
              activatedBy:
                oneOf:
                  - type: 'null'
                  - type: string
              activatedAt:
                oneOf:
                  - type: 'null'
                  - type: string
                    format: date-time
              retiredAt:
                oneOf:
                  - type: 'null'
                  - type: string
                    format: date-time
            additionalProperties: false
            required:
              - id
              - organizationId
              - monitorId
              - versionNumber
              - status
              - configHash
              - sourceSnapshot
              - samplingSnapshot
              - checksSnapshot
              - budgetSnapshot
              - alertSnapshot
              - learningSnapshot
              - policySnapshot
              - promptVersionId
              - promptSnapshot
              - datasetVersionId
              - datasetSnapshot
              - environment
              - seed
              - snapshotJson
              - createdBy
              - createdAt
              - activatedBy
              - activatedAt
              - retiredAt
      additionalProperties: false
      required:
        - versions
    OrganizationId:
      type: string
      format: uuid
    JsonValue:
      oneOf:
        - type: 'null'
        - type: boolean
        - type: number
        - type: string
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - INVALID_REFERENCE
                - VALIDATION_ERROR
                - RATE_LIMITED
                - CONFLICT
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
                - QUOTA_EXCEEDED
                - FEATURE_LIMIT_REACHED
                - NO_ORG_MEMBERSHIP
                - SHARE_REVOKED
                - SHARE_EXPIRED
                - SHARE_UNAVAILABLE
                - PROVIDER_KEY_MISSING
                - PROVIDER_KEY_EXPIRED
                - PROVIDER_RATE_LIMITED
                - PROVIDER_UNAUTHORIZED
                - PROVIDER_UNAVAILABLE
                - AGENT_HANDOFF_INVALID
                - AGENT_HANDOFF_EXPIRED
                - AGENT_HANDOFF_DENIED
                - AGENT_HANDOFF_CONSUMED
                - PAYLOAD_TOO_LARGE
                - METHOD_NOT_ALLOWED
            message:
              type: string
            details: {}
            requestId:
              type: string
              format: uuid
            redaction:
              type: object
              properties:
                applied:
                  type: boolean
                  enum:
                    - true
                fieldCount:
                  type: integer
                  minimum: 0
                secretCount:
                  type: integer
                  minimum: 0
              required:
                - applied
                - fieldCount
                - secretCount
          required:
            - code
            - message
      required:
        - error
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
        WWW-Authenticate:
          description: >-
            Bearer challenge. Agent-facing routes include the RFC 9728
            resource_metadata URL.
          schema:
            type: string
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    Conflict:
      description: Conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
        Retry-After:
          description: Delay in seconds before retrying when present.
          schema:
            type: integer
            minimum: 1
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    ServiceUnavailable:
      description: Service unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: EvalGate API key
      description: >-
        Organization-scoped EvalGate API key. Discover the supported agent
        scopes at /.well-known/oauth-protected-resource. Per-operation grants
        are listed in x-evalgate-required-scopes; OpenAPI bearer security
        requirement arrays remain empty as required for non-OAuth schemes.
      x-evalgate-scopes-supported:
        - eval:read
        - eval:write
        - objectives:read
        - objectives:write
        - runs:read
        - runs:write
        - traces:read
        - traces:write
        - exports:download
        - reports:write
        - prompt:publish
        - scorer:publish
        - red_team:read
        - red_team:run
        - red_team:approve
        - docs:read
        - agent:read
        - agent:execute
        - resources:read
        - resources:write
        - contexts:read
        - contexts:write
        - observations:write
        - checks:read
        - checks:run
        - standards:read
        - standards:write
        - standards:approve
        - grants:read
        - grants:write
        - admin:keys
        - admin:workspace
        - admin:org
      x-evalgate-protected-resource-metadata: https://www.evalgate.com/.well-known/oauth-protected-resource

````

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