Skip to content

API declaration reference

Every key a founder or coding agent writes to declare an API, with its type, what it holds and the page that explains it.

An API is declared in four places: the Product file, its Interface, its Offers and its Publication. Every other part compiles from these keys.

Product file

products/pro.mdx, frontmatter. Products is the file convention.

KeyTypeHoldsExplained in
$typelistAPI, alone or beside App, Agent, Dataset or ServiceAnatomy of an API
nounsNoun namesThe Nouns it exposesDesign an API
verbsVerb idsThe Verbs a Customer may callCustomize an API
interfaceslistThe Interfaces it ships on; every kind by defaultPackages under your name

Interface

KeyTypeHoldsExplained in
kindapi, mcp, cli, sdk, site, app, docs or webhooksWhich Interface it isPackages under your name
pathstringWhere it mounts on the Domain, such as /apiCustomize an API
conformsTolistThe Standards it also speaks, each mapping operations onto VerbsStandards your API speaks

Offer

offers/portfolio.mdx, frontmatter. Offers has every key; these decide what an API caller gets.

KeyTypeHoldsExplained in
price{ amount, currency }What it charges each intervalSell an API
intervalonce, day, week, month or yearHow often it billsSell an API
atBoundstop, overage or upgradeWhat a call past a Limit getsAPI plans, limits and uptime
credit{ amount, currency }Prepaid credit each purchase issuesSell an API

Offer.grant adds each Entitlement: a Verb, optionally with a Limit.

Publication

Compiled from the Brand, the Domain and one Version. Each field can be set.

KeyHoldsExplained in
api, mcp, docs, statusPage, portalWhere each Interface answers on the DomainCustomize an API
packagesThe SDK, CLI and MCP package names, per package registryPackages under your name
envPrefixThe prefix of the key variable the packages readPackages under your name
webhookHeaderThe signature header on every deliveryWebhooks for your customers
errorNamespaceThe base of every error typeDesign an API

Per Tenant and per Watch

RecordKeyHoldsExplained in
TenantapiVersionThe version an unversioned call answers atVersioning your API
Watchselector, url, payloadWhich Events go where, in full or thinWebhooks for your customers

Every route, method, command and tool: API · SDK · CLI · MCP.