/api/healthPublicLiveness and uptime for load balancers.
Use the same-origin HTTP API, API keys, and documented ingest paths to connect operational workflows — without inventing endpoints or exposing private backends in the browser.
Products = ecosystem · Platform = operating core · Developers = programmable surface. API keys live at Settings → API keys after sign-in (secret shown once).
Capabilities below map to routes and settings that already exist in this repository.
Open API docs, then sign in to mint keys or ingest tokens.
Session cookies, smohix_sk_ keys, ingest tokens, and provider signatures are not interchangeable.
Use the catalog — only routes implemented under app/api are claimed.
API keys authenticate reasoning/robot proxies — not every console session route.
Expect 401/403 for auth, 429 when limited, and JSON error fields where implemented.
Public status, documented rate limits, and console audit for operational evidence.
Credentials are purpose-scoped. Do not treat session cookies, API keys, ingest tokens, and provider signatures as interchangeable.
Console and most product API routes use browser sessions after sign-in.
Bearer or X-Smohix-Api-Key for /api/reasoning/* and /api/robot/* only.
Alert/vuln ingest tokens and compliance assessor tokens — separate from API keys.
PayPal, Lemon Squeezy, and Slack verify signatures — never expose signing secrets in clients.
Representative routes from the live catalog. Full list lives in the HTTP API reference.
/api/healthPublicLiveness and uptime for load balancers.
/api/integrations/alertsIngest tokenAlert ingest opens or deduplicates incidents.
/api/reasoning/*Session or smohix_sk_Reasoning connector proxy — API-key eligible.
/api/robot/*Session or smohix_sk_Robot connector proxy — API-key eligible.
Only statuses below are claimed. Preview and planned items are not published packages.
TypeScript / Next.js (this repo)
Open-source web app at github.com/aicodeai50/SMOHIX — primary integration surface today.
Smohix SDK (@smohix/sdk)
Preferred TypeScript package name for the Smohix API client. Publishing is in progress — use the documented REST catalog and API keys until the package is released.
Python SDK
Planned — use the Smohix HTTP API and API keys until published.
CLI
Planned developer CLI for keys, ingest testing, and health checks.
HQ routes are served under /api/… without a public /v1 path segment today. Treat the catalog as the source of truth; a full versioned public API may be introduced later without inventing endpoints here.
Inbound ingest
Alert and vulnerability ingest with Bearer ingest tokens (optional HMAC).
Billing / provider callbacks
Signature-verified billing webhooks where configured.
Slack approvals
Approval callbacks for guarded operational workflows.
General outbound subscriptions
Not available — there is no general developer “subscribe to events” webhook API.
Rate limits: Sensitive routes enforce in-memory limits (Upstash when configured). Proxy routes typically allow 120 requests per 60 seconds per user+IP. Alert and vulnerability ingest apply similar per-IP limits. Responses may include retry_after / Retry-After when limited.
Create a workspace session so you can mint keys and configure ingest.
Settings → API keys. The full secret is shown once — copy it immediately.
Use an environment variable or secret manager. Never commit keys to Git.
Call /api/health (public) or authenticate /api/reasoning/* and /api/robot/* with Bearer smohix_sk_…
Expect 401/403 for auth, 429 when rate limited, and 5xx for upstream or server failures.
Revoke compromised keys in Settings immediately, then mint a replacement.
Example uses a clearly fake key prefix. Replace with a secret from Settings → API keys. API keys authenticate the reasoning and robot proxies — not every console route.
// Server-side only — never expose smohix_sk_ keys in browsers
const key = process.env.SMOHIX_API_KEY; // e.g. smohix_sk_example_not_a_real_secret
if (!key) throw new Error("Missing SMOHIX_API_KEY");
const res = await fetch("https://smohix.run/api/reasoning/health", {
headers: {
Authorization: `Bearer ${key}`,
// or: "X-Smohix-Api-Key": key,
},
});
if (!res.ok) {
const body = await res.text();
throw new Error(`HTTP ${res.status}: ${body}`);
}
const data = await res.json();
console.log(data);Errors & rate limits
Smohix AI lives at https://ai.smohix.run and is not the same surface as this HQ HTTP catalog. Console Copilot uses same-origin /api/copilot/chat with server-side configuration — HQ API keys authenticate reasoning/robot proxies here, not the Smohix AI product site.
Open Smohix AI ↗Copy example requests for documented routes — run them in your terminal or server. Requests are not executed from this page.
API request builder — generates copyable examples only. Requests are not executed from this page. Use your own terminal or server with a valid API key.
Public liveness — no authentication.
curl -s https://smohix.run/api/health{
"ok": true,
"service": "smohix-web",
"uptime_s": 12345
}Plan and checkout behavior are documented on /pricing. Developer APIs here do not introduce self-serve payment flows. Configure billing only through existing signed-in settings when available.