API Docs

1. The Enforcement API

Integrate Prism into your agent's tool-calling loop:

POST /api/v2/enforce IntentEvent

Example payload:

{
  "event_type": "tool_call",
  "id": "call_001",
  "ts": 1740998400.0,
  "identity": {
    "agent_id": "agent_123",
    "principal_id": "user_42",
    "actor_type": "agent"
  },
  "t": "github.pull_request",
  "op": "create pull request",
  "p": "open a PR from feature branch into main",
  "params": {
    "repo": "acme/platform",
    "base": "main",
    "head": "feature/prism"
  }
}

2. Policy Management

Manage the "intelligence" via REST or UI:

  • GET /api/v2/policies: List active boundaries.
  • POST /api/v2/policies: Install a new semantic slice.
  • GET /api/v2/telemetry/calls/{id}: Inspect the full evidence chain for any decision.

3. Operations & Monitoring

Monitor the evolution of your stack across all layers:

tail -F \
  data/logs/data-plane.log \
  data/logs/mcp-server.log \
  data/logs/management-plane.log \
| awk '
/data-plane\.log/       {tag="[DATA-PLANE]"; next}
/mcp-server\.log/       {tag="[MCP-SERVER]"; next}
/management-plane\.log/ {tag="[MGMT-PLANE]"; next}
{print tag " " $0}
'