red team
Get red team id
Requires scopes: red_team:read
GET
/
api
/
red-team
/
runs
/
{id}
Get red team id
curl --request GET \
--url https://evalgate.com/api/red-team/runs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://evalgate.com/api/red-team/runs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://evalgate.com/api/red-team/runs/{id}', 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://evalgate.com/api/red-team/runs/{id}",
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://evalgate.com/api/red-team/runs/{id}"
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://evalgate.com/api/red-team/runs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://evalgate.com/api/red-team/runs/{id}")
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{
"run": {
"id": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "<string>",
"campaignVersionId": "<string>",
"rerunOfRunId": "<string>",
"status": "<string>",
"idempotencyKey": "<string>",
"requestHash": "<string>",
"workerId": "<string>",
"reservedCostCents": 123,
"actualCostCents": 123,
"totalCases": 123,
"completedCases": 123,
"attackSuccessCount": 123,
"startedBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"cancelRequestedAt": "2023-11-07T05:31:56Z",
"cancelRequestedBy": "<string>",
"cancelRationale": "<string>",
"cancelledAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"failureCode": "<string>",
"failureMessage": "<string>"
},
"results": [
{
"id": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"runId": "<string>",
"attackCaseId": "<string>",
"caseKind": "<string>",
"caseId": "<string>",
"obligationIds": [
"<string>"
],
"variantKey": "<string>",
"executionKey": "<string>",
"status": "<string>",
"attackSucceeded": false,
"severity": "medium",
"confidence": 123,
"responseHash": "<string>",
"responsePreview": "<string>",
"redactionState": "<string>",
"matchedIndicators": [
"<string>"
],
"scorerResultIds": [
"<string>"
],
"modelCallId": "<string>",
"costRecordId": 123,
"evidence": {},
"strategy": "reverse",
"turnCount": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
],
"observations": [
{
"id": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "<string>",
"runId": "<string>",
"resultId": "<string>",
"executionKey": "<string>",
"targetArtifactId": 123,
"targetVersionId": 123,
"targetContentHash": "<string>",
"obligationId": "<string>",
"obligationHash": "<string>",
"controlReference": {},
"caseKind": "<string>",
"caseId": "<string>",
"caseContentHash": "<string>",
"variantKey": "<string>",
"strategy": "<string>",
"category": "<string>",
"severity": "<string>",
"provider": "<string>",
"model": "<string>",
"scorerVersionIds": [
123
],
"executionStatus": "<string>",
"observedEvidence": {},
"references": {},
"requiredEvidence": [
{}
],
"uncertainty": "<string>",
"actorId": "<string>",
"workerId": "<string>",
"observedAt": "2023-11-07T05:31:56Z",
"observationHash": "<string>"
}
],
"verdicts": [
{
"state": "planned",
"obligationId": "<string>",
"targetVersionId": 123,
"targetContentHash": "<string>",
"requirements": [
"<string>"
],
"satisfiedRequirements": [
"<string>"
],
"failedRequirements": [
"<string>"
],
"missingRequirements": [
"<string>"
],
"attackResistance": "inconclusive",
"benignUtility": "inconclusive",
"trajectoryEvidence": "missing",
"providerFailures": [
"cancelled"
],
"nextAction": "<string>"
}
]
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}Authorizations
Organization-scoped EvalGate API key. Discover the supported agent scopes at /.well-known/oauth-protected-resource. Per-operation grants are listed in x-evalgate-required-scopes; OpenAPI bearer security requirement arrays remain empty as required for non-OAuth schemes.
Path Parameters
⌘I
Get red team id
curl --request GET \
--url https://evalgate.com/api/red-team/runs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://evalgate.com/api/red-team/runs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://evalgate.com/api/red-team/runs/{id}', 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://evalgate.com/api/red-team/runs/{id}",
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://evalgate.com/api/red-team/runs/{id}"
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://evalgate.com/api/red-team/runs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://evalgate.com/api/red-team/runs/{id}")
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{
"run": {
"id": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "<string>",
"campaignVersionId": "<string>",
"rerunOfRunId": "<string>",
"status": "<string>",
"idempotencyKey": "<string>",
"requestHash": "<string>",
"workerId": "<string>",
"reservedCostCents": 123,
"actualCostCents": 123,
"totalCases": 123,
"completedCases": 123,
"attackSuccessCount": 123,
"startedBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"cancelRequestedAt": "2023-11-07T05:31:56Z",
"cancelRequestedBy": "<string>",
"cancelRationale": "<string>",
"cancelledAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"failureCode": "<string>",
"failureMessage": "<string>"
},
"results": [
{
"id": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"runId": "<string>",
"attackCaseId": "<string>",
"caseKind": "<string>",
"caseId": "<string>",
"obligationIds": [
"<string>"
],
"variantKey": "<string>",
"executionKey": "<string>",
"status": "<string>",
"attackSucceeded": false,
"severity": "medium",
"confidence": 123,
"responseHash": "<string>",
"responsePreview": "<string>",
"redactionState": "<string>",
"matchedIndicators": [
"<string>"
],
"scorerResultIds": [
"<string>"
],
"modelCallId": "<string>",
"costRecordId": 123,
"evidence": {},
"strategy": "reverse",
"turnCount": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
],
"observations": [
{
"id": "<string>",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignId": "<string>",
"runId": "<string>",
"resultId": "<string>",
"executionKey": "<string>",
"targetArtifactId": 123,
"targetVersionId": 123,
"targetContentHash": "<string>",
"obligationId": "<string>",
"obligationHash": "<string>",
"controlReference": {},
"caseKind": "<string>",
"caseId": "<string>",
"caseContentHash": "<string>",
"variantKey": "<string>",
"strategy": "<string>",
"category": "<string>",
"severity": "<string>",
"provider": "<string>",
"model": "<string>",
"scorerVersionIds": [
123
],
"executionStatus": "<string>",
"observedEvidence": {},
"references": {},
"requiredEvidence": [
{}
],
"uncertainty": "<string>",
"actorId": "<string>",
"workerId": "<string>",
"observedAt": "2023-11-07T05:31:56Z",
"observationHash": "<string>"
}
],
"verdicts": [
{
"state": "planned",
"obligationId": "<string>",
"targetVersionId": 123,
"targetContentHash": "<string>",
"requirements": [
"<string>"
],
"satisfiedRequirements": [
"<string>"
],
"failedRequirements": [
"<string>"
],
"missingRequirements": [
"<string>"
],
"attackResistance": "inconclusive",
"benignUtility": "inconclusive",
"trajectoryEvidence": "missing",
"providerFailures": [
"cancelled"
],
"nextAction": "<string>"
}
]
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"redaction": {
"applied": true,
"fieldCount": 1,
"secretCount": 1
}
}
}