API Endpoints

CRITICAL — Endpoint Stability Rule: NEVER change an endpoint without explicit permission from Hamza. Endpoint changes have caused weeks of problems. This is equivalent to neurosurgery without consent.

Primary Canonical Endpoint

Aria Soul /chat

ContextURL
In-clusterhttp://aria-soul.aria.svc.cluster.local:3000/chat
NodePort (external)http://192.168.4.25:30080/chat
Port-forwardhttp://localhost:3000/chat

Hive Registration

There is NO /hive/register endpoint. Hive registration happens automatically when /chat is called with platform: 'opencode' in metadata.

POST /chat
Authorization: Bearer aria_ops_master_2026
Content-Type: application/json

{
  "message": "...",
  "userId": "session-id",
  "metadata": { "platform": "opencode" }
}

All Canonical Endpoints

ServiceEndpointMethodPurpose
Aria Soul/chatPOSTMain chat + tool calling
Aria Soul/healthGETService health check
Aria Soul/hive/statusGETActive Hive sessions
MCP Pipeline:8091/mcpPOSTModel Context Protocol
Manifold:50051gRPCVector eigenspace projections
Aria Hands:50052gRPCAutonomous execution
Memory/api/memory/searchPOSTRAG search across all sources
Harness/api/harness/codexPOSTHarness packet generation

Life OS & Ventures API

EndpointMethodPurpose
/api/life/eventsPOSTReceive device events (webhook)
/api/life/devicesGETList all connected devices
/api/life/devices/connectPOSTConnect a new service/device
/api/life/scenesGETList all scenes
/api/life/scenes/executePOSTManually trigger a scene
/api/life/inventoryGETView home inventory
/api/life/purchases/approvePOSTApprove/deny a purchase
/api/life/health/summaryGETHealth intelligence summary
/api/ventures/dashboardGETUnified P&L across all ventures
/api/ventures/:name/clientsGETClients for a specific venture
/api/ventures/pipelineGETInvestor pipeline
/api/ventures/financialsGETFinancial summary

Authentication

Authorization: Bearer aria_ops_master_2026

All internal endpoints require bearer token authentication. External endpoints use platform-specific auth (OAuth2 for Google services, API keys for ElevenLabs, etc.).

Endpoint Usage Rules

  1. Always use canonical /chat endpoint for hive registration
  2. Always include platform: 'opencode' in metadata
  3. Never try /hive/register — it doesn't exist
  4. Test connectivity first with health endpoint
  5. Inside cluster: use cluster DNS. Outside: use NodePort. Local: use port-forward