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

# BacktestJudgeAPI mirrors erdo_backtest_judge: run a judge over the org's live


> experiments' variant pages of its kind and persist one prediction per variant. Synchronous and potentially slow.




## OpenAPI

````yaml /api/openapi.json post /v1/judge-backtests
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/judge-backtests:
    post:
      summary: >
        BacktestJudgeAPI mirrors erdo_backtest_judge: run a judge over the org's
        live
      description: >
        experiments' variant pages of its kind and persist one prediction per
        variant. Synchronous and potentially slow.
      operationId: POST:mcp.BacktestJudgeAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                judge_slug:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  artifact_kind:
                    type: string
                  attention_items_raised:
                    description: >
                      created — one per live experiment where a TRUSTED judge
                      found blocking (high/critical) issues on a variant. Zero
                      for untrusted judges: their predictions still land in the
                      calibration ledger, but a judge with no earned screening
                      power has no standing to page a human.
                    format: int64
                    title: >
                      AttentionItemsRaised counts the judge_rescreen attention
                      items this run
                    type: integer
                  experiments:
                    items:
                      type: string
                    type: array
                  experiments_scanned:
                    format: int64
                    type: integer
                  forecast_metric:
                    type: string
                  judge_slug:
                    type: string
                  predictions_written:
                    format: int64
                    type: integer
                  skipped_already_predicted:
                    format: int64
                    type: integer
                  skipped_unreadable_or_wrong_kind:
                    format: int64
                    type: integer
                  variants_considered:
                    format: int64
                    type: integer
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````