API Reference
Interactive endpoint docs backed by live responses. Run requests below to inspect current capability schema and deterministic output behavior.
Base URL
https://brainstackstudio.com
Live route inventory
The detailed examples below cover the most common integration calls. The complete inventory is generated from the deployed API route handlers at request time.
Routes
unavailable
Methods
unavailable
Source
unavailable
/api/technical-evaluator/api-inventory
Live route inventory generated from shipped route handlers.
public inventory
/api/capability
Capability schema and allowed options.
public
/api/capability
Deterministic explorer output for context inputs.
rate-limited public
/api/tools
Tool catalog for calculators, analyzers, and generators.
rate-limited public
/api/tools/[id]/execute
Execute a registry tool with validation, quota, and persistence gates.
guest, session, or API key
/api/tools/[id]/quota
Pre-run daily quota state for the selected tool.
guest or session
/api/dashboard/tool-sessions
Saved tool execution traces for the signed-in workspace.
session
/api/integrations/quickbooks/status
Read-only QuickBooks integration status. Not yet enabled for workspaces — answers QBO_READ_ONLY_DISABLED until owner setup completes.
session
GET/api/capability
Returns the full capability schema including all valid industries, roles, and pain points that can be used as inputs to the explorer. Use this to populate selection interfaces or validate inputs before calling the POST endpoint.
Parameters
None required.
Example Request
curl https://brainstackstudio.com/api/capabilityExample Response
{
"status": "ok",
"deterministic": true,
"confidenceThreshold": 0.65,
"industries": [
{
"id": "operations",
"label": "Operations / Business Management",
"description": "Cross-functional ops, reporting, and process reliability."
},
{
"id": "construction",
"label": "Construction / Trades",
"description": "Field coordination, estimating, and schedule accuracy."
},
{
"id": "saas",
"label": "SaaS Operations",
"description": "Customer health, incidents, and retention risk."
}
],
"roles": [
{
"id": "owner",
"label": "Owner / Exec"
},
{
"id": "ops-manager",
"label": "Ops Manager"
},
{
"id": "engineer",
"label": "Engineer"
},
{
"id": "analyst",
"label": "Analyst"
}
],
"painPoints": [
{
"id": "money",
"label": "Money / Margin"
},
{
"id": "labor",
"label": "Labor / Staffing"
},
{
"id": "process",
"label": "Process Chaos"
},
{
"id": "compliance",
"label": "Compliance Risk"
},
{
"id": "scale",
"label": "Scale / Throughput"
},
{
"id": "visibility",
"label": "Visibility / Reporting"
}
],
"provenance": {
"mode": "deterministic",
"source": "registry",
"stable": true,
"registryVersion": "1.0.0"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
| status | string | "ok" on success |
| deterministic | boolean | Whether the explorer produces stable, repeatable output |
| confidenceThreshold | number | Minimum confidence score (0-1) for high-quality results |
| industries | array | Valid industry options with id, label, description |
| roles | array | Valid role options with id and label |
| painPoints | array | Valid pain point options with id and label |
| provenance | object | Metadata about how the response was generated |
POST/api/capability
Runs a deterministic capability mapping for the given industry, role, and pain point combination. Returns a structured result with workflow steps, automation logic, value metrics, boundaries, and a decision trail. Same inputs always produce the same output.
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| industry | string | Yes | Industry ID from GET /api/capability |
| role | string | Yes | Role ID from GET /api/capability |
| painPoint | string | Yes | Pain point ID from GET /api/capability |
Example Request
curl -X POST https://brainstackstudio.com/api/capability \
-H "Content-Type: application/json" \
-d '{"industry": "operations", "role": "ops-manager", "painPoint": "money"}'Example Response
Computed by the same rules engine the endpoint calls, for the input above. The value fields name what to measure; the engine does not invent savings figures.
{
"status": "ok",
"confidenceThreshold": 0.65,
"input": {
"industry": "operations",
"role": "ops-manager",
"painPoint": "money"
},
"result": {
"toolkit_slug": null,
"toolkit_match": "generic",
"confidence": 0.85,
"confidenceLabel": "High",
"identifiedPain": "Margin leakage from inconsistent workflow execution and delayed approvals.",
"workflow": [
"Assign an owner and an SLA to each step below before the work starts",
"Collect weekly revenue + cost signals from core systems",
"Flag variance beyond tolerance thresholds",
"Route approvals with time-boxed escalation"
],
"automationLogic": [
"If variance > 8% then open escalation task",
"Auto-attach supporting context and owner",
"Send summary to finance + ops leadership",
"If SLA breach imminent → auto-reassign to backup",
"Generate daily ops standup brief"
],
"outputs": [
"Variance report (weekly)",
"Approval queue summary",
"Margin-at-risk alert",
"Team assignment matrix",
"SLA compliance tracker",
"Operational runbook"
],
"value": {
"timeSaved": "Estimated after workflow baseline",
"laborReduced": "Manual workload identified",
"errorsPrevented": "Risk controls identified",
"decisionLatency": "Before/after baseline needed"
},
"boundaries": [
"No internal systems or proprietary logic exposed.",
"Outputs are deterministic and bounded to the selected context.",
"If confidence is low, the system will ask for more detail."
],
"decisionTrail": [
"Industry: operations",
"Role context: ops-manager",
"Role: ops-manager — Operational efficiency and team coordination",
"Primary pain: money",
"Mapped to deterministic workflow template",
"Applied ops-manager role lens: Operational efficiency and team coordination",
"Generated bounded outputs and value signals"
],
"provenance": {
"mode": "deterministic",
"source": "registry",
"stable": true,
"registryVersion": "1.0.0"
}
}
}Error Responses
GET/api/tools
Returns a list of available tools including calculators, analyzers, generators, and visualizers. Filter by category or featured status using query parameters.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| category | string | No | Filter by category: calculators, analyzers, generators, visualizers |
| featured | string | No | Set to "true" to return only featured tools |
Example Request
curl "https://brainstackstudio.com/api/tools?featured=true"Example Response
{
"success": true,
"count": 2,
"tools": [
{
"id": "roi-calculator",
"slug": "roi-calculator",
"name": "ROI Calculator",
"shortDescription": "Calculate return on investment with visual projections",
"category": "calculators",
"industries": [
"universal"
],
"painPoints": [
"money"
],
"icon": "TrendingUp",
"color": "cyan",
"featured": true,
"comingSoon": false
},
{
"id": "cash-flow-forecaster",
"slug": "cash-flow-forecaster",
"name": "Cash Flow Forecaster",
"shortDescription": "Project your 13-week cash runway with risk analysis",
"category": "calculators",
"industries": [
"universal",
"finance",
"saas"
],
"painPoints": [
"money",
"visibility"
],
"icon": "Wallet",
"color": "emerald",
"featured": true,
"comingSoon": false
}
]
}POST/api/tools/[id]/execute
Execute a specific tool by its ID with the required input parameters. Each tool defines its own input schema. Use GET /api/tools to discover available tools and their IDs. Authenticated users get results persisted to their dashboard.
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Tool ID (alphanumeric, hyphens, underscores, max 50 chars) |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| inputs | object | Yes | Key-value pairs matching the tool's input schema. Values can be strings or numbers. |
Example Request
curl -X POST https://brainstackstudio.com/api/tools/roi-calculator/execute \
-H "Content-Type: application/json" \
-H "X-API-Key: bss_live_your_api_key" \
-d '{"inputs":{"currentAnnualCost":100000,"estimatedAnnualSavings":40000,"implementationCost":50000,"timeToImplement":3,"discountRate":10}}'Example Response
Complete ROI result from the execute endpoint’s engine, using illustrative inputs, chart start month and timestamp. Account, quota and decision-path metadata are omitted from this response excerpt.
Saved runs include a sessionId; unsaved runs omit it. Real timestamps record execution time.
{
"success": true,
"toolId": "roi-calculator",
"toolName": "ROI Calculator",
"result": {
"outputs": [
{
"id": "roi",
"label": "Return on Investment",
"value": 119.9999999999999,
"format": "percentage",
"trend": "positive",
"highlight": true,
"description": "3-year ROI based on implementation cost vs. modeled post-implementation cost reductions"
},
{
"id": "annualCostReduction",
"label": "Annual Cost Reduction",
"value": 40,
"format": "percentage",
"trend": "positive",
"description": "Modeled annual savings as a share of current annual cost ($40,000 / $100,000)"
},
{
"id": "paybackPeriod",
"label": "Payback Period",
"value": 18,
"format": "months",
"trend": "positive",
"highlight": true,
"description": "Time to recover initial investment"
},
{
"id": "npv",
"label": "3-Year NPV",
"value": 43468.5,
"format": "currency",
"trend": "positive",
"highlight": true,
"description": "Net present value at 10% discount rate"
},
{
"id": "breakEvenMonth",
"label": "Break-Even Month",
"value": 18,
"format": "text",
"trend": "positive",
"description": "Month when cumulative savings exceed investment"
},
{
"id": "recommendationMemo",
"label": "Recommendation memo",
"value": "Decision summary: modeled ROI is 120%, payback is 18.0 months, NPV is $43,468, and break-even is month 18.\nInput completeness: high (95%), from required inputs and reasonableness checks. This is not a statistical confidence level.\n\nAssumptions:\n- Savings assumption: $40,000/year modeled against a $100,000/year current annual cost baseline.\n- Timing assumption: 3-month implementation period; modeled savings begin after implementation.\n- Finance assumption: 10% discount rate across a 36-month review window.\n\nCFO review notes:\n- 120% ROI means the 3-year benefit is at least twice the $50,000 implementation cost. Confirm timing, owner capacity, and savings evidence before approval.\n- Validate the $40,000/year cost-reduction assumption, the $50,000 implementation cost, and the 3-month implementation timing before approval.",
"format": "text",
"trend": "positive",
"description": "The decision, its confidence, and the assumptions to check before approval"
},
{
"id": "threeYearSavings",
"label": "3-Year Modeled Savings",
"value": 109999.99999999996,
"format": "currency",
"trend": "positive",
"description": "Modeled cost reductions over 36 months after implementation delay"
},
{
"id": "netBenefit",
"label": "Net Benefit",
"value": 59999.999999999956,
"format": "currency",
"trend": "positive",
"description": "Total savings minus implementation cost"
}
],
"confidence": 0.95,
"confidenceLevel": "high",
"chart": {
"labels": [
"Sep",
"Oct",
"Nov",
"Dec",
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug"
],
"datasets": [
{
"label": "Cumulative Savings",
"data": [
-50000,
-50000,
-50000,
-46666.666666666664,
-43333.33333333333,
-39999.99999999999,
-36666.66666666666,
-33333.33333333332,
-29999.99999999999,
-26666.666666666657,
-23333.333333333325,
-19999.999999999993,
-16666.66666666666,
-13333.333333333327,
-9999.999999999993,
-6666.666666666659,
-3333.3333333333253,
8.185452315956354e-12,
3333.3333333333417,
6666.666666666675,
10000.00000000001,
13333.333333333343,
16666.666666666675,
20000.000000000007,
23333.33333333334,
26666.66666666667,
30000.000000000004,
33333.333333333336,
36666.66666666667,
40000.00000000001,
43333.33333333334,
46666.66666666668,
50000.000000000015,
53333.33333333335,
56666.666666666686,
60000.00000000002
],
"color": "#22d3ee",
"type": "line"
},
{
"label": "Break-Even Line",
"data": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"color": "#94a3b8",
"type": "line"
}
]
},
"summary": "This investment shows a 120% ROI with a payback period of 18.0 months. The 3-year NPV is $43,468.",
"recommendations": [
"120% ROI means the 3-year benefit is at least twice the $50,000 implementation cost. Confirm timing, owner capacity, and savings evidence before approval.",
"Payback is 18.0 months; you need $50,000 in available cash or financing for that recovery window. Ensure your cash flow can absorb this without straining operations.",
"$43,468 in present-value terms means this model stays positive after applying the 10% discount rate. The break-even point at month 18 leaves 18 modeled months after payback within the 3-year window.",
"Even if savings are 20% lower than projected, ROI remains positive at 76%."
],
"decisionTrail": [
"Analyzed investment of $50,000 with 3 month implementation",
"Used current annual cost baseline of $100,000",
"Modeled annual cost reduction of $40,000 (40.0% of current annual cost)",
"Applied 10.0% discount rate for NPV calculation",
"Projected 36-month modeled savings after implementation delay of $110,000",
"Determined break-even at month 18"
],
"timestamp": "2026-09-30T12:00:00.000Z",
"nextSteps": [
"Validate the $40,000/year cost-reduction estimate with your operations team, including the current $100,000/year baseline.",
"Get a firm implementation quote on the $50,000 cost.",
"Present this analysis to stakeholders with downside protection.",
"Set a go/no-go deadline; delays can change the savings window."
]
}
}Error Responses
Rate Limits
Public endpoints are rate-limited per IP.
Pro API keys share a key-bound bucket with higher throughput and usage telemetry.
Exceed a limit and the response carries rate-limit headers so you can back off cleanly.
| Endpoint | Tier | Limit |
|---|---|---|
| GET /api/capability | Free | No limit |
| POST /api/capability | Free | 100 requests/min per IP |
| GET /api/tools | Free | 100 requests/min per IP |
| POST /api/tools/[id]/execute | Signed-in account / Pro API key | 30 requests/min per IP or 100 requests/min per Pro API key |
Interactive Capability Runner
cURL Example
curl -X POST https://brainstackstudio.com/api/capability \
-H "Content-Type: application/json" \
-d '{"industry":"","role":"","painPoint":""}'GET /api/capability Response
{
"info": "Run GET request to view response"
}POST /api/capability Response
{
"info": "Run POST request to view response"
}GET /api/tools Response
{
"info": "Run tools request to view response"
}Authentication
Pro users can generate API keys from the Dashboard. Pass your key via the X-API-Key header.