Overview
The Actions API records AI agent actions, triggers jurisdiction evaluation and anomaly scoring, and exposes HalluCase flags. Actions are the atomic units of the chain of custody used in evidence packages.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /actions | Record an action (triggers jurisdiction eval + anomaly scoring) |
| POST | /actions/mcp | Ingest MCP tool-call action |
| GET | /actions/:id | Get action record |
| GET | /actions | List actions (filter by mandate_id, from date) |
| GET | /actions/anomalies | List anomalous actions (HalluCase flags, anomaly scores) |
Example
curl -X POST http://localhost:4000/actions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer tr_abc123" \
-d '{"mandate_id":"...","action_type":"access:document"}'