API
Alloy exposes HTTP APIs both for product and intent workflows and for runners and Foundry integrations. The surfaces below are grouped by purpose.
Product / intent endpoints
These candidate endpoints cover intent records, discoveries, hypotheses, formation briefs, drift, and trace ingestion:
GET /projects/{id}/intent-recordsPOST /projects/{id}/intent-recordsPOST /projects/{id}/discoveriesGET /projects/{id}/hypothesesPOST /hypotheses/{id}/acceptPOST /formation-briefsGET /formation-briefs/{id}POST /formation-briefs/{id}/compile-promptsPOST /foundry/traces/{trace_id}/ingestGET /projects/{id}/drift
Runner / run-request / Foundry endpoints
Alloy should expose APIs for runners and Foundry integrations. These candidate endpoints cover Foundry capabilities, formation briefs, the run-request lifecycle that runners poll and update, and Foundry run observations:
GET /api/projects/:id/foundry-capabilities
POST /api/projects/:id/foundry-capabilities
POST /api/projects/:id/formation-briefs
GET /api/formation-briefs/:id
GET /api/formation-briefs/:id/compiled
POST /api/projects/:id/run-requests
GET /api/runners/:runner_id/run-requests/next
POST /api/run-requests/:id/accepted
POST /api/run-requests/:id/started
POST /api/run-requests/:id/events
POST /api/run-requests/:id/completed
POST /api/run-requests/:id/failed
POST /api/foundry-runs/:id/trace-summary
POST /api/foundry-runs/:id/evidence-observationsThe run-request endpoints carry a Foundry Execution Request to runners and collect a Foundry Run Result back. How runners connect to these surfaces depends on the chosen Integration Modes and the deployed Runtime Topology.
Up: Interfaces · Related: CLI
Source: Product Brief §21 (API and CLI Seed); Integration Architecture §11.1 (Alloy API surface).