API Surface Model

The API surface model defines how connectors expose their functionality through lnkpt. Each connector declares one or more API surfaces, which may be internal or externally reachable depending on the connector’s design. lnkpt ensures that these surfaces are exposed consistently across deployments.

In standalone deployments, a connector may expose a single API surface, allowing lnkpt to operate as a clean, isolated endpoint host that integrates easily with existing infrastructure.

Definition of an API Surface

An API surface is the externally visible interface through which a connector provides its capabilities. API surfaces may represent:

lnkpt does not define the behaviour of an API surface; it ensures that the surface is exposed exactly as declared by the connector.

Internal and External Surfaces

Connectors may expose two types of API surfaces:

Standalone deployments often expose a single external surface, providing a clean integration point without requiring changes to existing systems.

Declared API Surfaces

Every connector must declare its API surfaces as part of its metadata. A declaration includes:

lnkpt uses these declarations to expose the surfaces predictably, regardless of whether the deployment hosts one connector or many.

Routing and Exposure

lnkpt provides the routing layer that makes API surfaces available. This includes:

In standalone mode, routing is minimal and direct, allowing lnkpt to function as a clean endpoint host with no cross‑connector routing complexity.

Stability Expectations

Connectors are responsible for maintaining the stability of their API surfaces. lnkpt ensures that surfaces are exposed consistently, but the connector defines:

lnkpt guarantees exposure, not behaviour.

Examples

The API surface model supports a wide range of connector types, including:

These examples illustrate the flexibility of the API surface model, whether lnkpt is deployed standalone or as part of a larger connector environment.