curl --request GET \
--url https://api.zelto.ai/v1/benchmarks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zelto.ai/v1/benchmarks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zelto.ai/v1/benchmarks', 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://api.zelto.ai/v1/benchmarks",
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://api.zelto.ai/v1/benchmarks"
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://api.zelto.ai/v1/benchmarks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zelto.ai/v1/benchmarks")
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{
"data": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"kind": "llm",
"agents": [
{
"id": "<string>",
"name": "<string>"
}
],
"caseCount": 123,
"validatorKinds": [
"judge"
],
"runs": [
{
"id": "<string>",
"number": 123,
"status": "queued",
"totalCells": 123,
"completedCells": 123,
"failedCells": 123,
"erroredCells": 123,
"allErrored": true,
"candidates": [
{
"id": "<string>",
"label": "<string>",
"model": "<string>",
"agentVersionId": "<string>",
"agentVersionLabel": "<string>",
"isReference": true
}
],
"results": [
{
"candidateId": "<string>",
"passRate": 123,
"wer": 123,
"p50LatencyMs": 123,
"costUsd": 123
}
],
"estimatedCostUsd": 123,
"actualCostUsd": 123,
"createdBy": "<string>",
"createdByUser": {
"id": "<string>",
"name": "<string>",
"image": "<string>"
},
"createdAt": "<string>",
"finishedAt": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>",
"draftCaseCount": 123,
"archivedAt": "<string>",
"settings": {
"passBar": 0.5,
"defaultRepeats": 2,
"defaultCandidates": [
{
"model": "<string>",
"agentVersionId": "<string>"
}
]
},
"language": "<string>",
"currentVersion": 123,
"hasDraftChanges": true
}
],
"nextCursor": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}Listar benchmarks
Benchmarks de la organización, los actualizados más recientemente primero, con sus últimas ejecuciones.
curl --request GET \
--url https://api.zelto.ai/v1/benchmarks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zelto.ai/v1/benchmarks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zelto.ai/v1/benchmarks', 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://api.zelto.ai/v1/benchmarks",
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://api.zelto.ai/v1/benchmarks"
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://api.zelto.ai/v1/benchmarks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zelto.ai/v1/benchmarks")
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{
"data": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"kind": "llm",
"agents": [
{
"id": "<string>",
"name": "<string>"
}
],
"caseCount": 123,
"validatorKinds": [
"judge"
],
"runs": [
{
"id": "<string>",
"number": 123,
"status": "queued",
"totalCells": 123,
"completedCells": 123,
"failedCells": 123,
"erroredCells": 123,
"allErrored": true,
"candidates": [
{
"id": "<string>",
"label": "<string>",
"model": "<string>",
"agentVersionId": "<string>",
"agentVersionLabel": "<string>",
"isReference": true
}
],
"results": [
{
"candidateId": "<string>",
"passRate": 123,
"wer": 123,
"p50LatencyMs": 123,
"costUsd": 123
}
],
"estimatedCostUsd": 123,
"actualCostUsd": 123,
"createdBy": "<string>",
"createdByUser": {
"id": "<string>",
"name": "<string>",
"image": "<string>"
},
"createdAt": "<string>",
"finishedAt": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>",
"draftCaseCount": 123,
"archivedAt": "<string>",
"settings": {
"passBar": 0.5,
"defaultRepeats": 2,
"defaultCandidates": [
{
"model": "<string>",
"agentVersionId": "<string>"
}
]
},
"language": "<string>",
"currentVersion": 123,
"hasDraftChanges": true
}
],
"nextCursor": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}Autorizaciones
Envía Authorization: Bearer YOUR_API_KEY. La clave corresponde a una sola organización.
Parámetros de consulta
Solo benchmarks llm o solo stt.
llm, stt Conservar los benchmarks asignados a cualquiera de estos agentes. Repite el parámetro para varios.
Benchmarks archivados: excluidos (predeterminado), incluidos o los únicos listados.
exclude, include, only Elementos por página. Predeterminado 50, máx. 200 (los valores mayores se limitan a 200). Debe ser un entero positivo; cualquier otro valor se rechaza con un 400 invalid_parameter.
1 <= x <= 200Cursor de paginación opaco. Envía el nextCursor devuelto por la página anterior, sin modificar. Un cursor que esta API no emitió se rechaza con un 400 invalid_parameter. Los endpoints de listado también responden 400 unknown_query_parameter (con los nombres válidos) ante cualquier parámetro de consulta que no aceptan, así que un filtro mal escrito como agent_id nunca se ignora en silencio.

