evalgate
Create evalgate auto plan
Requires scopes: reports:write
POST
/
api
/
evalgate
/
auto-plan
Create evalgate auto plan
curl --request POST \
--url https://evalgate.com/api/evalgate/auto-plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>",
"targetPath": "<string>",
"strategyTracks": [
"<string>"
],
"targetContent": "<string>",
"iteration": 123,
"autonomyLevel": "manual",
"hypothesis": "<string>",
"forbiddenChanges": [
"<string>"
],
"workflowClass": "approval_gated_mutation",
"approvalMode": "none",
"memoryMode": "none",
"backgroundExecution": false,
"requiredHooks": [
"session_start"
]
}
'import requests
url = "https://evalgate.com/api/evalgate/auto-plan"
payload = {
"objective": "<string>",
"targetPath": "<string>",
"strategyTracks": ["<string>"],
"targetContent": "<string>",
"iteration": 123,
"autonomyLevel": "manual",
"hypothesis": "<string>",
"forbiddenChanges": ["<string>"],
"workflowClass": "approval_gated_mutation",
"approvalMode": "none",
"memoryMode": "none",
"backgroundExecution": False,
"requiredHooks": ["session_start"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
objective: '<string>',
targetPath: '<string>',
strategyTracks: ['<string>'],
targetContent: '<string>',
iteration: 123,
autonomyLevel: 'manual',
hypothesis: '<string>',
forbiddenChanges: ['<string>'],
workflowClass: 'approval_gated_mutation',
approvalMode: 'none',
memoryMode: 'none',
backgroundExecution: false,
requiredHooks: ['session_start']
})
};
fetch('https://evalgate.com/api/evalgate/auto-plan', 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/evalgate/auto-plan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'objective' => '<string>',
'targetPath' => '<string>',
'strategyTracks' => [
'<string>'
],
'targetContent' => '<string>',
'iteration' => 123,
'autonomyLevel' => 'manual',
'hypothesis' => '<string>',
'forbiddenChanges' => [
'<string>'
],
'workflowClass' => 'approval_gated_mutation',
'approvalMode' => 'none',
'memoryMode' => 'none',
'backgroundExecution' => false,
'requiredHooks' => [
'session_start'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://evalgate.com/api/evalgate/auto-plan"
payload := strings.NewReader("{\n \"objective\": \"<string>\",\n \"targetPath\": \"<string>\",\n \"strategyTracks\": [\n \"<string>\"\n ],\n \"targetContent\": \"<string>\",\n \"iteration\": 123,\n \"autonomyLevel\": \"manual\",\n \"hypothesis\": \"<string>\",\n \"forbiddenChanges\": [\n \"<string>\"\n ],\n \"workflowClass\": \"approval_gated_mutation\",\n \"approvalMode\": \"none\",\n \"memoryMode\": \"none\",\n \"backgroundExecution\": false,\n \"requiredHooks\": [\n \"session_start\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://evalgate.com/api/evalgate/auto-plan")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"objective\": \"<string>\",\n \"targetPath\": \"<string>\",\n \"strategyTracks\": [\n \"<string>\"\n ],\n \"targetContent\": \"<string>\",\n \"iteration\": 123,\n \"autonomyLevel\": \"manual\",\n \"hypothesis\": \"<string>\",\n \"forbiddenChanges\": [\n \"<string>\"\n ],\n \"workflowClass\": \"approval_gated_mutation\",\n \"approvalMode\": \"none\",\n \"memoryMode\": \"none\",\n \"backgroundExecution\": false,\n \"requiredHooks\": [\n \"session_start\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://evalgate.com/api/evalgate/auto-plan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"objective\": \"<string>\",\n \"targetPath\": \"<string>\",\n \"strategyTracks\": [\n \"<string>\"\n ],\n \"targetContent\": \"<string>\",\n \"iteration\": 123,\n \"autonomyLevel\": \"manual\",\n \"hypothesis\": \"<string>\",\n \"forbiddenChanges\": [\n \"<string>\"\n ],\n \"workflowClass\": \"approval_gated_mutation\",\n \"approvalMode\": \"none\",\n \"memoryMode\": \"none\",\n \"backgroundExecution\": false,\n \"requiredHooks\": [\n \"session_start\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"iteration": 123,
"selectedStrategyTrack": "<string>",
"proposedPatch": "<string>",
"candidate": {
"id": "<string>",
"label": "<string>",
"instruction": "<string>"
},
"reason": "cluster_exhausted",
"rankedStrategyTracks": [
{
"id": "<string>",
"description": "<string>",
"estimatedCost": "medium",
"targetedFailureModes": [
"<string>"
]
}
],
"recommendedStrategyTracks": [
"<string>"
],
"workflowRecommendation": {
"recipeTitle": "<string>",
"workflowClass": "approval_gated_mutation",
"autonomyLevel": "manual",
"approvalMode": "none",
"memoryMode": "none",
"backgroundExecution": true,
"requiredHooks": [
"session_start"
],
"linkedFailureModes": [
"<string>"
],
"successMetrics": [
"<string>"
],
"guardrails": [
"<string>"
],
"recommendedIterations": 123,
"source": "coverage_gap"
},
"workflowRecipe": {
"version": 1,
"title": "<string>",
"objective": "<string>",
"workflowClass": "approval_gated_mutation",
"source": "coverage_gap",
"linkedFailureModes": [
"<string>"
],
"linkedTestCaseIds": [
123
],
"comparedVariants": [
{
"id": "<string>",
"label": "<string>",
"changes": [
"<string>"
],
"expectedImpact": "<string>",
"autonomyLevel": "manual",
"approvalMode": "none",
"memoryMode": "none",
"hooks": [
"session_start"
]
}
],
"successMetrics": [
"<string>"
],
"guardrails": [
"<string>"
],
"recommendedIterations": 123,
"rationale": "<string>"
},
"rankedStrategies": [
{
"id": "<string>",
"label": "<string>",
"autonomyLevel": "manual",
"approvalMode": "none",
"memoryMode": "none",
"hookCount": 123,
"expectedImpact": "<string>"
}
],
"continuation": {
"entryPoint": "repository",
"workspace": "local",
"steps": [
{
"href": "<string>",
"id": "<string>",
"label": "<string>",
"description": "<string>",
"command": "<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.
Body
application/json
autonomyLevel
Option 1 · enum<string>Option 2 · enum<string>Option 3 · enum<string>Option 4 · enum<string>
Available options:
manual workflowClass
Option 1 · enum<string>Option 2 · enum<string>Option 3 · enum<string>Option 4 · enum<string>Option 5 · enum<string>Option 6 · enum<string>Option 7 · enum<string>
Available options:
approval_gated_mutation approvalMode
Option 1 · enum<string>Option 2 · enum<string>Option 3 · enum<string>Option 4 · enum<string>
Available options:
none memoryMode
Option 1 · enum<string>Option 2 · enum<string>Option 3 · enum<string>Option 4 · enum<string>
Available options:
none Available options:
false Available options:
session_start Response
Successful response
Show child attributes
Show child attributes
Available options:
cluster_exhausted 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
Create evalgate auto plan
curl --request POST \
--url https://evalgate.com/api/evalgate/auto-plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>",
"targetPath": "<string>",
"strategyTracks": [
"<string>"
],
"targetContent": "<string>",
"iteration": 123,
"autonomyLevel": "manual",
"hypothesis": "<string>",
"forbiddenChanges": [
"<string>"
],
"workflowClass": "approval_gated_mutation",
"approvalMode": "none",
"memoryMode": "none",
"backgroundExecution": false,
"requiredHooks": [
"session_start"
]
}
'import requests
url = "https://evalgate.com/api/evalgate/auto-plan"
payload = {
"objective": "<string>",
"targetPath": "<string>",
"strategyTracks": ["<string>"],
"targetContent": "<string>",
"iteration": 123,
"autonomyLevel": "manual",
"hypothesis": "<string>",
"forbiddenChanges": ["<string>"],
"workflowClass": "approval_gated_mutation",
"approvalMode": "none",
"memoryMode": "none",
"backgroundExecution": False,
"requiredHooks": ["session_start"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
objective: '<string>',
targetPath: '<string>',
strategyTracks: ['<string>'],
targetContent: '<string>',
iteration: 123,
autonomyLevel: 'manual',
hypothesis: '<string>',
forbiddenChanges: ['<string>'],
workflowClass: 'approval_gated_mutation',
approvalMode: 'none',
memoryMode: 'none',
backgroundExecution: false,
requiredHooks: ['session_start']
})
};
fetch('https://evalgate.com/api/evalgate/auto-plan', 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/evalgate/auto-plan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'objective' => '<string>',
'targetPath' => '<string>',
'strategyTracks' => [
'<string>'
],
'targetContent' => '<string>',
'iteration' => 123,
'autonomyLevel' => 'manual',
'hypothesis' => '<string>',
'forbiddenChanges' => [
'<string>'
],
'workflowClass' => 'approval_gated_mutation',
'approvalMode' => 'none',
'memoryMode' => 'none',
'backgroundExecution' => false,
'requiredHooks' => [
'session_start'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://evalgate.com/api/evalgate/auto-plan"
payload := strings.NewReader("{\n \"objective\": \"<string>\",\n \"targetPath\": \"<string>\",\n \"strategyTracks\": [\n \"<string>\"\n ],\n \"targetContent\": \"<string>\",\n \"iteration\": 123,\n \"autonomyLevel\": \"manual\",\n \"hypothesis\": \"<string>\",\n \"forbiddenChanges\": [\n \"<string>\"\n ],\n \"workflowClass\": \"approval_gated_mutation\",\n \"approvalMode\": \"none\",\n \"memoryMode\": \"none\",\n \"backgroundExecution\": false,\n \"requiredHooks\": [\n \"session_start\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://evalgate.com/api/evalgate/auto-plan")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"objective\": \"<string>\",\n \"targetPath\": \"<string>\",\n \"strategyTracks\": [\n \"<string>\"\n ],\n \"targetContent\": \"<string>\",\n \"iteration\": 123,\n \"autonomyLevel\": \"manual\",\n \"hypothesis\": \"<string>\",\n \"forbiddenChanges\": [\n \"<string>\"\n ],\n \"workflowClass\": \"approval_gated_mutation\",\n \"approvalMode\": \"none\",\n \"memoryMode\": \"none\",\n \"backgroundExecution\": false,\n \"requiredHooks\": [\n \"session_start\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://evalgate.com/api/evalgate/auto-plan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"objective\": \"<string>\",\n \"targetPath\": \"<string>\",\n \"strategyTracks\": [\n \"<string>\"\n ],\n \"targetContent\": \"<string>\",\n \"iteration\": 123,\n \"autonomyLevel\": \"manual\",\n \"hypothesis\": \"<string>\",\n \"forbiddenChanges\": [\n \"<string>\"\n ],\n \"workflowClass\": \"approval_gated_mutation\",\n \"approvalMode\": \"none\",\n \"memoryMode\": \"none\",\n \"backgroundExecution\": false,\n \"requiredHooks\": [\n \"session_start\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"iteration": 123,
"selectedStrategyTrack": "<string>",
"proposedPatch": "<string>",
"candidate": {
"id": "<string>",
"label": "<string>",
"instruction": "<string>"
},
"reason": "cluster_exhausted",
"rankedStrategyTracks": [
{
"id": "<string>",
"description": "<string>",
"estimatedCost": "medium",
"targetedFailureModes": [
"<string>"
]
}
],
"recommendedStrategyTracks": [
"<string>"
],
"workflowRecommendation": {
"recipeTitle": "<string>",
"workflowClass": "approval_gated_mutation",
"autonomyLevel": "manual",
"approvalMode": "none",
"memoryMode": "none",
"backgroundExecution": true,
"requiredHooks": [
"session_start"
],
"linkedFailureModes": [
"<string>"
],
"successMetrics": [
"<string>"
],
"guardrails": [
"<string>"
],
"recommendedIterations": 123,
"source": "coverage_gap"
},
"workflowRecipe": {
"version": 1,
"title": "<string>",
"objective": "<string>",
"workflowClass": "approval_gated_mutation",
"source": "coverage_gap",
"linkedFailureModes": [
"<string>"
],
"linkedTestCaseIds": [
123
],
"comparedVariants": [
{
"id": "<string>",
"label": "<string>",
"changes": [
"<string>"
],
"expectedImpact": "<string>",
"autonomyLevel": "manual",
"approvalMode": "none",
"memoryMode": "none",
"hooks": [
"session_start"
]
}
],
"successMetrics": [
"<string>"
],
"guardrails": [
"<string>"
],
"recommendedIterations": 123,
"rationale": "<string>"
},
"rankedStrategies": [
{
"id": "<string>",
"label": "<string>",
"autonomyLevel": "manual",
"approvalMode": "none",
"memoryMode": "none",
"hookCount": 123,
"expectedImpact": "<string>"
}
],
"continuation": {
"entryPoint": "repository",
"workspace": "local",
"steps": [
{
"href": "<string>",
"id": "<string>",
"label": "<string>",
"description": "<string>",
"command": "<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
}
}
}