repository intelligence
Get repository intelligence baselineId
Requires scopes: eval:read
GET
/
api
/
repository-intelligence
/
repositories
/
{repositoryId}
/
baselines
/
{baselineId}
Get repository intelligence baselineId
curl --request GET \
--url https://evalgate.com/api/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://evalgate.com/api/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}"
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/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}', 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/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}",
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/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}"
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/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://evalgate.com/api/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}")
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{
"schemaVersion": "evalgate.repository-baseline-report.v1",
"baseline": {
"id": "<string>",
"stage": "<string>",
"stateVersion": 123,
"planHash": "<string>",
"identity": {
"repositoryId": 123,
"fullName": "<string>",
"requestedRef": "<string>",
"commitSha": "<string>",
"rootPath": "<string>",
"harnessPresetKey": "<string>",
"scanRunId": "<string>",
"graphVersionId": "<string>",
"snapshotHash": "<string>",
"intakeManifestHash": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"preview": {
"summary": {
"selectedTestCount": 123,
"selectedCaseCount": 123,
"deterministicCaseCount": 123,
"modelBackedCaseCount": 123,
"targetProbeCaseCount": 123,
"estimatedTargetCalls": 123,
"estimatedJudgeCalls": 123
},
"execution": {
"rootPath": "<string>",
"harnessPresetKey": "<string>",
"packageManager": "<string>",
"installCommand": "<string>",
"provider": "<string>",
"runner": "<string>",
"baselineCommands": [
"<string>"
],
"requiredServices": [
"<string>"
],
"capabilities": [
"<string>"
],
"privilegeClass": "<string>",
"isolation": "<string>",
"networkPolicy": "<string>",
"writablePaths": [
"<string>"
],
"forbiddenPaths": [
"<string>"
],
"timeoutMs": 123,
"sideEffects": "unknown",
"expectedCost": "unknown",
"expectedRuntime": "unknown",
"existingCaseCount": 123,
"generatedCaseCount": 123,
"sourceClassification": "none",
"evaluatorRefs": [
"<string>"
],
"verifierVersionId": "<string>"
},
"opportunities": [
{
"key": "<string>",
"title": "<string>",
"description": "<string>",
"mechanism": "<string>",
"falsifier": "<string>",
"artifactRequirements": [
"<string>"
],
"verification": "<string>",
"evidence": [
{
"label": "<string>",
"confidence": 123,
"path": "<string>",
"startLine": 123,
"endLine": 123
}
]
}
],
"tests": [
{
"key": "<string>",
"title": "<string>",
"summary": "<string>",
"category": "<string>",
"priority": "required",
"executionMode": "deterministic",
"caseCount": 123,
"reason": "<string>",
"evidence": [
{
"label": "<string>",
"confidence": 123,
"path": "<string>",
"startLine": 123,
"endLine": 123
}
]
}
],
"warnings": [
"<string>"
],
"blockers": [
"<string>"
]
},
"evaluation": {
"id": 123,
"name": "<string>",
"status": "<string>",
"executorType": "<string>",
"href": "<string>"
},
"run": {
"id": 123,
"status": "<string>",
"checksPlanned": 123,
"checksCompleted": 123,
"checksPassed": 123,
"checksFailed": 123,
"startedAt": "<string>",
"completedAt": "<string>",
"href": "<string>",
"traceEvidenceAvailable": true
},
"findings": [
{
"id": "<string>",
"classification": "<string>",
"status": "<string>",
"score": 123,
"caseId": 123,
"caseName": "<string>",
"outputPreview": "<string>",
"error": "<string>",
"durationMs": 123,
"reproduction": {
"commitSha": "<string>",
"rootPath": "<string>",
"commands": [
"<string>"
]
}
}
],
"observability": {
"resultCount": 123,
"toolCallCount": 123,
"failedToolCallCount": 123,
"cost": {
"status": "unknown",
"totalUsd": 123,
"sources": [
"<string>"
]
}
},
"history": [
{
"id": 123,
"status": "<string>",
"createdAt": "<string>",
"completedAt": "<string>"
}
],
"actions": [
{
"id": "<string>",
"type": "prompt_copied",
"opportunityKey": "<string>",
"status": "<string>",
"resourceType": "<string>",
"resourceId": "<string>",
"href": "<string>",
"createdAt": "<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.
Response
Successful response
Available options:
evalgate.repository-baseline-report.v1 Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Get repository intelligence baselineId
curl --request GET \
--url https://evalgate.com/api/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://evalgate.com/api/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}"
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/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}', 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/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}",
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/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}"
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/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://evalgate.com/api/repository-intelligence/repositories/{repositoryId}/baselines/{baselineId}")
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{
"schemaVersion": "evalgate.repository-baseline-report.v1",
"baseline": {
"id": "<string>",
"stage": "<string>",
"stateVersion": 123,
"planHash": "<string>",
"identity": {
"repositoryId": 123,
"fullName": "<string>",
"requestedRef": "<string>",
"commitSha": "<string>",
"rootPath": "<string>",
"harnessPresetKey": "<string>",
"scanRunId": "<string>",
"graphVersionId": "<string>",
"snapshotHash": "<string>",
"intakeManifestHash": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"preview": {
"summary": {
"selectedTestCount": 123,
"selectedCaseCount": 123,
"deterministicCaseCount": 123,
"modelBackedCaseCount": 123,
"targetProbeCaseCount": 123,
"estimatedTargetCalls": 123,
"estimatedJudgeCalls": 123
},
"execution": {
"rootPath": "<string>",
"harnessPresetKey": "<string>",
"packageManager": "<string>",
"installCommand": "<string>",
"provider": "<string>",
"runner": "<string>",
"baselineCommands": [
"<string>"
],
"requiredServices": [
"<string>"
],
"capabilities": [
"<string>"
],
"privilegeClass": "<string>",
"isolation": "<string>",
"networkPolicy": "<string>",
"writablePaths": [
"<string>"
],
"forbiddenPaths": [
"<string>"
],
"timeoutMs": 123,
"sideEffects": "unknown",
"expectedCost": "unknown",
"expectedRuntime": "unknown",
"existingCaseCount": 123,
"generatedCaseCount": 123,
"sourceClassification": "none",
"evaluatorRefs": [
"<string>"
],
"verifierVersionId": "<string>"
},
"opportunities": [
{
"key": "<string>",
"title": "<string>",
"description": "<string>",
"mechanism": "<string>",
"falsifier": "<string>",
"artifactRequirements": [
"<string>"
],
"verification": "<string>",
"evidence": [
{
"label": "<string>",
"confidence": 123,
"path": "<string>",
"startLine": 123,
"endLine": 123
}
]
}
],
"tests": [
{
"key": "<string>",
"title": "<string>",
"summary": "<string>",
"category": "<string>",
"priority": "required",
"executionMode": "deterministic",
"caseCount": 123,
"reason": "<string>",
"evidence": [
{
"label": "<string>",
"confidence": 123,
"path": "<string>",
"startLine": 123,
"endLine": 123
}
]
}
],
"warnings": [
"<string>"
],
"blockers": [
"<string>"
]
},
"evaluation": {
"id": 123,
"name": "<string>",
"status": "<string>",
"executorType": "<string>",
"href": "<string>"
},
"run": {
"id": 123,
"status": "<string>",
"checksPlanned": 123,
"checksCompleted": 123,
"checksPassed": 123,
"checksFailed": 123,
"startedAt": "<string>",
"completedAt": "<string>",
"href": "<string>",
"traceEvidenceAvailable": true
},
"findings": [
{
"id": "<string>",
"classification": "<string>",
"status": "<string>",
"score": 123,
"caseId": 123,
"caseName": "<string>",
"outputPreview": "<string>",
"error": "<string>",
"durationMs": 123,
"reproduction": {
"commitSha": "<string>",
"rootPath": "<string>",
"commands": [
"<string>"
]
}
}
],
"observability": {
"resultCount": 123,
"toolCallCount": 123,
"failedToolCallCount": 123,
"cost": {
"status": "unknown",
"totalUsd": 123,
"sources": [
"<string>"
]
}
},
"history": [
{
"id": 123,
"status": "<string>",
"createdAt": "<string>",
"completedAt": "<string>"
}
],
"actions": [
{
"id": "<string>",
"type": "prompt_copied",
"opportunityKey": "<string>",
"status": "<string>",
"resourceType": "<string>",
"resourceId": "<string>",
"href": "<string>",
"createdAt": "<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
}
}
}