Skip to content

Developer Portal

The developer portal is the admin-facing control surface for public API access, scoped API keys, OpenAPI documentation, rate-limit visibility, examples, and webhook subscriptions.

Runtime Surfaces

Access Control

/api/developer-portal requires an authenticated ADMIN or SUPER_ADMIN context. The route reads only the current firm's settings and firm-owned webhook endpoints. API key hashes are never returned to the browser; the page only receives key IDs, names, prefixes, scopes, creation dates, last-use timestamps, and expiration dates.

Data Contract

The summary response is built in src/lib/developer-portal/registry.ts and contains:

The route uses no-cache headers because it contains firm-owned security inventory and usage data.

Scope Model

The current supported scopes are:

Future adapter work should enforce these scopes at the API-key auth layer before exposing additional public API operations.

Verification

Focused coverage lives in:

Required checks for portal changes:

Source: docs/dev/developer-portal.md