Layer 2 — HTTP/API Edge

Express route setup, auth and tenant context, AI proxy routes, WorkflowCentral routes, configuration APIs, and gateway policy surfaces.

Every operator action and every external API call passes through this layer of the seven-layer code architecture first. Tenant identity is established here and propagated downward — no layer below re-derives tenant identity from request headers. Production AI traffic flows exclusively through governed proxy routes; the natural-language action surface is gated by an allowlist-based action gate (see Natural Language Action Gate).

Questions this layer answers

  • Where is tenant context established?
  • Which API routes participate in governance?

Ask them live on the Code Architecture Dashboard — click the second layer of the infographic.

Documentation & evidence


Last refreshed: 2026-07-06