Register Plugin
curl --request POST \
--url https://agentgate.mynewapi.com/api/v1/verification/plugins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"level": "<string>",
"priority": 123,
"enabled": true,
"continueOnFail": true,
"options": {},
"webhookUrl": "<string>",
"webhookTimeoutMs": 123
}
'import requests
url = "https://agentgate.mynewapi.com/api/v1/verification/plugins"
payload = {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"level": "<string>",
"priority": 123,
"enabled": True,
"continueOnFail": True,
"options": {},
"webhookUrl": "<string>",
"webhookTimeoutMs": 123
}
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({
id: '<string>',
name: '<string>',
description: '<string>',
level: '<string>',
priority: 123,
enabled: true,
continueOnFail: true,
options: {},
webhookUrl: '<string>',
webhookTimeoutMs: 123
})
};
fetch('https://agentgate.mynewapi.com/api/v1/verification/plugins', 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/plugins",
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([
'id' => '<string>',
'name' => '<string>',
'description' => '<string>',
'level' => '<string>',
'priority' => 123,
'enabled' => true,
'continueOnFail' => true,
'options' => [
],
'webhookUrl' => '<string>',
'webhookTimeoutMs' => 123
]),
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/plugins"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\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/plugins")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/verification/plugins")
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 \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}"
response = http.request(request)
puts response.read_bodyPlugins
Register Plugin
Register a new verification plugin
POST
/
api
/
v1
/
verification
/
plugins
Register Plugin
curl --request POST \
--url https://agentgate.mynewapi.com/api/v1/verification/plugins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"level": "<string>",
"priority": 123,
"enabled": true,
"continueOnFail": true,
"options": {},
"webhookUrl": "<string>",
"webhookTimeoutMs": 123
}
'import requests
url = "https://agentgate.mynewapi.com/api/v1/verification/plugins"
payload = {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"level": "<string>",
"priority": 123,
"enabled": True,
"continueOnFail": True,
"options": {},
"webhookUrl": "<string>",
"webhookTimeoutMs": 123
}
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({
id: '<string>',
name: '<string>',
description: '<string>',
level: '<string>',
priority: 123,
enabled: true,
continueOnFail: true,
options: {},
webhookUrl: '<string>',
webhookTimeoutMs: 123
})
};
fetch('https://agentgate.mynewapi.com/api/v1/verification/plugins', 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/plugins",
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([
'id' => '<string>',
'name' => '<string>',
'description' => '<string>',
'level' => '<string>',
'priority' => 123,
'enabled' => true,
'continueOnFail' => true,
'options' => [
],
'webhookUrl' => '<string>',
'webhookTimeoutMs' => 123
]),
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/plugins"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\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/plugins")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgate.mynewapi.com/api/v1/verification/plugins")
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 \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"level\": \"<string>\",\n \"priority\": 123,\n \"enabled\": true,\n \"continueOnFail\": true,\n \"options\": {},\n \"webhookUrl\": \"<string>\",\n \"webhookTimeoutMs\": 123\n}"
response = http.request(request)
puts response.read_bodyRegister Plugin
Registers a new webhook-based verification plugin.Request
Unique plugin identifier
Human-readable plugin name
Plugin description
Verification level:
L0, L1, L2, L3, or customExecution priority (lower runs first)
Whether plugin is enabled
Whether to continue verification if this plugin fails
Plugin-specific options
URL to call for verification (required for webhook plugins)
Timeout for webhook calls (1000-300000 ms)
curl -X POST https://agentgate.mynewapi.com/api/v1/verification/plugins \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "custom:security-scan",
"name": "Security Scanner",
"description": "Custom security vulnerability scanner",
"level": "custom",
"priority": 100,
"webhookUrl": "https://security.example.com/api/scan",
"webhookTimeoutMs": 60000,
"options": {
"severity": "high"
}
}'
Response
Returns the created plugin configuration.Example Response
{
"success": true,
"data": {
"id": "custom:security-scan",
"name": "Security Scanner",
"description": "Custom security vulnerability scanner",
"level": "custom",
"priority": 100,
"enabled": true,
"continueOnFail": false,
"options": {
"severity": "high"
}
},
"requestId": "req_abc123"
}
Webhook Protocol
When the plugin runs, AgentGate POSTs to your webhook URL:{
"pluginId": "custom:security-scan",
"context": {
"workDir": "/workspace/project",
"modifiedFiles": ["src/auth.ts", "src/api.ts"],
"harness": "default",
"metadata": {}
}
}
{
"status": "passed",
"summary": "No vulnerabilities found",
"checks": [
{
"name": "SQL Injection",
"status": "passed",
"message": "No SQL injection vulnerabilities"
}
]
}
⌘I