---
search:
  tags:
    - V1
    - POST
seo:
  description: >-
    Get one selected version of a judge, including its… Reference for the POST
    /v1/projects/{projectId}/judges/{judgeId}/lookup endpoint in the Judgeval
    API.
sidebar:
  label: Get judge
  badge: POST
title: Get judge
type: openapi-operation
---
Get one selected version of a judge, including its definition, outputs, version metadata, pinned preprocessing artifact revision, and online-evaluation settings. Also returns optimistic_eval_eligibility with authoritative BYOK and SaaS-runtime checks and configuration blockers. Eligibility is independent of the toggle and attached script; it does not establish extraction reliability, verdict agreement, feature availability, or permission to enable execution. Defaults to the latest version. For Code judges, set include_code_url=true to receive a temporary download URL for the source bundle. Bundle contents are omitted.

`POST /v1/projects/{projectId}/judges/{judgeId}/lookup`

**Request body** (`application/json`, required)

- `include_code_url` (boolean) — For custom-code judges, include a temporary download URL for the selected version’s tar.gz source bundle. Defaults to false; ignored for other judge types.
- `version` (string | object) — Judge version to return. Defaults to 'latest'; use 'production' or provide an exact major/minor version.

Request body example:

```json
{
  "include_code_url": true,
  "version": "latest"
}
```

**Responses**

- `200` — Response for status 200

Response example, 200:

```json
{
  "optimistic_eval_eligibility": {
    "supported": true,
    "byok_enabled": true,
    "saas_runtime": true,
    "blockers": [
      "unsupported_runtime"
    ]
  },
  "judge": {
    "id": "string",
    "name": "string",
    "judge_description": "string",
    "knowledge_file_id": "string",
    "score_type": "numeric",
    "outputs": [
      {
        "behavior_id": "string",
        "name": "string",
        "description": "string"
      }
    ],
    "judge_version_id": "string",
    "judge_major_version": 0,
    "judge_minor_version": 0,
    "is_latest": true,
    "is_production": true,
    "optimistic_eval_enabled": true,
    "preprocessor_artifact_revision_id": "string",
    "version_created_at": "string",
    "version_updated_at": "string",
    "updated_by": {
      "user_id": "string",
      "first_name": "string",
      "last_name": "string",
      "user_email": "string"
    },
    "online_environment_names": [
      "string"
    ],
    "online_evaluation_mode": "continuous",
    "action_config": {
      "action_groups": [
        {
          "id": "string",
          "name": "string",
          "enabled": true,
          "environment_names": [
            "string"
          ],
          "when": {
            "kind": "any"
          },
          "frequency": {
            "count": 1,
            "window_seconds": 1
          },
          "cooldown_seconds": 0,
          "actions": [
            {
              "id": "string",
              "enabled": true,
              "type": "webhook",
              "config": {
                "url": "string",
                "secret": "string"
              }
            }
          ]
        }
      ]
    },
    "online_sampling_rate": 0,
    "online_span_triggers": {},
    "online_session_scoring": true,
    "session_evaluation_count_enabled": true,
    "session_evaluation_idle_enabled": true,
    "session_evaluation_min_candidate_traces": 0,
    "session_evaluation_max_wait_minutes": 0,
    "judge_type": "prompt",
    "definition": {
      "id": "string",
      "description": "string",
      "prompt": "string",
      "reasoning_level": "lite",
      "min_score": 0,
      "max_score": 0,
      "model": "string",
      "threshold": 0
    }
  }
}
```
