REST API Specification
All endpoints accept standard JSON payloads over HTTPS and return structured, schema-validated JSON responses.
/api/healthSystem MonitoringReturns real-time status of the service, active NVIDIA Nemotron models, environment variable readiness, and endpoint registry.
{
"status": "ok",
"service": "Nimrod-CI",
"version": "1.0.0",
"models": {
"primary": "nvidia/nemotron-3-super-120b-a12b",
"fast": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B"
},
"endpoints": [ ... ]
}/api/examplesSecurity DatasetsProvides curated security test fixtures (SQL Injection, Hardcoded API Keys, DOM XSS, Path Traversal, Insecure Deserialization, and Benign controls).
{
"examples": [
{
"id": "sqli",
"title": "SQL Injection in User Authentication",
"category": "CWE-89",
"severity": "critical",
"language": "javascript"
}
]
}/api/triagenvidia/NVIDIA-Nemotron-3-Nano-30B-A3BQuickly screens unified diffs to identify high-risk code hunks and filter out harmless styling/refactoring changes before expensive reasoning.
Parameters & Schema
| Field | Description |
|---|---|
| diff | Unified code diff (max 20,000 characters) |
| language | Source language (e.g. javascript, typescript, python) |
{
"diff": "--- a/api/login.js\n+++ b/api/login.js\n@@ -10,3 +10,3 @@\n- const q = 'SELECT * FROM users WHERE id = ' + userId;\n+ const q = `SELECT * FROM users WHERE id = ${userId}`;",
"language": "javascript"
}{
"needsDeepAnalysis": true,
"confidence": 0.98,
"riskyHunks": [
{
"file": "api/login.js",
"lineStart": 10,
"flagReason": "Possible SQL injection: unescaped template literal parameter."
}
]
}/api/analyzenvidia/nemotron-3-super-120b-a12bExecutes comprehensive static vulnerability reasoning using NVIDIA Nemotron. Optionally passes fullPipeline: true to receive a complete NimrodReport with verdict and score.
Parameters & Schema
| Field | Description |
|---|---|
| diff | Unified code diff (max 20,000 characters) |
| language | Source language (e.g. javascript, typescript, python) |
| riskyHunks | Optional hunks pre-filtered by Triage |
| fullPipeline | If true, returns complete report with verdict, risk score, and stats |
{
"diff": "--- a/auth.js\n+++ b/auth.js\n@@ -14,2 +14,2 @@\n- const query = 'SELECT * FROM users WHERE id = $1';\n+ const query = 'SELECT * FROM users WHERE id = ' + req.body.id;",
"language": "javascript",
"fullPipeline": true
}{
"findings": [{
"id": "fnd_001",
"severity": "critical",
"title": "SQL Injection via String Concatenation",
"cwe": "CWE-89"
}],
"report": {
"verdict": "block",
"riskScore": 90
}
}/api/enrichTavily Search APIEnriches detected findings with authoritative CWE and OWASP remediation guidelines, security advisories, and industry documentation. Operates with fail-soft architecture.
Parameters & Schema
| Field | Description |
|---|---|
| findings | List of Finding objects returned by /api/analyze |
| language | Source language (e.g. javascript, typescript, python) |
{
"findings": [{
"id": "fnd_001",
"title": "SQL Injection in User Authentication",
"cwe": "CWE-89",
"severity": "critical"
}],
"language": "javascript"
}{
"findings": [{
"id": "fnd_001",
"cwe": "CWE-89",
"references": [{
"title": "OWASP SQL Injection Prevention Cheat Sheet",
"url": "https://cheatsheetseries.owasp.org/..."
}]
}]
}/api/patchnvidia/nemotron-3-super-120b-a12bGenerates a minimal, non-breaking unified diff and patched source code file. Governed by strict safety rules: never proposes eval, new Function, or shell=True. Enforces the real target file path in the unified diff header.
Parameters & Schema
| Field | Description |
|---|---|
| finding | Finding object to remediate |
| originalCode | Full or hunk source code |
| language | Source language (e.g. javascript, typescript, python) |
| feedback | Verification feedback with CWE and line number for iterative self-repair |
{
"finding": { "id": "fnd_001", "title": "SQL Injection", "cwe": "CWE-89", "severity": "critical" },
"originalCode": "function getUser(id) {\n return db.query('SELECT * FROM users WHERE id=' + id);\n}",
"language": "javascript"
}{
"patch": {
"findingId": "fnd_001",
"unifiedDiff": "--- a/getUser.js\n+++ b/getUser.js\n@@ -2,2 +2,2 @@\n- return db.query('SELECT...' + id);\n+ return db.query('SELECT... $1', [id]);",
"rationale": "Replaced string concatenation with parameterized SQL query placeholder."
}
}/api/verifyAcorn/TS Compiler + nvidia/NVIDIA-Nemotron-3-Nano-30B-A3BVerifies the synthesized patch through a two-stage gate: AST compiler syntax check followed by model re-analysis for any residual weakness. Returns resolved: false with CWE and line in notes, feeding back to /api/patch for an automated retry (up to 2 iterations).
Parameters & Schema
| Field | Description |
|---|---|
| finding | Finding object to remediate |
| patch | Synthesized Patch object |
| originalCode | Original source code |
| language | Source language (e.g. javascript, typescript, python) |
| iteration | Current loop iteration (1 to 2, server-enforced max) |
{
"finding": { "id": "fnd_001", "cwe": "CWE-89", "severity": "critical" },
"patch": { "findingId": "fnd_001", "patchedCode": "db.query('SELECT * FROM users WHERE id = $1', [id]);" },
"originalCode": "db.query('SELECT * FROM users WHERE id=' + id);",
"language": "javascript",
"iteration": 1
}{
"verification": {
"findingId": "fnd_001",
"patchApplied": true,
"syntaxValid": true,
"reanalysis": { "resolved": true, "notes": "Parameterized query successfully neutralizes SQL injection vector." },
"iterations": 1,
"status": "verified"
}
}/api/githubGitHub REST API v3Parses any GitHub Pull Request URL, fetches PR metadata, unified diff, and primary modified source files directly from GitHub.
Parameters & Schema
| Field | Description |
|---|---|
| url | GitHub PR URL (e.g. https://github.com/jammar24/Nimrod-CI/pull/1) |
| token | Optional GitHub Personal Access Token (for private repos or higher rate limits) |
{
"success": true,
"data": {
"owner": "jammar24",
"repo": "Nimrod-CI",
"pullNumber": 1,
"title": "Fix SQL injection in authentication route",
"diff": "--- a/routes/users.js\n+++ b/routes/users.js\n...",
"files": [{ "filename": "routes/users.js", "status": "modified" }]
}
}/api/githubGitHub Git Data APICreates a security remediation branch, commits the verified patch, and opens an automated Pull Request with full analysis notes directly on GitHub.
Parameters & Schema
| Field | Description |
|---|---|
| action | Must be "create-pr" or "fetch-pr" |
| owner | Repository owner handle |
| repo | Repository name |
| filePath | Relative path of patched file |
| patchedContent | Complete source code with security fix applied |
| token | GitHub Personal Access Token (PAT) with repo scope |
{
"action": "create-pr",
"owner": "jammar24",
"repo": "Nimrod-CI",
"baseBranch": "main",
"newBranch": "nimrod-ci/fix-sqli",
"filePath": "routes/users.js",
"patchedContent": "const query = 'SELECT * FROM users WHERE id = $1';",
"prTitle": "[Nimrod-CI] Security Patch: Fix SQL injection",
"token": "ghp_xxxxxxxxxxxx"
}{
"success": true,
"data": {
"prNumber": 42,
"prUrl": "https://github.com/jammar24/Nimrod-CI/pull/42",
"branch": "nimrod-ci/fix-sqli"
}
}