curl --request GET \
--url https://devtune.ai/api/v2/projects/{projectId}/agent-picks/findings \
--header 'Authorization: Bearer <token>'import requests
url = "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/findings"
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/findings', 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/findings",
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/findings"
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/findings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://devtune.ai/api/v2/projects/{projectId}/agent-picks/findings")
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": {
"setup": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_slug": "<string>"
},
"test": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin": "managed",
"completed_at": "2023-11-07T05:31:56Z"
},
"previous_test_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"findings_extracted": true,
"findings": [
{
"finding_key": "<string>",
"kind": "rival_no_search",
"subject": "<string>",
"subject_name": "<string>",
"in_latest_test": true,
"test_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"runs": 2,
"observed_runs": 2,
"unmeasured_runs": 1,
"run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"scenarios": [
{
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment_name": "<string>",
"intent": "<string>",
"agent": "<string>",
"model": "<string>",
"arm": "baseline",
"runs": 2,
"observed_runs": 2,
"unmeasured_runs": 1,
"run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
],
"state": "open",
"state_updated_at": "2023-11-07T05:31:56Z",
"state_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"extractor_version": "<string>",
"copy": "<string>"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}Get Agent Picks findings
Read one test’s Pick findings: lost picks no re-test can prove, which stay findings rather than Actions. Without test_id, the setup’s latest completed paid test: full, Quick, Custom or a scenario re-run. Action re-tests and self-runs are not read. A finding is losing runs that never showed the own tool and never searched or fetched a page themselves, by what they did instead: rival_no_search, kept_incumbent or built_own. Package manager traffic does not count as a fetch. Runs that searched are Actions, never findings. Each finding sums its scenarios, with up to ten run_ids, its state (open or dismissed, per setup) and its copy line. A finding the setup’s previous full test showed and this test doesn’t follows with in_latest_test false; it stays listed while the full test before this one showed it, Quick tests in between included. A test completed before findings were recorded returns findings_extracted false and no findings until it is re-judged. A test_id that isn’t the project’s returns 404; any other parameter is refused with 400. The MCP tool devtune_get_agent_picks_findings returns the same fields. Requires Agent Picks. Requires the visibility.read scope.
curl --request GET \
--url https://devtune.ai/api/v2/projects/{projectId}/agent-picks/findings \
--header 'Authorization: Bearer <token>'import requests
url = "https://devtune.ai/api/v2/projects/{projectId}/agent-picks/findings"
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/findings', 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/findings",
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/findings"
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/findings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://devtune.ai/api/v2/projects/{projectId}/agent-picks/findings")
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": {
"setup": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_slug": "<string>"
},
"test": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin": "managed",
"completed_at": "2023-11-07T05:31:56Z"
},
"previous_test_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"findings_extracted": true,
"findings": [
{
"finding_key": "<string>",
"kind": "rival_no_search",
"subject": "<string>",
"subject_name": "<string>",
"in_latest_test": true,
"test_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"runs": 2,
"observed_runs": 2,
"unmeasured_runs": 1,
"run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"scenarios": [
{
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment_name": "<string>",
"intent": "<string>",
"agent": "<string>",
"model": "<string>",
"arm": "baseline",
"runs": 2,
"observed_runs": 2,
"unmeasured_runs": 1,
"run_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
],
"state": "open",
"state_updated_at": "2023-11-07T05:31:56Z",
"state_updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"extractor_version": "<string>",
"copy": "<string>"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}{
"error": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"details": {
"retryable": true,
"retryAfterSeconds": 2
}
}Authorizations
Path Parameters
Query Parameters
The Agent Picks setup to use: its id or its category slug. Optional while the project has one setup. With several, omitting it is refused with 400 and reason agent_picks_setup_required, and a setup the project does not have with 404 and reason agent_picks_setup_not_found; both list the project’s setups in details.setups (id, category_slug, category_name). The response echoes the setup used as setup.
1 - 200