Skip to main content

Platform API

Reference
Everything the interface does, the API does

The platform exposes a REST surface over the same operations the web interface performs. It is what the MCP write tools call, and it is what your own automation would call.

Access is provided to customers

The API reference — endpoints, payload shapes, semantics and credentials — is provided directly to customers under their agreement, not published here. This page describes what the surface does so you can plan around it.

What it covers​

AreaWhat you can do
SystemsRead a system's current graph, change it, and trigger a build or a push
AttributesRead and update component, sub-component and link attributes, individually or in batches
TopologyAdd and remove components and links
CatalogDefine attributes, and bind them to component types with their options and defaults
TestsDefine validation tests against a system, scoped by component or by topology
KnowledgeList the rationale papers, and attach the why of a component, sub-component or link to a system without touching anything else in it

Every call is made as a platform account — the account you sign in to the web interface with — and carries that account's role on the system. A user of your stack's own identity provider is a different identity and is never accepted here. Writes are refused, with the reason, while the diagram is invalid against the catalog or while a catalog change is waiting to be synchronised.

The shape of a safe write​

The same discipline the MCP enforces applies to any client:

Read the current state

Never write against an assumed value.

Change exactly what you mean to

Some write operations merge and others replace wholesale. Knowing which is which is the difference between adding a sub-component and silently removing the others.

Verify by identity, not by success

A write that returns success is not a write that did what you meant. Read it back.

Build only when you intend to

A build regenerates the stack repository.

Why most people never call it directly​

Because the MCP tools already do — with the current value read first, the blast radius computed, the options enumerated from the catalog, and a confirmation step before anything is written or built.

Direct API use makes sense for integrating Stacktic into an existing internal workflow. For everything else, the conversation is the interface.

→ MCP tool surface