OTTO API Reference
Complete endpoint documentation for the OTTO Messenger Server v3.3. All endpoints run on customer premises.
Endpoints
/api/otto/askNLP query → structured intelligence card (JSON). Includes BrainScore, Truth Verifier, Monte Carlo simulation, recommended actions.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | <svg className="w-4 h-4 inline-block align-text-bottom flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><polyline points="20 6 9 17 4 12"/></svg> | Natural-language business question |
| tenant_id | string | Customer tenant identifier |
/api/otto/streamSSE stream — word-by-word answer + final intelligence card. Use with EventSource or Fetch ReadableStream.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | <svg className="w-4 h-4 inline-block align-text-bottom flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><polyline points="20 6 9 17 4 12"/></svg> | Natural-language question |
| tenant_id | string | Tenant ID |
/api/otto/learnIngest customer business data for Fast Learning context enrichment. Persisted to SQLite.
| Parameter | Type | Required | Description |
|---|---|---|---|
| domain | string | <svg className="w-4 h-4 inline-block align-text-bottom flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><polyline points="20 6 9 17 4 12"/></svg> | Business domain (SALES, FINANCE, …) |
| label | string | <svg className="w-4 h-4 inline-block align-text-bottom flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><polyline points="20 6 9 17 4 12"/></svg> | Human-readable dataset name |
| data | object | <svg className="w-4 h-4 inline-block align-text-bottom flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><polyline points="20 6 9 17 4 12"/></svg> | Key-value pairs of KPIs |
/api/otto/learn/statusReturns count and summary of all ingested learning context entries.
/api/otto/nlp-capabilitiesReturns active NLP stack details: backend, models, accuracy, domain count, zero_knowledge flag.
/api/otto/cockpit-dataFull cockpit snapshot across all 17 platforms. Used by the Enterprise Intelligence Cockpit dashboard.
/api/otto/platform/{platform_id}Single platform intelligence detail. platform_id is one of: sales, finance, supply, people, marketing, customer, cyber, operations, risk, controlling, innovation, sourcing, legal, strategy, communications, data, commerce.
/workflow/actionExecute a recommended action. Returns execution_id and QUEUED status.
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | <svg className="w-4 h-4 inline-block align-text-bottom flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><polyline points="20 6 9 17 4 12"/></svg> | Action text from recommended_actions |
| platform | string | <svg className="w-4 h-4 inline-block align-text-bottom flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><polyline points="20 6 9 17 4 12"/></svg> | Source platform |
| severity | string | low | medium | high | critical |
/workflow/actions/logFull action lifecycle log with status, timestamps, and outcome (before/after values for chart rendering).