Skip to main content
[AVAILABLE]. packages/api. Not a library other packages import, it’s the running server. No public exports (src/index.ts is empty).

Purpose

Composes every other package into one running Express process: policy loading, the gateway, credential isolation, caller authentication, and 14 HTTP routes. For the routes themselves, request/response shapes, and verified error codes, see REST API Introduction, this page covers the server’s internal structure.

Install

Not installed as a dependency, this package is the deployable server itself. See Deploy patterns.

Structure

One file in src/bootstrap/ is dead code, not wired into anything: ConnectorCatalog.ts lists connectors (including disabled stubs like stripe/sap) but is not imported anywhere in packages/api/src. The real, running connector registration path is createConnectorRegistry.ts, see The gateway. Two other files, scripts/generate-keys.ts (repo root) and packages/api/src/bootstrap/createVendorPaymentSecureConnector.ts, are empty, 0-byte stub files, also unused.ExecutionControlComposition.ts and ConnectorFactory.ts (a different, class-based composition root for the same responsibility as createExecutionControl.ts — not the ConnectorFactory interface from @parmana/connector-sdk described on this page) previously sat alongside the real path with zero callers anywhere in the repository. Removed in Phase 2I (docs/architecture/phase2i-composition-root-cleanup.md) after independent verification confirmed they were never wired into production, tests, or any published surface.

Minimal example

Full walkthrough: Quickstart.

Next

REST API Introduction

Every route’s request, response, and verified error codes.

Deploy patterns

Storage, keys, and the full environment checklist for running this server.