Skip to main content

Policy API

Part of CLPI Phase 1: Policy Engine. The Policy API is the programmatic interface to policy evaluation.
The Policy API provides programmatic access to policy evaluation — evaluate tool usage against an agent’s resolved policy, and replay historical traces against the current policy for pre-enforcement auditing.
Setting a policy is done through the alignment card. Agent and org policy are no longer standalone resources — they are part of the unified alignment card surface. Set an agent’s policy via PUT /v1/alignment/agent/{agent_id} and an org’s baseline via the org-card surface. See Agent cards and the Policy Management guide. The evaluation endpoints below are the canonical way to test tools against a resolved policy.
Base URL: https://api.mnemom.ai/v1

Authentication

API key authentication: Pass in the X-Mnemom-Api-Key header:
Bearer JWT authentication: Pass in the Authorization header:
API keys can be created in your dashboard under Settings or via 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
Response fields: 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
Response fields: 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.
To set or update an agent’s policy, use the unified alignment-card endpoint — see the Policy Management guide.

See also