Platform
API
A public API pattern ready to copy. Keys are created and revoked in settings and resolve to their owner's session. When you want a separate service, an optional Hono app serves versioned routes with Swagger docs.
What you get
- Personal keys with an ss_ prefix, shown once, with optional expiry
- Read-only or full-access scopes
- A per-key rate limit of 600 requests a minute
- /v1/me, /v1/billing and a /v1/notes CRUD example to copy
- Interactive Swagger docs generated from each route's schema
Turn it on
- Create keys at /settings/api-keys
- Optional: run pnpm dev:api for the Hono service
Where it lives
lib/api/auth.tsapp/api/v1/me/route.tsapps/api/src/routes/