curl --request GET \
--url https://gateway.errorbar.ai/v1/evals/{id}/gate \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.errorbar.ai/v1/evals/{id}/gate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.errorbar.ai/v1/evals/{id}/gate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.errorbar.ai/v1/evals/{id}/gate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.errorbar.ai/v1/evals/{id}/gate"
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(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.errorbar.ai/v1/evals/{id}/gate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.errorbar.ai/v1/evals/{id}/gate")
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{
"pass": true,
"status": "<string>",
"reason": "<string>",
"checks": [
{
"check": "win_rate",
"model": "<string>",
"required": 123,
"actual": 123,
"pass": true,
"note": "<string>"
}
]
}{
"error": {
"message": "Invalid API key",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"pass": true,
"status": "<string>",
"reason": "<string>",
"checks": [
{
"check": "win_rate",
"model": "<string>",
"required": 123,
"actual": 123,
"pass": true,
"note": "<string>"
}
]
}Gate a deploy on an eval run
One curl in CI: 200 when every requested check passes, 412 otherwise — curl -f does the rest.
Statistical thresholds gate on confidence-interval lower bounds, never point estimates: a 62% win rate whose interval reaches down to 51% does not clear a 55% bar. Assertion rates are deterministic and gate exactly. A run that isn’t DONE fails closed — poll until you get a verdict.
curl -f "$BASE/v1/evals/$RUN/gate?min_assertion_pass_rate=1&min_win_rate=0.5" \
-H "Authorization: Bearer $ERRORBAR_API_KEY" || exit 1
curl --request GET \
--url https://gateway.errorbar.ai/v1/evals/{id}/gate \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.errorbar.ai/v1/evals/{id}/gate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.errorbar.ai/v1/evals/{id}/gate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.errorbar.ai/v1/evals/{id}/gate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.errorbar.ai/v1/evals/{id}/gate"
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(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.errorbar.ai/v1/evals/{id}/gate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.errorbar.ai/v1/evals/{id}/gate")
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{
"pass": true,
"status": "<string>",
"reason": "<string>",
"checks": [
{
"check": "win_rate",
"model": "<string>",
"required": 123,
"actual": 123,
"pass": true,
"note": "<string>"
}
]
}{
"error": {
"message": "Invalid API key",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"pass": true,
"status": "<string>",
"reason": "<string>",
"checks": [
{
"check": "win_rate",
"model": "<string>",
"required": 123,
"actual": 123,
"pass": true,
"note": "<string>"
}
]
}Authorizations
Your workspace API key, e.g. sk_sovereign_..., sent as Authorization: Bearer <key>.
Path Parameters
Query Parameters
Comparison runs: every candidate's win-rate CI lower bound must clear this.
0 <= x <= 1Criterion runs: every model's corrected pass-rate CI lower bound must clear this (falls back to the observed interval when the judge was never aligned — the check notes it).
0 <= x <= 1Every model's all-assertions pass rate (exact) must clear this.
0 <= x <= 1Restrict the checks to one model.
The certified switch test: on a criterion run whose baseline was the incumbent's stored production answers, each candidate's corrected pass-rate CI lower bound must reach the incumbent arm's corrected rate minus this margin (0.05 = provably within 5 points at worst). Requires corrected rates on both arms, which only a calibrated judge produces; there is no observed-rate fallback, so an uncalibrated judge cannot certify a switch.
0 <= x <= 1