List unit-test version runs
curl --request GET \
--url https://app.freyavoice.ai/api/v2/unit-tests/version-runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.freyavoice.ai/api/v2/unit-tests/version-runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.freyavoice.ai/api/v2/unit-tests/version-runs', 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://app.freyavoice.ai/api/v2/unit-tests/version-runs",
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://app.freyavoice.ai/api/v2/unit-tests/version-runs"
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://app.freyavoice.ai/api/v2/unit-tests/version-runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.freyavoice.ai/api/v2/unit-tests/version-runs")
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{
"success": true,
"data": {
"message": "<string>",
"result": {
"versionRuns": [
{
"entityVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionNumber": 123,
"versionName": "<string>",
"branchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branchName": "<string>",
"isBranchHead": true,
"passCount": 1,
"failCount": 1,
"errorCount": 1,
"runningCount": 1,
"simPassCount": 1,
"simFailCount": 1,
"simRunningCount": 1,
"latestRunAt": "<string>"
}
],
"total": 1,
"limit": 123,
"offset": 1
}
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}Unit Tests
List unit-test version runs
Returns one summary per entity version that has at least one non-stale run, with run-level outcome counts folded in a single GROUP BY (no per-test fan-out), ordered newest-activity-first and paged. Backs the runs-oriented list. Requires agents:read or workflows:read.
GET
/
unit-tests
/
version-runs
List unit-test version runs
curl --request GET \
--url https://app.freyavoice.ai/api/v2/unit-tests/version-runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.freyavoice.ai/api/v2/unit-tests/version-runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.freyavoice.ai/api/v2/unit-tests/version-runs', 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://app.freyavoice.ai/api/v2/unit-tests/version-runs",
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://app.freyavoice.ai/api/v2/unit-tests/version-runs"
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://app.freyavoice.ai/api/v2/unit-tests/version-runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.freyavoice.ai/api/v2/unit-tests/version-runs")
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{
"success": true,
"data": {
"message": "<string>",
"result": {
"versionRuns": [
{
"entityVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionNumber": 123,
"versionName": "<string>",
"branchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"branchName": "<string>",
"isBranchHead": true,
"passCount": 1,
"failCount": 1,
"errorCount": 1,
"runningCount": 1,
"simPassCount": 1,
"simFailCount": 1,
"simRunningCount": 1,
"latestRunAt": "<string>"
}
],
"total": 1,
"limit": 123,
"offset": 1
}
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}{
"success": false,
"data": {
"message": "<string>",
"result": "<unknown>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Available options:
agent, workflow Minimum string length:
1Required range:
x <= 100Required range:
x >= 0⌘I