> This page is for Gateway.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Get suite

GET https://api-gateway.merge.dev/v1/evals/suites/{suite_id}

One suite with its cases (grader definitions included).

Reference: https://docs.merge.dev/merge-gateway/evals-api/suites/get-suite

## Authentication

- `Authorization` header (bearer token, required) — Your gateway API key (mg_ prefix), the same key used for /v1/responses

## Request

### Path parameters

- `suite_id` (string, required)

## Response

### 200

Successful Response

- `id` (string, required)
- `name` (string, required)
- `pass_criteria` (map from string to any, required)
- `judge_threshold` (double, required)
- `judge_temperature` (double, required)
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `description` (string, optional, nullable)
- `judge_model` (string, optional, nullable)
- `judge_rubric` (string, optional, nullable)
- `created_by` (string, optional, nullable)
- `archived_at` (datetime, optional, nullable)
- `case_count` (integer, optional, default: 0)
- `latest_run` (SuiteLatestRunOut, optional, nullable) — Compact newest-run summary for the suites list (health at a glance).
- `cases` (list of CaseOut, optional)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### SuiteLatestRunOut

Compact newest-run summary for the suites list (health at a glance).

- `id` (string, required)
- `status` (string, required)
- `target_model` (string, required)
- `pass_count` (integer, required)
- `fail_count` (integer, required)
- `error_count` (integer, required)
- `created_at` (datetime, required)
- `passed` (boolean, optional, nullable)
- `completed_at` (datetime, optional, nullable)

### CaseOut

- `id` (string, required)
- `suite_id` (string, required)
- `name` (string, required)
- `position` (integer, required)
- `enabled` (boolean, required)
- `required` (boolean, required)
- `input_messages` (list of map from string to any, required)
- `graders` (list of map from string to any, required)
- `grader_policy` (string, required)
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `external_id` (string, optional, nullable)
- `request_params` (map from string to any, optional, nullable)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "id": "string",
  "name": "string",
  "pass_criteria": {},
  "judge_threshold": 1.1,
  "judge_temperature": 1.1,
  "created_at": "2024-01-15T09:30:00Z",
  "updated_at": "2024-01-15T09:30:00Z",
  "description": "string",
  "judge_model": "string",
  "judge_rubric": "string",
  "created_by": "string",
  "archived_at": "2024-01-15T09:30:00Z",
  "case_count": 0,
  "latest_run": {
    "id": "string",
    "status": "string",
    "target_model": "string",
    "pass_count": 1,
    "fail_count": 1,
    "error_count": 1,
    "created_at": "2024-01-15T09:30:00Z",
    "passed": true,
    "completed_at": "2024-01-15T09:30:00Z"
  },
  "cases": [
    {
      "id": "string",
      "suite_id": "string",
      "name": "string",
      "position": 1,
      "enabled": true,
      "required": true,
      "input_messages": [
        {}
      ],
      "graders": [
        {}
      ],
      "grader_policy": "string",
      "created_at": "2024-01-15T09:30:00Z",
      "updated_at": "2024-01-15T09:30:00Z",
      "external_id": "string",
      "request_params": {}
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api-gateway.merge.dev/v1/evals/suites/suite_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api-gateway.merge.dev/v1/evals/suites/suite_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api-gateway.merge.dev/v1/evals/suites/suite_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api-gateway.merge.dev/v1/evals/suites/suite_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api-gateway.merge.dev/v1/evals/suites/suite_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api-gateway.merge.dev/v1/evals/suites/suite_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api-gateway.merge.dev/v1/evals/suites/suite_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api-gateway.merge.dev/v1/evals/suites/suite_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```