curl --request GET \
--url https://api.arize.com/v2/alignment-tasks/{alignment_task_id}/runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arize.com/v2/alignment-tasks/{alignment_task_id}/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arize.com/v2/alignment-tasks/{alignment_task_id}/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://api.arize.com/v2/alignment-tasks/{alignment_task_id}/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://api.arize.com/v2/alignment-tasks/{alignment_task_id}/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://api.arize.com/v2/alignment-tasks/{alignment_task_id}/runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arize.com/v2/alignment-tasks/{alignment_task_id}/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_bodyList alignment runs
Lists the alignment runs recorded against one alignment task, most recently created first.
Runs within one task are directly comparable: they share a dataset, a column pair and a comparison function, so the only thing that varies is which evaluator version was scored. Scores from different tasks are not comparable with each other ā a different column pair is a different scale.
Use evaluator_id to narrow the list to one evaluatorās versions, which is
how you see whether that evaluatorās agreement with human labels improved as
it was edited. Keep evaluator_id identical on every request in a
pagination sequence: a cursor records only a position in the result order,
so pairing one with a different filter silently returns a page of the new
filterās results rather than reporting an error.
Read score and comparable_row_count together on every run. A score of
null means no row had both a judge label and a human annotation, which is
not the same as a score of 0; and a score over a small
comparable_row_count is not a meaningful result. Runs with
status: FAILED carry a null score and a failed_reason.
A task with no runs returns an empty list with 200. A 404 means the
task does not exist or is not visible to the caller ā the two are
deliberately indistinguishable.
curl --request GET \
--url https://api.arize.com/v2/alignment-tasks/{alignment_task_id}/runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arize.com/v2/alignment-tasks/{alignment_task_id}/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arize.com/v2/alignment-tasks/{alignment_task_id}/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://api.arize.com/v2/alignment-tasks/{alignment_task_id}/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://api.arize.com/v2/alignment-tasks/{alignment_task_id}/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://api.arize.com/v2/alignment-tasks/{alignment_task_id}/runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arize.com/v2/alignment-tasks/{alignment_task_id}/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_bodyAuthorizations
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
Path Parameters
The unique alignment task identifier (base64) A universally unique identifier (base64-encoded opaque string).
"RW50aXR5OjEyMzQ1"
Query Parameters
Limit the results to runs that scored a version of this evaluator. Omit to return runs for every evaluator measured against the task.
A universally unique identifier (base64-encoded opaque string).
"RW50aXR5OjEyMzQ1"
Maximum items to return. Defaults to 50 if omitted; maximum is 100.
1 <= x <= 100Opaque pagination cursor returned from a previous response
(pagination.next_cursor). Treat it as an unreadable token; do not
attempt to parse or construct it.
Was this page helpful?