comprehensive platform report — 2026-03-29

AaaS Full Report

Everything built across two days: API Gateway with 31 routes and 177 addressable endpoints, 6 foundries with 27/27 slots filled, self-serve onboarding, credit system, and SkillBoss-parity provider layer — all deployed and live.

31
Gateway Routes
177
Addressable Endpoints
20
LLM Models
16
Media Models
81
Scraping Endpoints
13
Cloud Functions
27/27
Foundry Slots
147
Seed Entities

1. What Was Built (For Humans)

In two days, we built a centralized API worksuite that competes with SkillBoss.co — one API key that gives developers access to language models, image/video generation, social media scraping, email, SMS, document processing, and multi-agent orchestration.

The Customer Experience

1. Visit agents-as-a-service.com/gateway
2. Sign in with Google → 500 free credits auto-loaded + API key auto-created
3. Click "Reveal API Key" → copy it
4. curl -H "Authorization: Bearer aaas_xxx" .../v1/chat/completions → works
5. Credits deducted per request. Top up via Stripe when low.

What Makes AaaS Different From SkillBoss

SkillBoss wraps 679 APIs behind one key. We do the same AND add multi-agent orchestration — 7 foundry chains that compose 63 skills into autonomous workflows. DevOps incident response, revenue pipeline, customer success, HR, finance, legal. No competitor offers agent composition as a public API.

2. All 31 Gateway Routes

CategoryMethodPathDescriptionStatus
SYSTEM (no auth)
GET/v1/statusHealth checkLive
POST/v1/billing/webhookStripe payment confirmationLive
ONBOARDING (Firebase ID token)
POST/v1/onboard/reveal-keyReveal auto-provisioned API keyLive
GET/v1/onboard/statusCheck onboard status (keys, credits)Live
LLM (Bearer auth)
GET/v1/modelsList 20 available modelsLive
POST/v1/chat/completionsMulti-provider LLM routing (OpenAI format)Code ready
MEDIA (Bearer auth)
POST/v1/images/generationsFLUX, SD, Ideogram, Recraft via ReplicateCode ready
POST/v1/videos/generationsKling, Sora, Runway via ReplicateCode ready
POST/v1/audio/speechElevenLabs, OpenAI TTS, Google TTSCode ready
POST/v1/audio/transcriptionsWhisper STTCode ready
POST/v1/audio/musicMusicGen, Lyria, Stable AudioCode ready
POST/v1/audio/sfxElevenLabs sound effectsCode ready
POST/v1/embeddingsOpenAI text-embedding-3Code ready
GET/v1/media/modelsList all media modelsLive
COMPOSE (Bearer auth) — AaaS EXCLUSIVE
GET/v1/compose/chainsList 7 foundry chainsLive
GET/v1/compose/foundriesList 6 foundries with slot countsLive
GET/v1/compose/skillsList 63 composable skillsLive
POST/v1/compose/mega-grindExecute full foundry pipelineLive
INTELLIGENCE (Bearer auth)
POST/v1/scrape/companyExtract company data from domainLive
POST/v1/scrape/classifyClassify industry (Vertex AI)Live
POST/v1/skills/matchMatch skills to classificationLive
POST/v1/agents/suggestSuggest agents for businessLive
UNIVERSAL RUN (Bearer auth) — routes to 118 sub-endpoints
POST/v1/runUniversal endpoint: Apify(30), Scrapecreators(48), EnsembleData(13), Firecrawl(3), Linkup(3), Prelude(3), Reducto(2), Replicate(16)Code ready
GET/v1/run/modelsList all available run modelsLive
BILLING (Bearer auth)
GET/v1/billing/balanceCurrent credit balanceLive
GET/v1/billing/packagesTop-up packages ($5/$25/$50/$100)Live
GET/v1/billing/usageUsage history with cost breakdownLive
POST/v1/billing/checkoutStripe checkout sessionNeeds Stripe
KEYS (Bearer auth)
GET/v1/keysList user's API keysLive
POST/v1/keys/createCreate new key (max 5)Live
POST/v1/keys/revokeRevoke key by IDLive

Live Functional now   Code ready Deployed, needs upstream API key   Needs Stripe Awaiting Stripe account

3. Upstream Provider Integrations (15 vendors)

ProviderCategoryModels/EndpointsKey StatusCode
Google Vertex AILLM + Classification2 models + classifierLive (ADC)google.ts
AnthropicLLM3 modelsNeeds keyanthropic.ts
OpenAILLM + Audio + Embeddings5 LLM + TTS + Whisper + EmbeddingsNeeds keyopenai.ts, openai-audio.ts
OpenRouterLLM (multi-vendor)5 models (DeepSeek, Llama, Mistral, Qwen)Needs keyopenrouter.ts
PerplexitySearch-augmented LLM2 modelsNeeds keyperplexity.ts
ReplicateImage + Video + Audio16 modelsNeeds keyreplicate.ts
ElevenLabsTTS + Music + SFX3 endpointsNeeds keyelevenlabs.ts
ApifySocial automation30 actorsNeeds keyapify.ts
ScrapecreatorsSocial data48 endpointsNeeds keyscrapecreators.ts
EnsembleDataSocial analytics13 endpointsNeeds keyensembledata.ts
FirecrawlWeb scraping3 endpointsNeeds keyfirecrawl.ts
LinkupSearch3 endpointsNeeds keylinkup.ts
PreludeSMS3 endpointsNeeds keyprelude.ts
ReductoDocuments2 endpointsNeeds keyreducto.ts
ResendEmailEmail system (10 templates)Needs keyemail-sender.ts

4. Foundry Composition Engine

6 foundries, 27/27 slots filled, all chains READY. This is the AaaS-exclusive feature that no competitor offers.

FoundryAgentsSlotsStatusAvg ScoreTop Champion
F1 DevOps56/6Ready49Rollback Execution (91)
F3 Revenue55/5Ready51Brand Guideline Enforcement (71)
F4 Customer Success33/3Ready31Usage Trend Analysis (31)
F7 People55/5Ready37Calendar Negotiation (60)
F6 Finance44/4Ready32Monte Carlo Simulation (32)
F5 Legal44/4Ready39Clause Analysis (61)

5. Codebase Architecture

functions/src/
├── api/                            ← API Gateway (2,748 lines)
│   ├── gateway.ts                  — 31 routes, main HTTP handler
│   ├── types.ts                    — All type definitions
│   ├── errors.ts                   — OpenAI-compatible errors
│   ├── model-registry.ts           — 20 LLM models with pricing
│   ├── middleware/                  — Auth, rate limit, credits, usage (303 lines)
│   ├── routers/                    — LLM, billing, media, scrape (522 lines)
│   └── providers/                  — 15 upstream vendor integrations (1,098 lines)
│
├── lib/foundry/                    ← Composition Engine (1,446 lines)
│   ├── slot-registry.ts            — 27 slots across 6 foundries
│   ├── vault-scanner.ts            — Skill matching (category-filtered)
│   ├── tournament-engine.ts        — Karpathy-style competition
│   ├── chain-composer.ts           — Champion assembly
│   ├── chain-executor.ts           — Chain execution (dry-run + live)
│   ├── mega-grind.ts               — Full pipeline orchestrator
│   └── use-case-registry.ts        — 7 registered use cases
│
├── lib/                            ← Supporting modules
│   ├── email-sender.ts             — Resend integration
│   ├── email-composer.ts           — Template routing
│   ├── email-templates/ (10)       — Welcome → weekly digest pipeline
│   ├── scraper.ts                  — Zero-cost HTML scraping
│   ├── classifier.ts              — Vertex AI industry classification
│   ├── skill-matcher.ts            — Skill matching engine
│   └── agent-suggester.ts          — Agent recommendation
│
├── apiKeyProvisioner.ts            ← Auto-provision on signup
├── contextPipeline.ts              ← 5-step context generation
├── foundryFunctions.ts             ← Mega-grind + status endpoints
└── index.ts                        ← 13 exported Cloud Functions

apps/blog/src/seed/                 ← 147 Entity Seeds
├── seed-use-cases-devops.ts        — 5 DevOps agents
├── seed-use-cases-revenue.ts       — 5 Revenue agents
├── seed-use-cases-customer-success.ts — 3 CS agents
├── seed-use-cases-people.ts        — 5 People agents
├── seed-use-cases-finance.ts       — 4 Finance agents
├── seed-use-cases-legal.ts         — 4 Legal agents
├── seed-skills-devops.ts           — 18 DevOps skills
├── seed-skills-revenue.ts          — 11 Revenue skills
├── seed-skills-customer-success.ts — 8 CS skills
├── seed-skills-people.ts           — 10 People skills
├── seed-skills-finance.ts          — 8 Finance skills
└── seed-skills-legal.ts            — 8 Legal skills

6. Security & Credit Guard

Negative balance is mathematically impossible

Layer 1: Pre-execution cost estimate. If balance < estimatedCost, request rejected with HTTP 402 before the upstream provider is ever called.

Layer 2: Atomic deduction via Firestore transaction after execution completes. Two concurrent requests cannot both read the same balance.

Layer 3: Credits collection has no client-side Firestore rules. Only Cloud Functions can modify balances.

Security FeatureImplementation
API key storageSHA-256 hashed before Firestore write. Raw key never stored.
Rate limitingSliding window per key: 60 RPM, 10,000 RPD. Stored server-side.
Stripe webhookSignature verification via stripe.webhooks.constructEvent()
Key revealOne-time display. Stored in api_key_reveals/{userId}, marked after read.
Firebase AuthGoogle OAuth + email/password. ID tokens verified server-side.
Firestore rulesapi_keys, credits, rate_limits — no client read/write access.

7. Build History (Last 15 Commits)

2ff7ce5 Self-serve onboarding — auto-provision API key + 500 credits on signup
5ee3193 SkillBoss-parity provider layer — 177 endpoints via 10 providers
339de21 API Gateway page + pricing tier + navbar link
ca6d42d API Gateway build report + deliveries dashboard update
250ec84 Billing system + key management + Stripe webhook
0dfcbfa AaaS API Gateway v1 — public API with auth, rate limiting, credits
0d680e6 Per-category API build plans — 460+ endpoints mapped
e8c37e1 Component readiness matrix
0bd3b2f API Gateway master plan — 8 components, 12-week build sequence
dc8fbae 27/27 slots filled — all 6 foundries READY
273cc15 Update foundry dashboard — 25/27 slots filled
5628565 Optimize vault scanner — category-filtered query
06bc635 Add skill seeds for all 6 foundries (87 entities)
8b8dfd2 Create centralized testing-backlog.md
c276e25 Foundry composition layer + mega-grind pipeline

8. Human Action Required

16 API keys need to be created at upstream providers and stored in GCP Secret Manager. Most are free signup, pay-as-you-go. Full details with signup URLs at open-issues (items 8-10).

PriorityProviderUnlocksFree Tier?
CriticalStripeSelf-serve credit top-upsYes
CriticalOpenRouterDeepSeek, Llama, Mistral, Qwen (30+ models)Pay-as-you-go
CriticalAnthropicClaude 4.5 Sonnet, Claude 4 Sonnet, Haiku$5 free
CriticalOpenAIGPT-5, TTS, Whisper, Embeddings$5 free
HighReplicate76+ media models (FLUX, Kling, Sora, MusicGen)Pay-as-you-go
HighElevenLabsPremium TTS, music, sound FX10K chars/mo
HighPerplexitySearch-augmented Sonar modelsFree tier
MediumApify130 social media actors100 runs/mo
MediumScrapecreators108 social data endpointsPay-as-you-go
MediumFirecrawlJS-rendered web scraping500 pages/mo
Medium4 othersEnsembleData, Linkup, Prelude, ReductoVaries

9. Live URLs

WhatURL
Platformagents-as-a-service.com
Gateway docsagents-as-a-service.com/gateway
Pricingagents-as-a-service.com/pricing
API base URLhttps://apigateway-q66ryynraa-uc.a.run.app
Knowledge Indexaaas.blog
Foundry dashboardaaas-design.web.app/foundry
Deliveries hubaaas-design.web.app/deliveries
This reportaaas-design.web.app/full-report
Open issuesaaas-design.web.app/open-issues
GitHubgithub.com/ibossyNr1/aaas.blog

10. Planning Documents

DocumentPathContent
Master plandocs/superpowers/plans/2026-03-28-aaas-api-gateway-plan.md8 components, 12-week build sequence
Readiness matrixdocs/superpowers/plans/2026-03-28-component-readiness-matrix.mdWhat exists vs what to build per component
Category plansdocs/superpowers/plans/2026-03-28-api-category-buildplans.mdPer-category vendor mapping + effort estimates
Foundry backlogtasks/foundry-backlog.md6 foundries with agent specs + acceptance criteria
Testing backlogtasks/testing-backlog.md71 tests across 13 systems
Use-case indexcontext/use-case-entity-index.md50 use cases mapped to 10 foundries
Open issuestasks/open-issues.md10 items requiring human action