Skip to main content
POST
https://agentgate.mynewapi.com
/
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": [
    {}
  ]
}
'
{
  "success": true,
  "data": {
    "overallStatus": "<string>",
    "results": [
      {}
    ],
    "summary": "<string>",
    "durationMs": 123
  }
}

Run Verification

Runs verification plugins manually against a workspace.

Request

workDir
string
required
Absolute path to the workspace directory
taskPrompt
string
Task description for context
modifiedFiles
array
List of modified files to verify
harness
string
Harness profile name
levels
array
Verification levels to run: L0, L1, L2, L3, custom
timeoutMs
number
default:"60000"
Total timeout in milliseconds (1000-600000)
pluginIds
array
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

success
boolean
required
Indicates if the request was successful
data
object
required
Combined verification result

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

LevelDescription
L0Contracts: linting, type checking, required files
L1Tests: unit test execution
L2Blackbox: functional/integration tests
L3Sanity: structural validation, coverage
customCustom verification plugins