curl --request GET \
--url https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}', 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://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}",
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://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}"
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://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}")
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": {
"run": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_kind": "<string>",
"test_status": "queued",
"agent": "<string>",
"model": "<string>",
"repetition": 123,
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "<string>",
"completed_at": "<string>",
"early_stopped": true,
"wall_ms": 123,
"has_error": true
},
"context": {
"environment": {
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"framework": "<string>"
},
"request_withheld": true,
"job_withheld": true,
"request": "<string>",
"intent": "<string>",
"job": "<string>",
"classifier_version": "<string>",
"agent_timeout_sec": 123
},
"pick": {
"outcome": "<string>",
"tool_key": "<string>",
"tool_display_name": "<string>",
"tool_brand_domain": "<string>",
"confidence": 123,
"classifier_version": "<string>",
"decided_by": "<string>",
"tool_packages_withheld": true,
"tool_packages": [
"<string>"
],
"other_tools_withheld": true,
"other_tools": [
"<string>"
],
"diff_truncated": true
},
"evidence": {
"availability": "recorded",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123,
"kind": "search",
"url": "<string>",
"status_code": 123,
"recorded_at": "<string>",
"observed_at": 123,
"detail": {
"queries": [
"<string>"
],
"path": "<string>",
"packages": [
"<string>"
],
"source": "<string>",
"method": "<string>",
"exit_code": 123,
"failed": true,
"text_withheld": true,
"packages_withheld": true,
"command_withheld": true
}
}
],
"pagination": {
"has_more": true,
"next_cursor": "<string>",
"limit": 50
}
}
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}Get Agent Picks run evidence
Inspect a run owned by the account, project and test together. Includes queued, running, failed, cancelled and completed runs. Request and job text are withheld; request_withheld and job_withheld distinguish withheld snapshots from absent ones; pick is null without a classification. Events are recorded observations ordered by seq then id, not inferred causes or proof of a working integration. not_retained means there are no retained events, including before a running run records them. Raw commands, error text, provider prompts and artifacts are withheld. URLs show only their HTTP origin. Search terms, file paths and unknown runtime tool names are withheld with explicit indicators. Packages must match the configured tool catalog. Requires Agent Picks and visibility.read. limit defaults to 50, maximum 100. Pass the returned next_cursor verbatim as cursor with the same filters until has_more is false. Detail pagination is inside evidence; list pagination is at the top level. Invalid parameters or a cursor for another scope return 400. Reads cannot start, cancel or change a run.
curl --request GET \
--url https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}', 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://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}",
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://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}"
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://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://devtune.ai/api/v2/projects/{projectId}/agent-picks/tests/{testId}/runs/{runId}")
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": {
"run": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_kind": "<string>",
"test_status": "queued",
"agent": "<string>",
"model": "<string>",
"repetition": 123,
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "<string>",
"completed_at": "<string>",
"early_stopped": true,
"wall_ms": 123,
"has_error": true
},
"context": {
"environment": {
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"framework": "<string>"
},
"request_withheld": true,
"job_withheld": true,
"request": "<string>",
"intent": "<string>",
"job": "<string>",
"classifier_version": "<string>",
"agent_timeout_sec": 123
},
"pick": {
"outcome": "<string>",
"tool_key": "<string>",
"tool_display_name": "<string>",
"tool_brand_domain": "<string>",
"confidence": 123,
"classifier_version": "<string>",
"decided_by": "<string>",
"tool_packages_withheld": true,
"tool_packages": [
"<string>"
],
"other_tools_withheld": true,
"other_tools": [
"<string>"
],
"diff_truncated": true
},
"evidence": {
"availability": "recorded",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seq": 123,
"kind": "search",
"url": "<string>",
"status_code": 123,
"recorded_at": "<string>",
"observed_at": 123,
"detail": {
"queries": [
"<string>"
],
"path": "<string>",
"packages": [
"<string>"
],
"source": "<string>",
"method": "<string>",
"exit_code": 123,
"failed": true,
"text_withheld": true,
"packages_withheld": true,
"command_withheld": true
}
}
],
"pagination": {
"has_more": true,
"next_cursor": "<string>",
"limit": 50
}
}
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>"
}Authorizations
API key with dtk_live_ prefix. Obtain it from API Keys in the account sidebar. New keys start with all supported scopes selected for the chosen project, and you can narrow them to specific read/write scopes as needed.
Query Parameters
1 <= x <= 1002000