curl --request GET \
--url https://api.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes', 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/sessions/{session_id}/outcomes",
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.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes"
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.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes")
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{
"outcomes": [
{
"agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"created_at": "2026-02-18T09:30:00.000Z",
"defined_by_event_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"description": "example",
"ended_at": "2026-02-18T09:30:00.000Z",
"evaluations": [
{
"agent_version_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"cache_read_tokens": 1,
"cache_write_tokens": 1,
"cost_micros": 1,
"criteria": [
{
"criterion_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"criterion_text": "example",
"evidence_event_ids": [
"example"
],
"rationale": "example",
"section": "example",
"verdict": "example",
"weight": 1.5
}
],
"end_event_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"ended_at": "2026-02-18T09:30:00.000Z",
"explanation": "example",
"grader_model_ref_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"grader_thread_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"input_tokens": 1,
"iteration": 1,
"outcome_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"output_tokens": 1,
"result": "satisfied",
"start_event_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"started_at": "2026-02-18T09:30:00.000Z"
}
],
"grader_model_ref_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"max_iterations": 1,
"organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"outcome_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"rubric": "example",
"rubric_ref": "example",
"rubric_sha256": "example",
"session_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"status": "pending",
"terminal_result": "satisfied",
"updated_at": "2026-02-18T09:30:00.000Z"
}
]
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "forbidden",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {}
}List a session's outcomes and grading history
Returns the session’s outcomes and their grading history, so a caller can see what “done” was defined as and how each attempt was scored.
curl --request GET \
--url https://api.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes', 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/sessions/{session_id}/outcomes",
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.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes"
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.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/sessions/{session_id}/outcomes")
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{
"outcomes": [
{
"agent_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"created_at": "2026-02-18T09:30:00.000Z",
"defined_by_event_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"description": "example",
"ended_at": "2026-02-18T09:30:00.000Z",
"evaluations": [
{
"agent_version_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"cache_read_tokens": 1,
"cache_write_tokens": 1,
"cost_micros": 1,
"criteria": [
{
"criterion_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"criterion_text": "example",
"evidence_event_ids": [
"example"
],
"rationale": "example",
"section": "example",
"verdict": "example",
"weight": 1.5
}
],
"end_event_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"ended_at": "2026-02-18T09:30:00.000Z",
"explanation": "example",
"grader_model_ref_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"grader_thread_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"input_tokens": 1,
"iteration": 1,
"outcome_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"output_tokens": 1,
"result": "satisfied",
"start_event_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"started_at": "2026-02-18T09:30:00.000Z"
}
],
"grader_model_ref_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"max_iterations": 1,
"organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"outcome_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"rubric": "example",
"rubric_ref": "example",
"rubric_sha256": "example",
"session_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"status": "pending",
"terminal_result": "satisfied",
"updated_at": "2026-02-18T09:30:00.000Z"
}
]
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "forbidden",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {}
}Authorizations
A Recursion API key, created in the console under API keys.
Path Parameters
Session id (UUID) as returned by startSession or listSessions.
Response
Response body of GET /v1/sessions/{session_id}/outcomes. An outcome is the structured verdict a grader or the agent itself writes for a session; a session may accumulate more than one, so this is a list rather than a single object.
Response body of GET /v1/sessions/{session_id}/outcomes. An outcome is the structured verdict a grader or the agent itself writes for a session; a session may accumulate more than one, so this is a list rather than a single object.
Outcomes recorded against the session named in the path. Null rather than an empty array when none has been recorded, which is the normal state for a session that is still running.
Show child attributes
Show child attributes