# Stackbilt LLC API

**Canonical:** https://apis.io/apis/stackbilder-com/stackbilder-com-api/  
**Provider:** Stackbilt LLC — https://apis.io/providers/stackbilder-com/  
**Base URL:** https://stackbilder.com  
**Documentation:** https://docs.stackbilt.dev/api-reference

Stackbilt LLC API is one of 2 APIs that [Stackbilt LLC](https://apis.io/providers/stackbilder-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

Stackbilt LLC API as documented publicly: 60 operations. Contract generated from the documentation by API Evangelist (2026-11-25); not the provider's own document.

## Operations (60)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/account/me` | GET /api/account/me |
| POST | `/api/account/name` | Purpose: Update the authenticated user’s display name. |
| GET | `/api/admin/cf/cost-estimate` | Estimate monthly Cloudflare cost from a 1–30 day worker‑request sample. |
| GET | `/api/admin/cf/forecast` | Cost forecast over 7/14/30‑day rolling windows. |
| GET | `/api/admin/cf/inventory` | List all Cloudflare resources (Workers, D1, R2, KV) owned by the configured account. |
| GET | `/api/admin/cf/worker-analytics` | Top 50 Workers by request volume over 1–30 days, with error counts and CPU time. |
| GET | `/api/admin/export-scaffolds` | Bulk export scaffold flow data (grimoire readings + receipts + Oracle enhancements) for audit and recursive improvement. |
| GET | `/api/agents/{role}/memory` | Query agent memory state (zone counts, entropy, recent cards) for a specific role. |
| POST | `/api/agents/bootstrap` | Purpose: Deck research — analyze domain gaps and assign research methodology tier. |
| POST | `/api/agents/ciso-intake` | Purpose: Structured CISO posture intake — returns a signed Trust Bundle receipt or a refusal with remediation guidance. |
| POST | `/api/agents/run` | POST /api/agents/run |
| GET | `/api/auth/relay` | Purpose: OAuth session relay — receives session token from auth.stackbilt.dev after OAuth callback, sets secure cookie, redirects to target page. |
| POST | `/api/billing/checkout` | Create a Stripe Checkout session. |
| POST | `/api/billing/downgrade` | Downgrade tenant to free tier. |
| POST | `/api/billing/portal` | Create a Stripe Billing Portal session for subscription management. |
| GET | `/api/billing/promos` | List all promotion codes (admin endpoint). |
| POST | `/api/billing/promos` | Create a new promotion code. |
| DELETE | `/api/billing/promos/{id}` | Revoke a promo code. |
| POST | `/api/contact` | Public contact form → Resend email to admin@stackbilt.dev . |
| POST | `/api/csp-report` | Public CSP violation report endpoint. Logs to console, persists to OBSERVE_DB with 30-day retention. |
| POST | `/api/errors` | Client-side error telemetry (from React ErrorBoundary components) → Worker console. |
| GET | `/api/flows` | List the user’s scaffolds from the TarotScript grimoire. |
| POST | `/api/flows` | Create a new scaffold — classify intent, run scaffold‑cast spread, optionally run Oracle polish. |
| GET | `/api/flows/{id}` | Full scaffold detail — governance, files, next steps, Oracle status. |
| GET | `/api/flows/{id}/oracle` | Retrieve persisted Oracle enhancement status/result for an existing scaffold. |
| POST | `/api/flows/{id}/oracle` | Trigger LLM Oracle polish on an existing scaffold; persist enhanced files to KV. |
| GET | `/api/health` | GET /api/health |
| GET | `/api/images` | List user’s generated image jobs. |
| DELETE | `/api/images/{id}` | Delete an image job (cascades to img-forge asset cleanup). |
| GET | `/api/images/{id}` | Retrieve single image job status. |
| POST | `/api/images/generate` | Create a new image generation job. |
| GET | `/api/keys` | Purpose: List the authenticated user’s API keys (masked). |
| POST | `/api/keys` | Purpose: Generate a new API key. |
| DELETE | `/api/keys/{id}` | Purpose: Revoke an API key. |
| GET | `/api/mcp` | JSON‑RPC MCP server – public tool discovery. |
| POST | `/api/mcp` | JSON-RPC 2.0 MCP server exposing admin Cloudflare tools (analytics, inventory, cost forecasting). |
| GET | `/api/observe/alerts` | List fired and resolved alert incidents. |
| POST | `/api/observe/ingest` | Unified batch telemetry ingest — metrics, spans, logs, alerts — from @stackbilt/worker-observability consumers. |
| GET | `/api/observe/summary` | Per-worker summary stats (error rate, p95 latency, request count) over a time range. |
| GET | `/api/observe/traces` | Paginated trace list with filters. |
| GET | `/api/observe/traces/{id}` | Full trace detail with correlated spans + logs. |
| POST | `/api/subscribe` | Newsletter signup → Resend audience. |
| POST | `/api/support/tickets` | In-app bug/support ticket. Auto-triaged via TarotScript triage-cast spread. |
| GET | `/api/trust/bundle/{hash}` | List Trust Bundle artifact metadata for a receipt hash (bytes not included). |
| DELETE | `/api/trust/bundle/{hash}/{slug}` | Remove an artifact — deletes R2 object, then D1 manifest row. |
| GET | `/api/trust/bundle/{hash}/{slug}` | Fetch a single artifact’s manifest row (metadata only). |
| POST | `/api/trust/bundle/{hash}/{slug}` | Upload or overwrite an artifact for a Trust Bundle. |
| GET | `/api/trust/slugs` | List all trust slugs owned by the caller’s org. |
| POST | `/api/trust/slugs` | POST /api/trust/slugs |
| DELETE | `/api/trust/slugs/{slug}` | Remove a slug mapping. |
| GET | `/api/trust/slugs/{slug}` | Fetch a single slug row if the caller’s org owns it. |
| GET | `/api/usage` | Purpose: Current quota usage and tier for the authenticated user. |
| POST | `/api/v1/evidence/attest` | Composite “survived adversarial review” pipeline. One call runs initial validate → critique + revise → optional gap‑fill polish → final validate → signed pub... |
| POST | `/api/v1/evidence/gap-fill` | POST /api/v1/evidence/gap-fill |
| GET | `/api/v1/evidence/library` | List tenant’s evidence assets with optional filtering. |
| POST | `/api/v1/evidence/library` | Create a new evidence asset. |
| DELETE | `/api/v1/evidence/library/{id}` | Remove an evidence asset and its domain join rows. |
| GET | `/api/v1/evidence/library/{id}` | Retrieve a single evidence asset. |
| PUT | `/api/v1/evidence/library/{id}` | Partial or full update of an evidence asset. |
| POST | `/api/v1/evidence/validate` | POST /api/v1/evidence/validate |

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/stackbilder-com/openapi/_ae-authored/stackbilder-com-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/stackbilder-com/json-schema/stackbilder-com-post-api-v1-evidence-attest-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/stackbilder-com/json-schema/stackbilder-com-post-api-trust-bundle-hash-slug-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/stackbilder-com/json-schema/stackbilder-com-post-api-agents-ciso-intake-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/stackbilder-com/json-schema/stackbilder-com-get-api-agents-role-memory-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/stackbilder-com/json-schema/stackbilder-com-get-api-flows-id-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/stackbilder-com/json-schema/stackbilder-com-post-api-v1-evidence-library-request-schema.json

## Other Stackbilt LLC APIs (1)

- [Stackbilder API](https://apis.io/apis/stackbilder-com/stackbilder-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/stackbilder-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/stackbilder-com/stackbilder-com-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/stackbilder-com/.
