API Overview
The Steward API is a REST API built with Hono running on Bun. All responses follow a consistentApiResponse<T> shape.
Base URL
Authentication
Steward supports three authentication methods:- Tenant API Key
- Agent JWT
- SIWE (Sign In With Ethereum)
For tenant-level operations (agent CRUD, policy management, secret management):The API key is returned once when a tenant is created and cannot be retrieved again.
Platform Key
For platform-level operations (cross-tenant management), use the platform key:Response Format
All endpoints return a consistent format:HTTP Status Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created (new resource) |
| 202 | Accepted (transaction queued for approval) |
| 400 | Bad request (invalid input) |
| 401 | Unauthorized (missing or invalid auth) |
| 403 | Forbidden (policy denied, wrong scope) |
| 404 | Not found |
| 409 | Conflict (duplicate resource) |
| 500 | Internal server error |
| 502 | Bad gateway (RPC error from blockchain) |
Rate Limits
The API does not currently enforce global rate limits. Per-agent rate limits are configured via policies.Route Groups
| Prefix | Description | Auth Required |
|---|---|---|
/agents | Agent CRUD + policy management | Tenant key or agent JWT |
/vault | Signing, approvals, history | Agent JWT or tenant key |
/secrets | Secret + route CRUD | Tenant key only |
/tenants | Tenant management | Tenant key |
/auth | SIWE, passkeys, email login | Varies |
/platform | Cross-tenant admin | Platform key |
/health | Health check | None |