---
title: List Eval Graders
description: "List the graders in this project, newest first. Pass a grader name to Create Eval Run to score a dataset with it."
product: general
lang: en
token_estimate: 2174
---
# List Eval Graders

## List Eval Graders

**GET** `/console/v1/eval_graders`

Full URL: `https://statsigapi.net/console/v1/eval_graders`

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

List Eval Graders

List the graders in this project, newest first. Pass a grader name to Create Eval Run to score a dataset with it.

## Authorizations

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| STATSIG-API-KEY | string | Yes | — | apiKey (header) |

## Query parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| limit (query) | integer | No | 10 | Results per page Constraints: string, number |
| page (query) | integer | No | 1 | Page number Constraints: string, number |

## Response (application/json)

**200** — List Eval Graders Success

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| message | string | Yes | — | A simple string explaining the result of the operation. |
| data | object[] | Yes | — | — |
| data.id | string | Yes | — | — |
| data.name | string | Yes | — | — |
| data.type | string | Yes | — | Grader type: label_model, string_check, text_similarity, python, completion_tokens, completion_latency, or logged_score. |
| data.isGlobal | boolean | Yes | — | — |
| data.prompt | oneOf | Yes | — | Constraints: object |
| data.prompt.type | string | Yes | — | Allowed values: label_model, string_check, text_similarity, python, programmatic_grader, completion_tokens, completion_latency, logged_score |
| data.prompt.content | string | No | — | — |
| data.prompt.operation | string | No | — | Allowed values: eq, ne, like, ilike |
| data.prompt.column | string | No | — | — |
| data.prompt.evaluation_metric | string | No | — | Allowed values: fuzzy_match, bleu, gleu, meteor, rouge_1, rouge_2, rouge_3, rouge_4, rouge_5, rouge_l, cosine |
| data.prompt.source | string | No | — | — |
| data.evalModel | string | Yes | — | Model that judges a `label_model` grader. Other grader types ignore it. |
| data.evalProvider | string | Yes | — | Provider of `evalModel`: `openai`, `anthropic` or `google`. |
| data.choiceScores | object | Yes | — | Constraints: nullable |
| data.gradingRules | object[] | Yes | — | Ordered online grading rules. For each span, the first enabled rule that matches decides whether the grader scores it. |
| data.gradingRules.id | string | Yes | — | — |
| data.gradingRules.enabled | boolean | Yes | — | — |
| data.gradingRules.conditions | object[] | Yes | — | Combined with AND. A rule with no conditions matches every span. |
| data.gradingRules.conditions.field | string | Yes | — | Span field to match: `ai_config` (AI config IDs, matched by the config name), `config_version` (version IDs), `environment` (`statsig.environment`), `span_name`, `agent_name` (`gen_ai.agent.name`), `model` (`gen_ai.request.model`), or `span_attribute` (the attribute named by `key`). Allowed values: ai_config, config_version, environment, span_name, agent_name, model, span_attribute |
| data.gradingRules.conditions.key | string | No | — | Attribute name of a `span_attribute` condition. |
| data.gradingRules.conditions.operator | string | Yes | — | `is` matches any of the values exactly and `is_not` matches none of them. A span without the field reads as an empty string. Allowed values: is, is_not |
| data.gradingRules.conditions.values | string[] | Yes | — | — |
| data.gradingRules.samplingRate | number | Yes | — | Percentage of matching traces to grade, from 0 to 100. Sampling is by trace ID, so every span of a trace gets the same decision. Constraints: min: 0, max: 100 |
| data.offlineTargets | object[] | Yes | — | AI configs the grader scores in offline evals. A version evaluation of an AI config runs its graders. Graders for an eval run on a dataset are picked per run. |
| data.offlineTargets.type | string | Yes | — | Allowed values: ai_config |
| data.offlineTargets.aiConfigID | string | Yes | — | — |
| data.offlineTargets.isCritical | boolean | Yes | — | — |
| data.createdTime | number | Yes | — | Constraints: format: double |
| data.lastModifiedTime | number | Yes | — | Constraints: format: double |
| pagination | object | Yes | — | Pagination metadata for checking if there is next page for example. |
| pagination.itemsPerPage | number | Yes | — | Constraints: format: double |
| pagination.pageNumber | number | Yes | — | Constraints: format: double |
| pagination.nextPage | string | Yes | — | Constraints: nullable |
| pagination.previousPage | string | Yes | — | Constraints: nullable |
| pagination.totalItems | number | No | — | Constraints: format: double |
| pagination.all | string | No | — | — |

```json
{
  "message": "string",
  "data": [
    {
      "id": "string",
      "name": "string",
      "type": "string",
      "isGlobal": true,
      "prompt": {
        "type": "label_model",
        "content": "string"
      },
      "evalModel": "string",
      "evalProvider": "string",
      "choiceScores": {},
      "gradingRules": [
        {
          "id": "string",
          "enabled": true,
          "conditions": [
            {
              "field": "ai_config",
              "key": "string",
              "operator": "is",
              "values": [
                "string"
              ]
            }
          ],
          "samplingRate": 0
        }
      ],
      "offlineTargets": [
        {
          "type": "ai_config",
          "aiConfigID": "string",
          "isCritical": true
        }
      ],
      "createdTime": 0,
      "lastModifiedTime": 0
    }
  ],
  "pagination": {
    "itemsPerPage": 0,
    "pageNumber": 0,
    "nextPage": "string",
    "previousPage": "string",
    "totalItems": 0,
    "all": "string"
  }
}
```

**403** — Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource.

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| status | integer | Yes | — | Allowed values: 403 |
| message | string | Yes | — | — |

```json
{
  "status": 403,
  "message": "Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource."
}
```

## Code samples

### cURL

```bash
curl -X GET "https://statsigapi.net/console/v1/eval_graders?limit=10&page=1" \
  -H "Content-Type: application/json" \
  -H "STATSIG-API-KEY: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://statsigapi.net/console/v1/eval_graders?limit=10&page=1",
    headers={
        "Content-Type": "application/json",
        "STATSIG-API-KEY": "YOUR_API_KEY"
    }
)
data = response.json()
```

### JavaScript

```javascript
const response = await fetch("https://statsigapi.net/console/v1/eval_graders?limit=10&page=1", {
  method: "GET",
  headers: {
    "Content-Type": "application/json",
    "STATSIG-API-KEY": "YOUR_API_KEY"
  }
});
const data = await response.json();
```

### PHP

```php
<?php
$ch = curl_init("https://statsigapi.net/console/v1/eval_graders?limit=10&page=1");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json",
    "STATSIG-API-KEY: YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
```

### Go

```go
package main

import (
  "bytes"
  "net/http"
)

func main() {
req, _ := http.NewRequest("GET", "https://statsigapi.net/console/v1/eval_graders?limit=10&page=1", nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("STATSIG-API-KEY", "YOUR_API_KEY")
  client := &http.Client{}
  resp, _ := client.Do(req)
  defer resp.Body.Close()
}
```

### Java

```java
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://statsigapi.net/console/v1/eval_graders?limit=10&page=1"))
      .method("GET", HttpRequest.BodyPublishers.noBody())
.header("Content-Type", "application/json")
      .header("STATSIG-API-KEY", "YOUR_API_KEY")
      .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
```

### Ruby

```ruby
require "net/http"
require "json"

uri = URI("https://statsigapi.net/console/v1/eval_graders?limit=10&page=1")
request = Net::HTTP::Get.new(uri)
request["Content-Type"] = "application/json"
request["STATSIG-API-KEY"] = "YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
  http.request(request)
end
```

