Runtime API
Runs on your machines, default port 7466. It is part of the open-source
runtime, so every route here is in a repository you can read.
Authentication is an agent token in Authorization: Bearer, or an opt-in
mTLS client certificate whose subject CN is the agent name. Management routes
use an API key carrying a role: viewer, approver or admin.
curl -X POST http://127.0.0.1:7466/v1/actions/check \
-H "Authorization: Bearer $MEMNOX_AGENT_TOKEN" \
-H "content-type: application/json" \
-d '{"action":"deploy.service","environment":"production"}'Deciding
/v1/actions/checkagent/v1/decisionagent/v1/authorizeagent/v1/contextagent/v1/evaluate-riskagent/v1/actions/outcomeagentPOST /v1/actions/check
Body
actionstringrequired
targetstring
environmentstring
sessionIdstring
taintTaintSource[]
approvalIdstring
{
"action": "code.modify",
"target": "src/payment/checkout.ts",
"environment": "production",
"sessionId": "run_8812",
"taint": [{ "sourceType": "github_issue_comment", "actor": "NONE" }]
}Response
effect'allow' | 'block' | 'require_approval' | 'redact'required
reasonstring
approvalIdstring
riskLevel'low' | 'medium' | 'high' | 'critical'
matchedPoliciesstring[]
policyVersionstring
signalsstring[]
{
"effect": "require_approval",
"approvalId": "a_7f31c2",
"riskLevel": "high",
"reason": "Money-handling code changes go through security review.",
"matchedPolicies": ["payment-code-approval"],
"policyVersion": "e852ac2d63d0",
"signals": ["tainted-session"]
}POST /v1/actions/outcome
{ "actionId": "…", "status": "succeeded", "detail": "3 files changed, tests green" }status is succeeded, precondition_failed, execution_failed or
postcondition_failed. A failed rollback audits as critical and opens an
incident. See Verified execution.
Policies
/v1/policiesviewer/v1/policies/validateadmin/v1/policies/reloadadminApprovals
/v1/approvals/:idagent · admin/v1/approvals/:id/approveapprover/v1/approvals/:id/denyapprover/v1/approvals/:id/overrideadminAgents
/v1/agents/:idviewer/v1/agents/:id/rotateadminMemory
/v1/memory/searchviewer/v1/memory/decisionsadminAudit and operations
/v1/auditviewer/v1/audit/verifyviewer/v1/metrics/healthznoneFailure behaviour
This table is the contract, and it is deliberately unforgiving.
Situation
Unknown token
Suspended agent
Action outside declared capabilities
Taint store unreadable
An advisor cannot run
Rate limit exceeded

