Run Verification
curl --request POST \
--url https://agentgate.mynewapi.com/api/v1/verification/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workDir": "<string>",
"taskPrompt": "<string>",
"modifiedFiles": [
{}
],
"harness": "<string>",
"levels": [
{}
],
"timeoutMs": 123,
"pluginIds": [
{}
]
}
'import requests
url = "https://agentgate.mynewapi.com/api/v1/verification/run"
payload = {
"workDir": "<string>",
"taskPrompt": "<string>",
"modifiedFiles": [{}],
"harness": "<string>",
"levels": [{}],
"timeoutMs": 123,
"pluginIds": [{}]
}
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({
workDir: '<string>',
taskPrompt: '<string>',
modifiedFiles: [{}],
harness: '<string>',
levels: [{}],
timeoutMs: 123,
pluginIds: [{}]
})
};
fetch('https://agentgate.mynewapi.com/api/v1/verification/run', 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://agentgate.mynewapi.com/api/v1/verification/run",
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([
'workDir' => '<string>',
'taskPrompt' => '<string>',
'modifiedFiles' => [
[
]
],
'harness' => '<string>',
'levels' => [
[
]
],
'timeoutMs' => 123,
'pluginIds' => [
[
]
]
]),
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://agentgate.mynewapi.com/api/v1/verification/run"
payload := strings.NewReader("{\n \"workDir\": \"<string>\",\n \"taskPrompt\": \"<string>\",\n \"modifiedFiles\": [\n {}\n ],\n \"harness\": \"<string>\",\n \"levels\": [\n {}\n ],\n \"timeoutMs\": 123,\n \"pluginIds\": [\n {}\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://agentgate.mynewapi.com/api/v1/verification/run")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workDir\": \"<string>\",\n \"taskPrompt\": \"<string>\",\n \"modifiedFiles\": [\n {}\n ],\n \"harness\": \"<string>\",\n \"levels\": [\n {}\n ],\n \"timeoutMs\": 123,\n \"pluginIds\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/verification/run")
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 \"workDir\": \"<string>\",\n \"taskPrompt\": \"<string>\",\n \"modifiedFiles\": [\n {}\n ],\n \"harness\": \"<string>\",\n \"levels\": [\n {}\n ],\n \"timeoutMs\": 123,\n \"pluginIds\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"overallStatus": "<string>",
"results": [
{}
],
"summary": "<string>",
"durationMs": 123
}
}Plugins
Run Verification
Run verification plugins manually
POST
/
api
/
v1
/
verification
/
run
Run Verification
curl --request POST \
--url https://agentgate.mynewapi.com/api/v1/verification/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workDir": "<string>",
"taskPrompt": "<string>",
"modifiedFiles": [
{}
],
"harness": "<string>",
"levels": [
{}
],
"timeoutMs": 123,
"pluginIds": [
{}
]
}
'import requests
url = "https://agentgate.mynewapi.com/api/v1/verification/run"
payload = {
"workDir": "<string>",
"taskPrompt": "<string>",
"modifiedFiles": [{}],
"harness": "<string>",
"levels": [{}],
"timeoutMs": 123,
"pluginIds": [{}]
}
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({
workDir: '<string>',
taskPrompt: '<string>',
modifiedFiles: [{}],
harness: '<string>',
levels: [{}],
timeoutMs: 123,
pluginIds: [{}]
})
};
fetch('https://agentgate.mynewapi.com/api/v1/verification/run', 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://agentgate.mynewapi.com/api/v1/verification/run",
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([
'workDir' => '<string>',
'taskPrompt' => '<string>',
'modifiedFiles' => [
[
]
],
'harness' => '<string>',
'levels' => [
[
]
],
'timeoutMs' => 123,
'pluginIds' => [
[
]
]
]),
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://agentgate.mynewapi.com/api/v1/verification/run"
payload := strings.NewReader("{\n \"workDir\": \"<string>\",\n \"taskPrompt\": \"<string>\",\n \"modifiedFiles\": [\n {}\n ],\n \"harness\": \"<string>\",\n \"levels\": [\n {}\n ],\n \"timeoutMs\": 123,\n \"pluginIds\": [\n {}\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://agentgate.mynewapi.com/api/v1/verification/run")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workDir\": \"<string>\",\n \"taskPrompt\": \"<string>\",\n \"modifiedFiles\": [\n {}\n ],\n \"harness\": \"<string>\",\n \"levels\": [\n {}\n ],\n \"timeoutMs\": 123,\n \"pluginIds\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/verification/run")
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 \"workDir\": \"<string>\",\n \"taskPrompt\": \"<string>\",\n \"modifiedFiles\": [\n {}\n ],\n \"harness\": \"<string>\",\n \"levels\": [\n {}\n ],\n \"timeoutMs\": 123,\n \"pluginIds\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"overallStatus": "<string>",
"results": [
{}
],
"summary": "<string>",
"durationMs": 123
}
}Run Verification
Runs verification plugins manually against a workspace.Request
Absolute path to the workspace directory
Task description for context
List of modified files to verify
Harness profile name
Verification levels to run:
L0, L1, L2, L3, customTotal timeout in milliseconds (1000-600000)
Specific plugin IDs to run (if empty, runs all applicable)
curl -X POST https://agentgate.mynewapi.com/api/v1/verification/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workDir": "/workspace/my-project",
"taskPrompt": "Fix authentication bug",
"modifiedFiles": ["src/auth.ts"],
"levels": ["L0", "L1"],
"timeoutMs": 120000
}'
Response
Indicates if the request was successful
Example Response
{
"success": true,
"data": {
"overallStatus": "passed",
"results": [
{
"pluginId": "built-in:eslint",
"status": "passed",
"level": "L0",
"summary": "No linting errors",
"checks": [
{
"name": "ESLint",
"status": "passed",
"message": "0 errors, 0 warnings"
}
],
"durationMs": 1523
},
{
"pluginId": "built-in:typescript",
"status": "passed",
"level": "L0",
"summary": "Type check passed",
"checks": [
{
"name": "TypeScript",
"status": "passed",
"message": "No type errors"
}
],
"durationMs": 3200
}
],
"summary": "All 2 plugins passed",
"durationMs": 4723
},
"requestId": "req_abc123"
}
Verification Levels
| Level | Description |
|---|---|
L0 | Contracts: linting, type checking, required files |
L1 | Tests: unit test execution |
L2 | Blackbox: functional/integration tests |
L3 | Sanity: structural validation, coverage |
custom | Custom verification plugins |
⌘I