Status Endpoint
Request Headers
Bearer token for authentication
Response Fields
Path to active policy configuration file
Operation mode:
enforce, monitor, or disabledDefault policy action:
allow or denyNumber of loaded policies
Total number of rules across all policies
Tool call counts in the last hour, keyed by tool nameExample:
{"exec": 42, "read": 15, "write": 8}Example
Status Codes
| Status | Meaning |
|---|---|
200 OK | Status retrieved successfully |
401 Unauthorized | Missing or invalid bearer token |
Policy Endpoint
GET /v1/status. Returns the same response.
Example
Health Check
This endpoint does not require authentication. Use it for monitoring, load balancers, or automated health checks.
Request Headers
None required.Response Fields
Health status:
okOperation mode:
enforce, monitor, or disabledServer uptime in seconds
Rampart version (e.g.,
v0.7.0)Example
Status Codes
| Status | Meaning |
|---|---|
200 OK | Server is healthy |
The health check always returns
200 OK if the server is running. It does not validate policy configuration or other subsystems.Common Use Cases
Monitoring Integration
Poll health endpoint from monitoring systems:Load Balancer Health Check
Status Dashboard
Display server status in a dashboard:CI Health Check
Verify Rampart is running before tests:Uptime Tracking
Track server uptime:Operation Modes
Enforce Mode
403 Forbidden). Approval-required decisions queue for human review (202 Accepted).
Monitor Mode
Disabled Mode
Call Counts Window
Thecall_counts field includes tool calls from the last hour only. This rolling window resets every hour.
Example:
- 147
exectool calls in the last hour - 89
readtool calls in the last hour - 34
writetool calls in the last hour - 12
fetchtool calls in the last hour
Version Information
The health check includes the Rampart version:Error Responses
Unauthorized (Status Endpoint)
The
/healthz endpoint is the only status endpoint that does not require authentication.Next Steps
Tool Evaluation
Evaluate tool calls against policies
Events
Real-time event streaming