Re-run with the same config
curl --request POST \
--url https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"estimateToken": "<string>"
}
'import requests
url = "https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun"
payload = { "estimateToken": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({estimateToken: '<string>'})
};
fetch('https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun', 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/{id}/runs/{runId}/rerun",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'estimateToken' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun"
payload := strings.NewReader("{\n \"estimateToken\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"estimateToken\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"estimateToken\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"kind": "estimate",
"estimate": {
"estimateToken": "<string>",
"benchmarkId": "<string>",
"versionNumber": 123,
"isDraftRun": true,
"repeats": 123,
"caseCount": 123,
"cellCount": 123,
"perCandidate": [
{
"model": "<string>",
"agentVersionId": "<string>",
"cells": 123,
"unitCostUsd": 123,
"costUsd": 123
}
],
"totalCostUsd": 123,
"warnings": [
"<string>"
],
"planLimits": [
{
"code": "plan_limit",
"cap": "<string>",
"limit": 123,
"current": 123,
"requested": 123
}
],
"canStart": true,
"candidates": [
{
"label": "<string>",
"model": "<string>",
"agentVersionId": "<string>",
"agentVersionLabel": "<string>",
"aiKeyId": "<string>",
"billedBy": "zelto"
}
],
"billing": {
"typicalCostUsd": 123,
"billedByYourKeysUsd": 123,
"costCapUsd": 123,
"expiresAt": "<string>"
},
"spend": {
"decision": "allowed",
"reason": "monthly_cap",
"monthToDateUsd": 123,
"monthlyCapUsd": 123,
"creditRemainingUsd": 123
},
"unverifiedReferences": 123,
"missingVariables": {
"pairs": 123,
"cells": 123,
"names": [
"<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": {}
}{
"error": "validation_failed",
"code": "validation_failed",
"message": "<string>",
"hint": "<string>",
"details": {}
}{
"error": "validation_failed",
"code": "validation_failed",
"message": "<string>",
"hint": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}{
"error": "validation_failed",
"code": "validation_failed",
"message": "<string>",
"hint": "<string>",
"details": {}
}Benchmarks
Re-run with the same config
Same version, candidates and repeats as the given run. Without estimateToken it returns a fresh estimate (kind: estimate); with one it starts the run (kind: run) under the same guards as starting a run.
POST
/
v1
/
benchmarks
/
{id}
/
runs
/
{runId}
/
rerun
Re-run with the same config
curl --request POST \
--url https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"estimateToken": "<string>"
}
'import requests
url = "https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun"
payload = { "estimateToken": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({estimateToken: '<string>'})
};
fetch('https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun', 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/{id}/runs/{runId}/rerun",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'estimateToken' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun"
payload := strings.NewReader("{\n \"estimateToken\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"estimateToken\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zelto.ai/v1/benchmarks/{id}/runs/{runId}/rerun")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"estimateToken\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"kind": "estimate",
"estimate": {
"estimateToken": "<string>",
"benchmarkId": "<string>",
"versionNumber": 123,
"isDraftRun": true,
"repeats": 123,
"caseCount": 123,
"cellCount": 123,
"perCandidate": [
{
"model": "<string>",
"agentVersionId": "<string>",
"cells": 123,
"unitCostUsd": 123,
"costUsd": 123
}
],
"totalCostUsd": 123,
"warnings": [
"<string>"
],
"planLimits": [
{
"code": "plan_limit",
"cap": "<string>",
"limit": 123,
"current": 123,
"requested": 123
}
],
"canStart": true,
"candidates": [
{
"label": "<string>",
"model": "<string>",
"agentVersionId": "<string>",
"agentVersionLabel": "<string>",
"aiKeyId": "<string>",
"billedBy": "zelto"
}
],
"billing": {
"typicalCostUsd": 123,
"billedByYourKeysUsd": 123,
"costCapUsd": 123,
"expiresAt": "<string>"
},
"spend": {
"decision": "allowed",
"reason": "monthly_cap",
"monthToDateUsd": 123,
"monthlyCapUsd": 123,
"creditRemainingUsd": 123
},
"unverifiedReferences": 123,
"missingVariables": {
"pairs": 123,
"cells": 123,
"names": [
"<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": {}
}{
"error": "validation_failed",
"code": "validation_failed",
"message": "<string>",
"hint": "<string>",
"details": {}
}{
"error": "validation_failed",
"code": "validation_failed",
"message": "<string>",
"hint": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"hint": "<string>",
"parameter": "<string>",
"unknown": [
"<string>"
],
"valid": [
"<string>"
],
"details": {}
}{
"error": "validation_failed",
"code": "validation_failed",
"message": "<string>",
"hint": "<string>",
"details": {}
}Authorizations
Send Authorization: Bearer YOUR_API_KEY. The key resolves to a single organization.
Headers
Optional key, unique per organization (1-255 printable ASCII characters, e.g. a UUID). Resending a request with the same key returns the original result instead of creating a second one; reusing it for a different request is a 409 idempotency_key_reused.
Required string length:
1 - 255Body
application/json
Required string length:
1 - 8192
