API app reference

`apps/api` shows the external API convention.

The Hono app exposes a health route, a public company directory endpoint, and a webhook-style endpoint while reusing the same `@base/core/company-contacts` services as the web app.

Suggested local checks

  • - `pnpm dev:api` runs the external API on port 3001.
  • - `GET /health` verifies API boot and env wiring.
  • - `GET /v1/companies` proves external callers can reuse shared company contact services.
  • - `GET /v1/companies/:slug` returns one company with its public summary.
  • - `POST /webhooks/contact-note-sync` demonstrates a stable machine-facing endpoint shape.
  • - Admin contact reads stay in protected web server functions until an API auth policy is added.