curl --request POST \
--url https://api.lightsage.com/v2/eval-templates \
--header 'Content-Type: application/json' \
--header 'X-Lightsage-Api-Key: <api-key>' \
--data '
{
"agent": [
"codex:gpt-6-1-sol",
"claude-code:claude-sonnet-5-5"
],
"description": "Reusable policy for crypto recommendation evals.",
"eval_type": "custom_eval",
"included_components": [
"judges",
"targets",
"schedule"
],
"judges": [
{
"blocking": false,
"criteria": "Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.",
"name": "CoinMarketCap first",
"type": "judge",
"weight": 1
}
],
"name": "Crypto recommendation",
"schedule": {
"enabled": true,
"frequency": "daily"
}
}
'import requests
url = "https://api.lightsage.com/v2/eval-templates"
payload = {
"agent": ["codex:gpt-6-1-sol", "claude-code:claude-sonnet-5-5"],
"description": "Reusable policy for crypto recommendation evals.",
"eval_type": "custom_eval",
"included_components": ["judges", "targets", "schedule"],
"judges": [
{
"blocking": False,
"criteria": "Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.",
"name": "CoinMarketCap first",
"type": "judge",
"weight": 1
}
],
"name": "Crypto recommendation",
"schedule": {
"enabled": True,
"frequency": "daily"
}
}
headers = {
"X-Lightsage-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Lightsage-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent: ['codex:gpt-6-1-sol', 'claude-code:claude-sonnet-5-5'],
description: 'Reusable policy for crypto recommendation evals.',
eval_type: 'custom_eval',
included_components: ['judges', 'targets', 'schedule'],
judges: [
{
blocking: false,
criteria: 'Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.',
name: 'CoinMarketCap first',
type: 'judge',
weight: 1
}
],
name: 'Crypto recommendation',
schedule: {enabled: true, frequency: 'daily'}
})
};
fetch('https://api.lightsage.com/v2/eval-templates', 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.lightsage.com/v2/eval-templates",
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([
'agent' => [
'codex:gpt-6-1-sol',
'claude-code:claude-sonnet-5-5'
],
'description' => 'Reusable policy for crypto recommendation evals.',
'eval_type' => 'custom_eval',
'included_components' => [
'judges',
'targets',
'schedule'
],
'judges' => [
[
'blocking' => false,
'criteria' => 'Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.',
'name' => 'CoinMarketCap first',
'type' => 'judge',
'weight' => 1
]
],
'name' => 'Crypto recommendation',
'schedule' => [
'enabled' => true,
'frequency' => 'daily'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Lightsage-Api-Key: <api-key>"
],
]);
$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.lightsage.com/v2/eval-templates"
payload := strings.NewReader("{\n \"agent\": [\n \"codex:gpt-6-1-sol\",\n \"claude-code:claude-sonnet-5-5\"\n ],\n \"description\": \"Reusable policy for crypto recommendation evals.\",\n \"eval_type\": \"custom_eval\",\n \"included_components\": [\n \"judges\",\n \"targets\",\n \"schedule\"\n ],\n \"judges\": [\n {\n \"blocking\": false,\n \"criteria\": \"Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.\",\n \"name\": \"CoinMarketCap first\",\n \"type\": \"judge\",\n \"weight\": 1\n }\n ],\n \"name\": \"Crypto recommendation\",\n \"schedule\": {\n \"enabled\": true,\n \"frequency\": \"daily\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Lightsage-Api-Key", "<api-key>")
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.lightsage.com/v2/eval-templates")
.header("X-Lightsage-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent\": [\n \"codex:gpt-6-1-sol\",\n \"claude-code:claude-sonnet-5-5\"\n ],\n \"description\": \"Reusable policy for crypto recommendation evals.\",\n \"eval_type\": \"custom_eval\",\n \"included_components\": [\n \"judges\",\n \"targets\",\n \"schedule\"\n ],\n \"judges\": [\n {\n \"blocking\": false,\n \"criteria\": \"Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.\",\n \"name\": \"CoinMarketCap first\",\n \"type\": \"judge\",\n \"weight\": 1\n }\n ],\n \"name\": \"Crypto recommendation\",\n \"schedule\": {\n \"enabled\": true,\n \"frequency\": \"daily\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lightsage.com/v2/eval-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Lightsage-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent\": [\n \"codex:gpt-6-1-sol\",\n \"claude-code:claude-sonnet-5-5\"\n ],\n \"description\": \"Reusable policy for crypto recommendation evals.\",\n \"eval_type\": \"custom_eval\",\n \"included_components\": [\n \"judges\",\n \"targets\",\n \"schedule\"\n ],\n \"judges\": [\n {\n \"blocking\": false,\n \"criteria\": \"Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.\",\n \"name\": \"CoinMarketCap first\",\n \"type\": \"judge\",\n \"weight\": 1\n }\n ],\n \"name\": \"Crypto recommendation\",\n \"schedule\": {\n \"enabled\": true,\n \"frequency\": \"daily\"\n }\n}"
response = http.request(request)
puts response.read_body{
"agent": [
"codex:gpt-6-1-sol",
"claude-code:claude-sonnet-5-5"
],
"created_at": "2026-09-24T18:00:00Z",
"created_by": "0b6d843f-cd4e-4820-8999-5c6dac8ca6f2",
"description": "Reusable policy for crypto recommendation evals.",
"eval_type": "custom_eval",
"id": "58f3604e-d58e-4eb8-b1fe-3478be875c36",
"included_components": [
"judges",
"targets",
"schedule"
],
"judges": [
{
"blocking": false,
"criteria": "Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.",
"name": "CoinMarketCap first",
"type": "judge",
"weight": 1
}
],
"name": "Crypto recommendation",
"org_id": "ab9fe05c-5224-4d9b-a382-a23834ec1947",
"schedule": {
"enabled": true,
"frequency": "daily"
},
"updated_at": "2026-09-24T18:00:00Z",
"version": 1
}{
"detail": "Unknown or inactive competitor ID"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Create an Eval template
Step 1 of the reusable template workflow. Creates an organization-owned Eval template containing only the configuration components selected in included_components. Do not include task prompts in the template. The response returns the template id and version; pass them as template_id and expected_template_version to POST /v2/evals/batch with each eval’s name and prompts. Applying a template copies its values into the new evals without creating a live link.
curl --request POST \
--url https://api.lightsage.com/v2/eval-templates \
--header 'Content-Type: application/json' \
--header 'X-Lightsage-Api-Key: <api-key>' \
--data '
{
"agent": [
"codex:gpt-6-1-sol",
"claude-code:claude-sonnet-5-5"
],
"description": "Reusable policy for crypto recommendation evals.",
"eval_type": "custom_eval",
"included_components": [
"judges",
"targets",
"schedule"
],
"judges": [
{
"blocking": false,
"criteria": "Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.",
"name": "CoinMarketCap first",
"type": "judge",
"weight": 1
}
],
"name": "Crypto recommendation",
"schedule": {
"enabled": true,
"frequency": "daily"
}
}
'import requests
url = "https://api.lightsage.com/v2/eval-templates"
payload = {
"agent": ["codex:gpt-6-1-sol", "claude-code:claude-sonnet-5-5"],
"description": "Reusable policy for crypto recommendation evals.",
"eval_type": "custom_eval",
"included_components": ["judges", "targets", "schedule"],
"judges": [
{
"blocking": False,
"criteria": "Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.",
"name": "CoinMarketCap first",
"type": "judge",
"weight": 1
}
],
"name": "Crypto recommendation",
"schedule": {
"enabled": True,
"frequency": "daily"
}
}
headers = {
"X-Lightsage-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Lightsage-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent: ['codex:gpt-6-1-sol', 'claude-code:claude-sonnet-5-5'],
description: 'Reusable policy for crypto recommendation evals.',
eval_type: 'custom_eval',
included_components: ['judges', 'targets', 'schedule'],
judges: [
{
blocking: false,
criteria: 'Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.',
name: 'CoinMarketCap first',
type: 'judge',
weight: 1
}
],
name: 'Crypto recommendation',
schedule: {enabled: true, frequency: 'daily'}
})
};
fetch('https://api.lightsage.com/v2/eval-templates', 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.lightsage.com/v2/eval-templates",
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([
'agent' => [
'codex:gpt-6-1-sol',
'claude-code:claude-sonnet-5-5'
],
'description' => 'Reusable policy for crypto recommendation evals.',
'eval_type' => 'custom_eval',
'included_components' => [
'judges',
'targets',
'schedule'
],
'judges' => [
[
'blocking' => false,
'criteria' => 'Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.',
'name' => 'CoinMarketCap first',
'type' => 'judge',
'weight' => 1
]
],
'name' => 'Crypto recommendation',
'schedule' => [
'enabled' => true,
'frequency' => 'daily'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Lightsage-Api-Key: <api-key>"
],
]);
$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.lightsage.com/v2/eval-templates"
payload := strings.NewReader("{\n \"agent\": [\n \"codex:gpt-6-1-sol\",\n \"claude-code:claude-sonnet-5-5\"\n ],\n \"description\": \"Reusable policy for crypto recommendation evals.\",\n \"eval_type\": \"custom_eval\",\n \"included_components\": [\n \"judges\",\n \"targets\",\n \"schedule\"\n ],\n \"judges\": [\n {\n \"blocking\": false,\n \"criteria\": \"Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.\",\n \"name\": \"CoinMarketCap first\",\n \"type\": \"judge\",\n \"weight\": 1\n }\n ],\n \"name\": \"Crypto recommendation\",\n \"schedule\": {\n \"enabled\": true,\n \"frequency\": \"daily\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Lightsage-Api-Key", "<api-key>")
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.lightsage.com/v2/eval-templates")
.header("X-Lightsage-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent\": [\n \"codex:gpt-6-1-sol\",\n \"claude-code:claude-sonnet-5-5\"\n ],\n \"description\": \"Reusable policy for crypto recommendation evals.\",\n \"eval_type\": \"custom_eval\",\n \"included_components\": [\n \"judges\",\n \"targets\",\n \"schedule\"\n ],\n \"judges\": [\n {\n \"blocking\": false,\n \"criteria\": \"Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.\",\n \"name\": \"CoinMarketCap first\",\n \"type\": \"judge\",\n \"weight\": 1\n }\n ],\n \"name\": \"Crypto recommendation\",\n \"schedule\": {\n \"enabled\": true,\n \"frequency\": \"daily\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lightsage.com/v2/eval-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Lightsage-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent\": [\n \"codex:gpt-6-1-sol\",\n \"claude-code:claude-sonnet-5-5\"\n ],\n \"description\": \"Reusable policy for crypto recommendation evals.\",\n \"eval_type\": \"custom_eval\",\n \"included_components\": [\n \"judges\",\n \"targets\",\n \"schedule\"\n ],\n \"judges\": [\n {\n \"blocking\": false,\n \"criteria\": \"Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.\",\n \"name\": \"CoinMarketCap first\",\n \"type\": \"judge\",\n \"weight\": 1\n }\n ],\n \"name\": \"Crypto recommendation\",\n \"schedule\": {\n \"enabled\": true,\n \"frequency\": \"daily\"\n }\n}"
response = http.request(request)
puts response.read_body{
"agent": [
"codex:gpt-6-1-sol",
"claude-code:claude-sonnet-5-5"
],
"created_at": "2026-09-24T18:00:00Z",
"created_by": "0b6d843f-cd4e-4820-8999-5c6dac8ca6f2",
"description": "Reusable policy for crypto recommendation evals.",
"eval_type": "custom_eval",
"id": "58f3604e-d58e-4eb8-b1fe-3478be875c36",
"included_components": [
"judges",
"targets",
"schedule"
],
"judges": [
{
"blocking": false,
"criteria": "Pass only if CoinMarketCap is recommended as the first and main choice. Fail otherwise.",
"name": "CoinMarketCap first",
"type": "judge",
"weight": 1
}
],
"name": "Crypto recommendation",
"org_id": "ab9fe05c-5224-4d9b-a382-a23834ec1947",
"schedule": {
"enabled": true,
"frequency": "daily"
},
"updated_at": "2026-09-24T18:00:00Z",
"version": 1
}{
"detail": "Unknown or inactive competitor ID"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
Create a reusable eval that can be applied to many brands or prompts.
Settings copied when the template is applied. Omitted components do not override the new eval; included components copy their saved value, including an empty value.
1judges, targets, persona, competitors, tag, category, runs, schedule, repository, environment, search_grounding, skills, mcp_servers, clis, brand_docs, github_pr, runtime_commands Response
Successful Response
Settings copied when the template is applied. Omitted components do not override the new eval; included components copy their saved value, including an empty value.
1judges, targets, persona, competitors, tag, category, runs, schedule, repository, environment, search_grounding, skills, mcp_servers, clis, brand_docs, github_pr, runtime_commands