Policy API
Part of CLPI Phase 1: Policy Engine. The Policy API is the programmatic interface to policy evaluation.
https://api.mnemom.ai/v1
Authentication
API key authentication: Pass in the
X-Mnemom-Api-Key header:
Authorization header:
POST /v1/api-keys.
Rate limits
Rate-limited responses return HTTP
429 with a Retry-After header.
Endpoints
POST /v1/policies/evaluate
Evaluate a policy against a set of tools. Returns a verdict indicating whether the tools are permitted, any violations or warnings, and coverage analysis against the agent’s card actions. Request body:
Response:
200 OK
Violation object:
coverage object:
Error responses:
POST /v1/policies/evaluate/historical
Evaluate a policy against historical traces for an agent. Replays past tool invocations through the current policy to surface retroactive violations. Useful for auditing policy changes before enforcement. Request body:
Response:
200 OK
Error responses:
Error codes
All error responses follow the standard envelope:
SDK usage
Policy evaluation is not yet wrapped by the
@mnemom/sdk client (which currently covers the agents and catalog namespaces). Call /v1/policies/evaluate directly over HTTP until an SDK helper ships.See also
- Policy Engine — How policies are evaluated and enforced
- Policy DSL Specification — Full schema reference for policy documents
- Policy CLI — Manage policies from the command line
- Policy Management Guide — Best practices for writing and deploying policies
- Alignment cards — Where agent and org policy is now declared