Skip to content
CORE/learn/what-is-api
BACK_TO_MAP
DOMAIN::fundamentalsAPI Fundamentals

What is an API

"The interface between software components."

Real_World_Analogy

A restaurant menu providing a list of dishes you can order without knowing how the kitchen works.

Constraints_&_Tradeoffs

  • A stable interface lets the implementation change without touching a single caller.
  • Whatever the interface hides, callers cannot depend on — that is both the point and the cost.
  • An interface that leaks its internals stops being an interface: callers couple to the implementation.
INTERACTIVE_TRACE
TRACE::CONTRACT_BOUNDARY
METHOD::CONTRACT_BOUNDARYwhat-is-api
CALLER_SEES::PUBLISHED_OPERATIONS
OBSERVABLE_RESULT

total(orderId) → { total, currency }

this is the whole surface the caller may depend on

CONTRACT
IMPLEMENTATION::OPAQUE
storage enginenot in contract
queuenot in contract
worker poolnot in contract
IMPLEMENTATION::V1

the internals behind the boundary are unknown to the caller

Illustrative_Specimen

CONSUMER  total(orderId: "<order-id>")
RESULT    { total, currency }
HIDDEN    storage engine, indexes, retry policy

Placeholders in <angle-brackets>. Illustrative message shapes, not a description of any specific API.