API Reference
Hanzo Guard API
Hanzo Guard provides LLM I/O sanitization via an HTTP proxy API.
Hanzo Guard provides LLM I/O sanitization via an HTTP proxy API.
Hanzo Guard API · Guide & examples → · All API references →
| Base URL | https://guard.hanzo.ai |
| Version | 1.0.0 |
| Operations | 8 |
| Guide | Hanzo Guard API guide |
Authentication
bearerAuth— HTTP bearerBearerAuth— HTTP bearer
All Hanzo APIs share one bearer credential and common error and pagination conventions. See API conventions.
curl -H "Authorization: Bearer $HANZO_API_KEY" https://guard.hanzo.aiEndpoints
Audit
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/guard/audit | Get audit log |
Config
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/guard/config | Get current configuration |
PUT | /v1/guard/config | Update configuration |
Health
| Method | Endpoint | Description |
|---|---|---|
GET | /health | Health check |
Rate Limit
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/guard/rate-limit/{user_id} | Check rate limit status |
DELETE | /v1/guard/rate-limit/{user_id} | Reset rate limit |
Sanitize
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/guard/sanitize/input | Sanitize user input |
POST | /v1/guard/sanitize/output | Sanitize LLM output |
How is this guide?