Start one evaluation session per target
curl --request POST \
--url https://api.recursion.labelbox.com/managed-agents/v1/evaluations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"evaluatorAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targets": {
"session_ids": [
"session-id"
]
},
"criteria": [
{
"criterion_key": "<string>",
"criterion_text": "<string>",
"label": "<string>",
"section": "<string>"
}
],
"evaluatorAgentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>"
}
'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/evaluations"
payload = {
"evaluatorAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targets": { "session_ids": ["session-id"] },
"criteria": [
{
"criterion_key": "<string>",
"criterion_text": "<string>",
"label": "<string>",
"section": "<string>"
}
],
"evaluatorAgentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<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({
evaluatorAgentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
targets: {session_ids: ['session-id']},
criteria: [
{
criterion_key: '<string>',
criterion_text: '<string>',
label: '<string>',
section: '<string>'
}
],
evaluatorAgentVersionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
projectId: '<string>'
})
};
fetch('https://api.recursion.labelbox.com/managed-agents/v1/evaluations', 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.recursion.labelbox.com/managed-agents/v1/evaluations",
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([
'evaluatorAgentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'targets' => [
'session_ids' => [
'session-id'
]
],
'criteria' => [
[
'criterion_key' => '<string>',
'criterion_text' => '<string>',
'label' => '<string>',
'section' => '<string>'
]
],
'evaluatorAgentVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'projectId' => '<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.recursion.labelbox.com/managed-agents/v1/evaluations"
payload := strings.NewReader("{\n \"evaluatorAgentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targets\": {\n \"session_ids\": [\n \"session-id\"\n ]\n },\n \"criteria\": [\n {\n \"criterion_key\": \"<string>\",\n \"criterion_text\": \"<string>\",\n \"label\": \"<string>\",\n \"section\": \"<string>\"\n }\n ],\n \"evaluatorAgentVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"projectId\": \"<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.recursion.labelbox.com/managed-agents/v1/evaluations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"evaluatorAgentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targets\": {\n \"session_ids\": [\n \"session-id\"\n ]\n },\n \"criteria\": [\n {\n \"criterion_key\": \"<string>\",\n \"criterion_text\": \"<string>\",\n \"label\": \"<string>\",\n \"section\": \"<string>\"\n }\n ],\n \"evaluatorAgentVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"projectId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/evaluations")
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 \"evaluatorAgentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targets\": {\n \"session_ids\": [\n \"session-id\"\n ]\n },\n \"criteria\": [\n {\n \"criterion_key\": \"<string>\",\n \"criterion_text\": \"<string>\",\n \"label\": \"<string>\",\n \"section\": \"<string>\"\n }\n ],\n \"evaluatorAgentVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"projectId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"evaluationBatchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"targetSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "invalid_request",
"errorMessage": "<string>",
"evaluationSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"code": "invalid_json",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "unauthorized",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "forbidden",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "not_found",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "payload_too_large",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "unsupported_media_type",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "rate_limit_exceeded",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "internal_error",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "managed_agents_unavailable",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}Evaluations
Start one evaluation session per target
Resolves a bounded target set, then starts one public evaluation root session per target. All items share an evaluation_batch_id. Each item reports its own session id or start error because a later target can fail after earlier sessions commit. A stopped target workspace is cloned and bound to an unchanged transcript watermark before the evaluator runs; an active or incoherent target is rejected.
POST
/
managed-agents
/
v1
/
evaluations
Start one evaluation session per target
curl --request POST \
--url https://api.recursion.labelbox.com/managed-agents/v1/evaluations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"evaluatorAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targets": {
"session_ids": [
"session-id"
]
},
"criteria": [
{
"criterion_key": "<string>",
"criterion_text": "<string>",
"label": "<string>",
"section": "<string>"
}
],
"evaluatorAgentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>"
}
'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/evaluations"
payload = {
"evaluatorAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targets": { "session_ids": ["session-id"] },
"criteria": [
{
"criterion_key": "<string>",
"criterion_text": "<string>",
"label": "<string>",
"section": "<string>"
}
],
"evaluatorAgentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<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({
evaluatorAgentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
targets: {session_ids: ['session-id']},
criteria: [
{
criterion_key: '<string>',
criterion_text: '<string>',
label: '<string>',
section: '<string>'
}
],
evaluatorAgentVersionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
projectId: '<string>'
})
};
fetch('https://api.recursion.labelbox.com/managed-agents/v1/evaluations', 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.recursion.labelbox.com/managed-agents/v1/evaluations",
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([
'evaluatorAgentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'targets' => [
'session_ids' => [
'session-id'
]
],
'criteria' => [
[
'criterion_key' => '<string>',
'criterion_text' => '<string>',
'label' => '<string>',
'section' => '<string>'
]
],
'evaluatorAgentVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'projectId' => '<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.recursion.labelbox.com/managed-agents/v1/evaluations"
payload := strings.NewReader("{\n \"evaluatorAgentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targets\": {\n \"session_ids\": [\n \"session-id\"\n ]\n },\n \"criteria\": [\n {\n \"criterion_key\": \"<string>\",\n \"criterion_text\": \"<string>\",\n \"label\": \"<string>\",\n \"section\": \"<string>\"\n }\n ],\n \"evaluatorAgentVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"projectId\": \"<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.recursion.labelbox.com/managed-agents/v1/evaluations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"evaluatorAgentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targets\": {\n \"session_ids\": [\n \"session-id\"\n ]\n },\n \"criteria\": [\n {\n \"criterion_key\": \"<string>\",\n \"criterion_text\": \"<string>\",\n \"label\": \"<string>\",\n \"section\": \"<string>\"\n }\n ],\n \"evaluatorAgentVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"projectId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/evaluations")
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 \"evaluatorAgentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"targets\": {\n \"session_ids\": [\n \"session-id\"\n ]\n },\n \"criteria\": [\n {\n \"criterion_key\": \"<string>\",\n \"criterion_text\": \"<string>\",\n \"label\": \"<string>\",\n \"section\": \"<string>\"\n }\n ],\n \"evaluatorAgentVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"projectId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"evaluationBatchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"targetSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"errorCode": "invalid_request",
"errorMessage": "<string>",
"evaluationSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"code": "invalid_json",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "unauthorized",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "forbidden",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "not_found",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "payload_too_large",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "unsupported_media_type",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "rate_limit_exceeded",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "internal_error",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "managed_agents_unavailable",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}Authorizations
Headers
Body
application/json