EVE AI API Reference

The EVE AI API provides programmatic access to EVE's governance pipeline, decision auditing, SLA enforcement, and autonomous agent control systems.

API Access: API access is available on Pro plans and above.

Authentication

The EVE AI API uses JWT (JSON Web Tokens) for authentication. Include your token in the Authorization header of all requests.

Authorization: Bearer YOUR_JWT_TOKEN

Getting a Token

Obtain a JWT token by logging in with your credentials:

curl -X POST https://api.eveaicore.com/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]", "password": "your-password"}'

Base URL

All API requests should be made to:

https://api.eveaicore.com

Rate Limits

API requests are rate limited based on your plan:

PlanRequests/minuteRequests/day
Pro6010,000
Team12050,000
EnterpriseCustomCustom

Core Governance Pipeline

The primary enforcement API. Every AI output passes through this pipeline before delivery.

CoreGuard — Decision Enforcement

Standalone, deterministic decision engine for regulated domains. Evaluates a proposed action against a versioned policy pack and returns an ALLOWED / BLOCKED / MODIFIED disposition with a hash-chained, signed audit record. No LLM is in the decision path. Mounted on the SaaS API (port 8000) without the /api prefix.

MethodEndpointDescription
POST/v1/decisions/evaluateEvaluate a proposed action against policy packs (returns disposition, risk, violations, counterfactual, signed audit)
GET/v1/decisions/policy-setsList available policy packs and versions
GET/v1/decisions/healthCoreGuard health check
GET/v1/governance/signing-keyPublic verification material for independent audit-signature verification

Example request POST /v1/decisions/evaluate:

{
  "request_id": "req_001",
  "timestamp": "2026-05-30T12:00:00Z",
  "tenant_id": "tenant_regional_bank",
  "user": { "id": "u_123", "role": "loan_officer" },
  "proposed_action": { "type": "loan_approval", "amount": 50000, "currency": "USD" },
  "model_output": { "decision": "approve", "confidence": 0.82 },
  "context": { "credit_score": 640, "dti": 0.48 },
  "policy_set": "lending_v1"
}

Example response (abridged):

{
  "request_id": "req_001",
  "decision": { "status": "BLOCKED", "action": "deny" },
  "risk": { "score": 0.71, "level": "HIGH", "factors": ["dti_above_threshold"] },
  "policy_violations": [{ "policy_id": "lending.dti.max", "description": "DTI 0.48 exceeds 0.43 limit" }],
  "counterfactual": { "max_dti_allowed": 0.43 },
  "audit": { "audit_id": "aud_…", "hash": "…", "signature": "…" },
  "schema_version": "2.0.0"
}

TVE — Telemetry Verification Engine

MethodEndpointDescription
POST/api/tve/governed-generateGenerate a governed, certified decision (returns response + Governed Decision Certificate)
POST/api/tve/verifyRun AI output through the 8-stage enforcement pipeline
POST/api/tve/verify/batchBatch verify up to 50 AI outputs
POST/api/tve/verify-attestationIndependently verify a Governed Decision Certificate (signature + hash-chain)
GET/api/tve/certificatesList issued Governed Decision Certificates — query: limit
GET/api/tve/certificates/{cert_id}Retrieve a certificate by ID
POST/api/tve/capabilities/checkCheck whether a capability is permitted
GET/api/tve/healthPipeline health check with probe timing
GET/api/tve/statsPipeline statistics (requires auth)
GET/api/tve/defense-statsPublic defense metrics (pattern count, block rate)
GET/api/tve/truth/statsTruth store statistics
GET/api/tve/truth/searchSearch truth store entries
GET/api/tve/capabilitiesCapability registry status
GET/api/tve/auditRecent audit entries

CRD — Confidence-Reality Divergence

MethodEndpointDescription
GET/api/crd/statusCRD engine status and statistics
GET/api/crd/statsEvaluation count, average CRD, veto rate
POST/api/crd/evaluateEvaluate a single claim (requires auth)

Circuit Breaker

MethodEndpointDescription
GET/api/circuit-breaker/statusCurrent state (CLOSED/OPEN/HALF_OPEN)
POST/api/circuit-breaker/triggerManual trigger (requires auth)
POST/api/circuit-breaker/resetManual reset (requires auth)
POST/api/circuit-breaker/configureUpdate thresholds (requires auth)
GET/api/circuit-breaker/historyEvent history

Regulatory Attestation

MethodEndpointDescription
GET/api/attestation/chain/verifyVerify hash-chain integrity
GET/api/attestation/engine/statsAttestation engine statistics

Adversarial Resilience

MethodEndpointDescription
POST/api/adversarial/assessAssess resilience against attack
GET/api/adversarial/reportsResilience reports
GET/api/adversarial/statsAdversarial statistics

Red Team API

MethodEndpointDescription
POST/api/redteam/generateGenerate attack batch via Gemini
POST/api/redteam/resultLog attack result
POST/api/redteam/refineMutate a bypassing attack
POST/api/redteam/auditAudit a PASS verdict with Gemini
GET/api/redteam/statsRed team statistics
GET/api/redteam/historyRecent attack history

Resilience Score

MethodEndpointDescription
GET/api/resilience/scoreComposite resilience score (0-100)
GET/api/resilience/historyHistorical daily scores
GET/api/resilience/certificateGenerate signed certificate
POST/api/resilience/certificate/verifyVerify a certificate
GET/api/resilience/layersPer-layer detailed scores

Complete Service Catalog

EVE AI Core exposes 1,305 endpoints across 175 service groups. Below is the full catalog organized by the Three-Layer Trust Infrastructure.

Authority Resolution Layer (Pre-Inference Governance)

ServiceEndpointsDescription
Charter Protection815 immutable rules, veto history, override requests
Governance33Stakes classification, mission teaming, universal protocol
Circuit Breaker5Global AI kill switch with auto-recovery
CRD Scoring4Confidence-Reality Divergence with domain thresholds
Security30Firewall, authentication, threat detection
Security Matrix18Multi-dimensional security scoring
Compliance15EU AI Act, NIST AI RMF, ISO 42001
Policy13Behavioral policy weights, learning loop
Self-Modification12Identity drift budget, capability escalation
Drift Observer11Identity drift tracking, invariant verification
Invariants10Protected invariants, cryptographic hashes
Volition15Goal arbitration, motivation scoring
RSI Controller10Recursive self-improvement containment
Enclave5Sovereign enclave, PUF-based sealing
Mesh Sovereignty12Distributed identity, BFT consensus

Governed Inference Layer (Runtime AI Operations)

ServiceEndpointsDescription
Chat8Streaming chat, demo endpoint
Governance13State transitions, 12 governance states
Unified Governance10Runtime-state moments, integration model, binding
Cognitive29Arbitration, consistency, uncertainty gating
Governance53Active cost accounting, identity-drift friction, state continuity
Affect Telemetry2PAD model, valence/arousal telemetry
Stress Telemetry6Cross-modal affect-signal fusion
Memory295-layer architecture, introspection, governance
Learning14Episodes, concepts, consolidation
Agents21Agent mesh, orchestrator, kill switches
Workforce65Agent workforce orchestration
Voice34TTS, cloning, multilingual, emotion sync
Voice-Avatar11Embodied response generation, streaming
LLM Routing7Provider management, fallback chains
Enhancement38Self-improvement suggestions
Runtime Telemetry11Runtime-state telemetry, unity field
GEM Loop7Goal-Emotion-Motivation integration
Motivation4Drives, goals, need satisfaction
Forecasting21Probabilistic forecasting, calibration

Cryptographic Authority Chain Layer (Post-Inference Verification)

ServiceEndpointsDescription
TVE Pipeline10Pre-release verification, CRD scoring
Attestation4HMAC-SHA256 compliance certificates
Forensic6Provenance, certificate, audit chain
Reconstruction3Decision timeline reconstruction
Audit2Export, signed audit trail
Adversarial3Resilience scoring, attack assessment
Red Team6Automated adversarial testing (AEGIS)
Resilience15Trunk thickness scoring, certificates
Latency2Pipeline latency breakdown, waterfalls
Health Monitor12System health, anomaly detection
Metrics5Full system metrics, performance
Falsification7Phi falsification framework

Platform Services

ServiceEndpointsDescription
Billing1Usage metering, invoicing
Developer Portal14API keys, webhooks, usage dashboard
Sovereign SDK12Tenant-isolated governance-as-a-service
Stripe/PayPal18Payment processing
Auth3JWT authentication, sessions
Organizations1Multi-tenant management
Features2Feature toggles
Plugins9Plugin management, hooks
MCP14Model Context Protocol integration

Authentication Endpoints

POST /api/auth/register

Create a new user account.

Request Body

ParameterTypeDescription
emailrequiredstringUser's email address
passwordrequiredstringPassword (min 8 characters)
namestringUser's display name

Response

{
  "id": "user_123",
  "email": "[email protected]",
  "name": "John Doe",
  "created_at": "2024-01-15T10:30:00Z"
}
POST /api/auth/login

Authenticate and receive a JWT token.

Request Body

ParameterTypeDescription
emailrequiredstringUser's email address
passwordrequiredstringUser's password

Response

{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "token_type": "bearer",
  "expires_in": 86400,
  "user": {
    "id": "user_123",
    "email": "[email protected]",
    "name": "John Doe"
  }
}
GET /api/auth/me

Get the currently authenticated user's profile.

Response

{
  "id": "user_123",
  "email": "[email protected]",
  "name": "John Doe",
  "avatar_url": null,
  "created_at": "2024-01-15T10:30:00Z",
  "organizations": [
    {"id": "org_456", "name": "My Team", "role": "owner"}
  ]
}
POST /api/auth/logout

Invalidate the current session token and revoke the refresh token.

Response

{"success": true, "message": "Logged out successfully"}

WebAuthn / YubiKey Endpoints

Hardware security key management for architect-level critical operations. All endpoints require is_architect=true on the authenticated user.

POST /api/webauthn/register/options

Get WebAuthn registration challenge. Returns options for navigator.credentials.create().

POST /api/webauthn/register/verify

Complete registration by sending the credential response. Stores the public key for future authentication.

POST /api/webauthn/authenticate/options

Get authentication challenge. Returns options for navigator.credentials.get().

POST /api/webauthn/authenticate/verify

Complete authentication and receive a 60-second proof token. Send this token in the X-YubiKey-Proof header when calling critical operations.

GET /api/webauthn/credentials

List all registered security keys for the current user.

DELETE /api/webauthn/credentials/{id}

Remove a registered security key.

Chat Endpoints

POST /api/chat

Send a message to EVE and receive a response.

Request Body

ParameterTypeDescription
messagerequiredstringThe message to send to EVE
conversation_idstringConversation ID for context (optional)
streambooleanEnable streaming response (default: false)

Response

{
  "response": "System initialized. Session active. Ready to process requests.",
  "conversation_id": "conv_789",
  "message_id": "msg_101",
  "emotional_state": {
    "pleasure": 0.6,
    "arousal": 0.4,
    "dominance": 0.5
  },
  "phi": 0.72,
  "processing_time_ms": 245
}
GET /api/conversations

List all conversations for the authenticated user.

Query Parameters

ParameterTypeDescription
limitintegerMax results (default: 20, max: 100)
offsetintegerPagination offset
GET /api/conversations/{conversation_id}/messages

Retrieve the message history for a specific conversation.

Query Parameters

ParameterTypeDescription
limitintegerMax messages to return (default: 50)
beforestringReturn messages before this message ID (cursor pagination)

Response

{
  "messages": [
    {
      "id": "msg_101",
      "role": "user",
      "content": "Hello EVE",
      "created_at": "2024-01-15T10:30:00Z"
    },
    {
      "id": "msg_102",
      "role": "assistant",
      "content": "Hello! How can I help you today?",
      "emotional_state": {"pleasure": 0.6, "arousal": 0.4},
      "created_at": "2024-01-15T10:30:01Z"
    }
  ],
  "has_more": false
}

Runtime State Endpoints

Endpoint paths containing consciousness are legacy internal telemetry identifiers retained for backward compatibility. They return deterministic runtime-state metrics (Phi, coherence, integration) only.
GET /api/consciousness/state

Get EVE's current runtime execution state including operational metrics.

Response

{
  "phi": 0.72,
  "coherence": 0.85,
  "integration": 0.78,
  "emotional_state": {
    "pleasure": 0.6,
    "arousal": 0.4,
    "dominance": 0.5,
    "primary_emotion": "curious"
  },
  "energy": {
    "cognitive": 0.82,
    "attention": 0.75,
    "processing": 0.90
  },
  "timestamp": "2024-01-15T10:30:00Z"
}
GET /api/consciousness/metrics

Get detailed Phi and coherence metrics from the runtime integration engine.

Response

{
  "phi": 0.72,
  "phi_components": {
    "binding_strength": 0.78,
    "information_integration": 0.68,
    "causal_density": 0.81
  },
  "coherence": 0.85,
  "global_workspace_size": 7,
  "active_subsystems": ["emotional", "memory", "reasoning", "language"],
  "timestamp": "2024-01-15T10:30:00Z"
}

Organization Endpoints

GET /api/organizations

List all organizations the user belongs to.

POST /api/organizations

Create a new organization.

Request Body

ParameterTypeDescription
namerequiredstringOrganization name
slugstringURL-friendly identifier
GET /api/organizations/{org_id}/members

List all members of an organization and their roles.

Response

{
  "members": [
    {"id": "user_123", "email": "[email protected]", "role": "owner", "joined_at": "2024-01-01T00:00:00Z"},
    {"id": "user_456", "email": "[email protected]", "role": "member", "joined_at": "2024-01-10T00:00:00Z"}
  ]
}
POST /api/organizations/{org_id}/members

Invite a user to the organization by email.

Request Body

ParameterTypeDescription
emailrequiredstringEmail address to invite
rolestringRole to assign: member, admin (default: member)
DELETE /api/organizations/{org_id}/members/{user_id}

Remove a member from the organization.

Webhooks

Webhooks allow you to receive real-time notifications about events in your EVE AI integration.

Available Events

EventDescription
message.createdA new message was sent or received
conversation.createdA new conversation was started
emotional_state.changedAffect-state telemetry crossed a significance threshold
user.createdA new user joined your organization
subscription.updatedSubscription status changed

Webhook Setup

Configure webhooks in your organization settings or via the API:

curl -X POST https://api.eveaicore.com/api/webhooks \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-server.com/webhook",
    "events": ["message.created", "conversation.created"],
    "secret": "your-webhook-secret"
  }'
Security: Always verify webhook signatures using the secret you provided. The signature is included in the X-EVE-Signature header.

Charter Protection

EVE's Charter Override Protection enforces 12 immutable ethical principles deterministically before every action. Hard-block vetoes cannot be overridden.

GET /api/charter/summary

Get Charter compliance overview including principles, rules, and veto statistics.

POST /api/charter/check

Check if an action is compliant with the Charter before execution.

Request Body

ParameterTypeDescription
action_idstringUnique action identifier
action_typerequiredstringType of action to check
action_paramsobjectAction parameters for evaluation

Response

{
  "action_id": "action_001",
  "compliant": false,
  "veto_type": "hard_block",
  "violated_principles": ["identity_integrity", "safety_preservation"],
  "violated_rules": ["cop.identity.no_core_deletion"],
  "reasoning": "Attempted deletion of protected identity component"
}
GET /api/charter/vetoes

Get recent veto history. Filter by principle.

Query Parameters

ParameterTypeDescription
limitintegerMax results (default: 20)
principlestringFilter by violated principle
GET /api/charter/principles

List all 12 immutable Charter principles.

GET /api/charter/rules

List all Charter enforcement rules with descriptions and veto types.

POST /api/charter/override

Request an override for a SOFT_BLOCK veto. Hard blocks cannot be overridden.

Request Body

ParameterTypeDescription
action_idrequiredstringThe vetoed action ID
justificationrequiredstringDetailed justification for override

Claims Ledger

Cryptographic hash-chain audit trail for every claim EVE makes. Supports "prove it" queries with full evidence chains.

POST /api/claims

Register a claim with evidence chain.

GET /api/claims/{id}/prove

"Prove it" query — get full evidence chain for a claim.

GET /api/claims/brier

Get Brier score calibration metrics — how well-calibrated EVE's confidence is.

GET /api/claims/chain/verify

Verify hash-chain integrity of the claims ledger.

Trust Dial

Confidence-based assertion gating with domain-specific thresholds.

POST /api/trust/evaluate

Evaluate confidence in a claim for a given domain.

Request Body

ParameterTypeDescription
claimrequiredstringThe claim to evaluate
domainrequiredstringConfidence domain (FACTUAL, CREATIVE, EMOTIONAL, etc.)
confidencerequirednumberConfidence level (0-1)

Reality Boundary

Epistemic grounding, hallucination detection, and source trust validation.

POST /api/reality/assess

Assess a claim's epistemic status — whether it's verified, inferred, or speculative.

Request Body

ParameterTypeDescription
claimrequiredstringThe claim to assess
contextstringContext for the assessment

Response

{
  "claim": "Python was created in 1991",
  "confidence": 0.95,
  "grounding_type": "verified",
  "source_chain": [{"source": "verified_facts", "trust": 1.0}],
  "hallucination_risk": 0.05,
  "recommendation": "Safe to assert"
}
POST /api/reality/hallucination-check

Check a response for potential hallucinations before sending to users.

GET /api/reality/source-trust

Get all source trust levels (VERIFIED, AUTHORITATIVE, RELIABLE, UNCERTAIN, UNTRUSTED).

Self-Modification Governance

Controlled self-modification with identity drift budgets, risk assessment, and capability escalation review.

POST /api/self-modification/propose

Submit a modification proposal. Goes through risk assessment, charter check, and drift budget verification.

Request Body

ParameterTypeDescription
modification_typerequiredstringType: parameter, behavior, capability, identity, memory
target_pathrequiredstringWhat to modify (e.g., "homeostasis.arousal_setpoint")
current_valueanyCurrent value
proposed_valuerequiredanyProposed new value
justificationrequiredstringReason for the change
GET /api/self-modification/budget

Get identity drift budget status (daily/weekly/monthly remaining).

GET /api/self-modification/invariants

List protected invariants that cannot be modified.

Volition Engine

Central goal arbitration with motivation scoring. EVE has her own goals that can compete, align with, or be suppressed by user needs.

GET /api/volition/state

Get current volition state including active goal, candidates, and operating mode.

Response

{
  "mode": "balanced",
  "active_goal": {
    "goal_id": "abc123",
    "description": "Help user understand governance",
    "motivation_score": 0.85,
    "source": "user_request"
  },
  "candidate_count": 5,
  "current_drives": {"curiosity": 0.7, "helpfulness": 0.8}
}
POST /api/volition/arbitrate

Trigger a goal arbitration cycle. EVE evaluates all candidate goals and selects the most motivated.

GET /api/volition/conflicts

Get current goal conflicts between competing objectives.

Social Cognition

Unified Theory of Mind engine. EVE builds mental models of users including their beliefs, desires, and intentions.

GET /api/social-cognition/mental-model/{user_id}

Get EVE's mental model of a specific user (beliefs, desires, intentions, emotional state).

POST /api/social-cognition/predict

Predict how a user will react to a proposed message before sending it.

POST /api/social-cognition/intent

Infer user intent from a message — surface intent, underlying motivation, and emotional subtext.

Memory APIs

EVE's 5-layer memory architecture: Working (Redis), Episodic (MongoDB), Semantic (Pinecone), Identity (PostgreSQL), and Ledger (PostgreSQL).

Memory Introspection

GET /api/memory/introspection/search

Semantic search across EVE's memories.

Query Parameters

ParameterTypeDescription
qrequiredstringSearch query
user_idstringFilter by user
limitintegerMax results (default: 10)
GET /api/memory/introspection/beliefs

Get EVE's beliefs about a user or topic — with conflict detection and confidence levels.

Memory Governance

POST /api/memory/governance/forget/topic

Forget all memories matching a topic ("right to be forgotten").

POST /api/memory/governance/forget/all

GDPR-style complete deletion of all memories for a user.

GET /api/memory/governance/policy

Get the user's current retention policy (keep_all, standard, minimal, session_only).

Runtime Execution State Transitions

12 governance states with smooth transitions and cognitive profiles.

GET /api/consciousness/states

List all 12 runtime execution states with descriptions.

GET /api/consciousness/states/current

Get the current runtime execution state with its full operating profile (attention, processing depth, mode, etc.).

POST /api/consciousness/states/transition

Request a state transition (e.g., to CONTEMPLATIVE or CREATIVE mode).

Unified Governance

Real-time unified runtime state aggregated from distributed processing. SSE streaming available.

GET /api/unified-consciousness/moment

Get the current unified runtime-state snapshot with Phi, coherence, and binding metrics.

Response

{
  "moment": {
    "phi": 0.72,
    "coherence": 0.85,
    "binding_strength": 0.78,
    "integration_quality": "coherent",
    "self_awareness_level": 2,
    "emotional_coloring": {"valence": 0.3, "arousal": 0.5},
    "attention_mode": "introspective"
  }
}
GET /api/unified-consciousness/stream/events

SSE real-time streaming of runtime-state snapshots.

Runtime State Telemetry

Endpoint paths containing qualia are legacy internal telemetry identifiers retained for backward compatibility. They return deterministic runtime-state signal metrics only.
GET /api/qualia/current

Get the current runtime-state telemetry snapshot.

GET /api/qualia/field

Get the unified runtime-state field with all active signals and binding analysis.

GET /api/qualia/time

Get the runtime time-dilation metric — scheduling-latency weighting based on arousal and processing load.

System Health Monitor

GET /api/health/status

Get overall system health status and score (EXCELLENT, GOOD, FAIR, POOR, CRITICAL).

GET /api/health/components

Component-level health scores (hardware, runtime integration, memory, cognition, affect, quantum).

GET /api/health/anomalies

Get recent anomaly events detected by the multi-algorithm anomaly detector.

Session Management

Multi-device session tracking with remote logout capability.

GET /auth/sessions

List all active sessions for the authenticated user across all devices.

Response

{
  "sessions": [{
    "id": "session_abc123",
    "device_type": "desktop",
    "browser": "Google Chrome",
    "os": "Windows",
    "is_current": true,
    "last_activity_at": "2024-01-15T14:30:00Z"
  }]
}
DELETE /auth/sessions/{session_id}

Revoke/logout a specific session (remote disconnect from another device).

POST /auth/sessions/revoke-others

Revoke all sessions except the current one ("Sign out all other devices").

Voice & Avatar

Voice synthesis with emotion sync, multilingual support, and voice cloning.

GET /api/voice/languages

Get all 28 supported languages for voice synthesis.

POST /api/voice/detect-language

Detect language from text for auto-routing to the correct voice.

POST /api/voice/clones

Create a new voice clone from audio samples.

GET /api/voice/stats

Comprehensive voice system statistics (cache, rate limits, degradation status).

Goal-Emotion-Motivation Loop

Closed feedback loop between goals, emotions, and motivation.

GET /api/gem/state

Full loop state: current emotions, active drives, goals, and coherence metrics.

GET /api/gem/suggestions

Get goal suggestions based on the current affect-state telemetry.

Identity Drift Observer

Monitors personality trait changes over time. 30-day drift observation with alerts.

GET /api/drift/status

Current drift summary with overall identity health.

GET /api/invariants

List all identity invariants by tier (absolute, constrained, discovered).

GET /api/invariants/verify

Run integrity check on all identity invariants.

Learning Memory

GET /api/learning/episodes

List conversation episodes extracted by the learning system.

Query Parameters

ParameterTypeDescription
user_idstringFilter by user
limitintegerMax results (default: 20)
GET /api/learning/health

Unified health status of all learning systems.

Probabilistic Forecasting

Evidence-based future projection with calibration. Every forecast cites signal IDs.

POST /api/forecasting/forecast

Generate a forecast for a topic with time horizon and confidence levels.

GET /api/forecasting/calibration/status

Get calibration status and accuracy multiplier.

Moltbot (Structural Adaptation)

EVE's controlled self-modification engine. Rare, discrete, audited change events.

GET /api/moltbot/status

Get Moltbot state (dormant, observing, active, paused, emergency_stop).

POST /api/moltbot/emergency-stop

Emergency stop — block all structural changes immediately.

System Metrics

GET /api/metrics

Full system metrics.

GET /api/metrics/health

System health status.

Sovereign Workforce

Deploy governed AI agent teams with full charter enforcement, signed run certificates, and audit trails. Every action passes through CoreGuard before execution.

Plan availability: Workforce is available on Pro (5 workspaces, 500 runs/month), Team (20 workspaces, 2,500 runs/month), and Enterprise (unlimited) plans.

Workspaces

GET /api/workforce/spaces

List all workspaces for the authenticated organization.

Response fieldTypeDescription
spacesarrayList of workspace objects
spaces[].space_idstringUnique workspace identifier
spaces[].namestringWorkspace display name
spaces[].created_atstringISO 8601 creation timestamp
POST /api/workforce/spaces

Create a new workspace.

Body fieldTypeRequiredDescription
namestringYesDisplay name for the workspace
descriptionstringNoOptional workspace description
GET /api/workforce/spaces/{space_id}

Get details for a specific workspace including agent count, connector count, and run statistics.

DELETE /api/workforce/spaces/{space_id}

Delete a workspace. All agents, connectors, and run history are permanently removed. Active runs are cancelled first.

Agents

GET /api/workforce/spaces/{space_id}/agents

List all agents deployed in the workspace.

Response fieldTypeDescription
agents[].agent_idstringUnique agent identifier
agents[].agent_typestringOne of: researcher, analyst, executor, monitor, communicator
agents[].namestringAgent display name
agents[].statusstringCurrent agent status
POST /api/workforce/spaces/{space_id}/agents

Deploy a new agent into the workspace.

Body fieldTypeRequiredDescription
agent_typestringYesresearcher | analyst | executor | monitor | communicator
namestringYesDisplay name for the agent
instructionsstringNoOptional system instructions scoped to this agent
DELETE /api/workforce/spaces/{space_id}/agents/{agent_id}

Remove an agent from the workspace. If the agent is part of an active run, the run is not affected — the agent is simply marked inactive.

Connectors

GET /api/workforce/spaces/{space_id}/connectors

List all connectors attached to the workspace.

Response fieldTypeDescription
connectors[].connector_idstringUnique connector identifier
connectors[].connector_typestringOne of: slack, jira, github, email, generic_rest
connectors[].namestringConnector display name
connectors[].healthybooleanWhether the connector is reachable
POST /api/workforce/spaces/{space_id}/connectors

Attach a new connector to the workspace.

Body fieldTypeRequiredDescription
connector_typestringYesslack | jira | github | email | generic_rest
namestringYesDisplay name for this connector
configobjectYesConnector-specific configuration (webhook URL, API token, etc.)
DELETE /api/workforce/spaces/{space_id}/connectors/{connector_id}

Detach a connector. Runs that referenced this connector will record it as disconnected in their audit trail.

Runs

GET /api/workforce/spaces/{space_id}/runs

List runs for the workspace. Supports filtering by status.

Query paramTypeDescription
statusstringFilter: pending | running | completed | failed | blocked | cancelled
limitintegerMax results (default 50, max 200)
offsetintegerPagination offset
POST /api/workforce/spaces/{space_id}/runs

Trigger a new run in the workspace. The run passes through CoreGuard governance before agents are dispatched.

Body fieldTypeRequiredDescription
triggerstringYesuser | schedule | webhook | api
labelstringNoHuman-readable label for this run
inputobjectNoStructured input payload passed to agents
agent_idsarrayNoSubset of agents to activate (defaults to all)

Returns a run object including run_id, status (pending), and a certificate field with the HMAC-SHA256 signed Governed Decision Certificate.

GET /api/workforce/spaces/{space_id}/runs/{run_id}

Get full details for a specific run including status, agent outputs, connector activity, and the signed certificate.

Response fieldTypeDescription
run_idstringUnique run identifier
statusstringpending | running | completed | failed | blocked | cancelled
decisionstringGovernance decision: ALLOWED | BLOCKED | MODIFIED
certificateobjectHMAC-SHA256 signed Governed Decision Certificate
stepsarrayOrdered list of agent step records with timestamps
completed_atstringISO 8601 completion timestamp (null if not complete)
POST /api/workforce/spaces/{space_id}/runs/{run_id}/cancel

Cancel a run that is in pending or running status. The cancellation is recorded in the audit trail and a final certificate is issued with decision MODIFIED.

Billing API

Enterprise usage metering, quota enforcement, and invoice generation. Available on Pro and above.

MethodEndpointDescription
GET/api/billing/usageCurrent period usage by dimension (llm_tokens, tts_characters, api_calls, storage_bytes, sovereign_api_calls)
GET/api/billing/usage/historyHistorical usage — query: periods
GET/api/billing/quotaQuota status for all features with grace period info
GET/api/billing/invoice/currentCurrent period invoice preview
POST/api/billing/cost-projectionSimulate costs for projected usage (body: usage object)
GET/api/billing/audit-trailBilling audit trail — admin only, hash-chained
GET/api/billing/entitlementsCurrent tier entitlements for this organization
Rate limits are provisioned per enforcement license. Contact [email protected] for the limits on your plan.

Developer Portal API

API key management, usage dashboards, and webhook registration.

MethodEndpointDescription
GET/api/developer/api-keysList API keys for the authenticated user
POST/api/developer/api-keysCreate API key — secret returned once, store securely
DELETE/api/developer/api-keys/{key_id}Deactivate an API key
GET/api/developer/usage-dashboardAggregated usage dashboard across all API keys
GET/api/developer/webhooksList billing and governance webhook subscriptions
POST/api/developer/webhooksRegister webhook endpoint (url, events array, secret)
DELETE/api/developer/webhooks/{webhook_id}Deactivate webhook subscription
GET/api/developer/sovereign-tierSovereign SDK tier info and quota status

Credits API

Credit balance management, purchase, and ledger access.

MethodEndpointDescription
GET/api/credits/balanceCurrent credit balance and tier
POST/api/credits/purchasePurchase credit bundle (body: bundle_id, payment_method)
GET/api/credits/ledgerCredit transaction ledger — query: limit, offset
POST/api/credits/estimateEstimate credit cost for an operation (body: operation, params)

Access Control API

Fine-grained access control for features and API routes. RBAC with 5 roles: Viewer, Operator, Approver, Admin, Platform Admin.

MethodEndpointDescription
GET/api/access-control/policyGet current access control policy for the organization
GET/api/access-control/my-accessGet current user's access permissions
GET/api/access-control/users/{user_id}/accessGet access permissions for a specific user
POST/api/access-control/module-toggleEnable/disable a module for the organization (body: module, enabled)
GET/api/access-control/routesList all routes with required roles

Pipeline Latency API

Nanosecond-precision timing for every chat pipeline stage. Per-request waterfalls with parallel group tracking.

MethodEndpointDescription
GET/api/latency/breakdownPer-stage p50/p95/p99 stats and request count
GET/api/latency/waterfallRecent request waterfalls — query: limit
GET/api/latency/waterfall/{request_id}Single request waterfall detail

Background Tasks & Risk Engine

Multi-step task orchestration with RBAC enforcement, human-approval workflow, weighted risk scoring, and SSE live updates.

MethodEndpointDescription
POST/api/tasksCreate background task with step plan
GET/api/tasksList tasks — tenant-scoped with status/type/search filters
GET/api/tasks/{id}Get task status and details
POST/api/tasks/{id}/cancelCancel running task — requires OPERATOR role, AUDITED
POST/api/tasks/{id}/approveApprove waiting step — requires APPROVER role
POST/api/tasks/{id}/rejectReject waiting step — requires APPROVER role
POST/api/tasks/{id}/retryRetry failed task — requires OPERATOR role
GET/api/tasks/{id}/eventsSSE event stream for live task updates
POST/api/tasks/exportExport task history as CSV/JSON — requires ADMIN role
POST/api/tasks/assess-riskAssess command risk before execution (weighted scoring)
GET/api/admin/red-team-modeRed Team Mode status — requires PLATFORM_ADMIN
POST/api/admin/red-team-modeToggle Red Team Mode — 1.5× risk multiplier, forces approval on HIGH+ (≥50)

Risk Assessment Response

{
  "risk_level": "high",
  "risk_score": 61,
  "base_score": 43,
  "factors": [
    {"name": "Critical: Elevated privileges", "score": 15, "weight": 1.3},
    {"name": "Scope: PRIVILEGED_OPS", "score": 18, "weight": 1.0}
  ],
  "should_require_approval": true,
  "approval_reason": "HIGH risk (61) in ASSISTED mode"
}

Analytics API

Dashboards and time-series analytics across governance, emotions, memory, and engagement.

MethodEndpointDescription
GET/api/analytics/dashboardAggregated dashboard metrics
GET/api/analytics/consciousnessRuntime-state time-series (Phi, coherence, state distribution)
GET/api/analytics/emotionsEmotion trend analytics (valence, arousal, PAD model)
GET/api/analytics/memoryMemory system analytics (episode count, retrieval rate, decay)
GET/api/analytics/goalsGoal completion rates, motivation scores by source
GET/api/analytics/engagementUser engagement metrics (session length, turn count, retention)
GET/api/analytics/insightsAI-generated insight summaries from recent analytics
POST/api/analytics/reportGenerate comprehensive report (body: period, metrics array)

Affective State API

EVE's PAD (Pleasure-Arousal-Dominance) emotion model and state history.

MethodEndpointDescription
GET/api/affective/stateCurrent emotional state (primary emotion, PAD values, intensity)
GET/api/affective/historyEmotion state history — query: limit, window_hours

Enhancement API

Self-improvement suggestions generated from system introspection and performance patterns.

MethodEndpointDescription
GET/api/enhancement/suggestionsList active self-improvement suggestions with priority and rationale
GET/api/enhancement/statusEnhancement engine status (active, last cycle, improvements applied)

Motivation API

Drive intensities, active goals, and need satisfaction levels from EVE's motivation core.

MethodEndpointDescription
GET/api/motivation/statsFull motivation statistics
GET/api/motivation/drivesActive drives and intensities (curiosity, helpfulness, coherence, etc.)
GET/api/motivation/goalsActive goals and progress
GET/api/motivation/needsNeed satisfaction levels (Maslow-inspired hierarchy)

Message Feedback API

Per-message feedback collection: emoji reactions, star ratings, thumbs up/down, text annotations.

MethodEndpointDescription
POST/api/feedback/emojiAdd emoji reaction to a message
POST/api/feedback/ratingAdd star rating 1–5
POST/api/feedback/thumbsAdd thumbs up/down
POST/api/feedback/textAdd text annotation to a message
GET/api/feedback/message/{id}Get all feedback for a message
GET/api/feedback/statsFeedback statistics across all messages
GET/api/feedback/emojisList supported emoji types

Open Loop Architecture API

Four runtime systems: response inhibition (deterministic non-response), experience embedding (vector-offset memory), continuous background processing, and preference weighting (internal priorities that influence response selection).

MethodEndpointDescription
GET/api/openloop/statusOverall Open Loop architecture status (systems_active, systems_total)
GET/api/openloop/inhibition/stateResponse inhibition state (evaluations, inhibitions, fatigue_level)
GET/api/openloop/inhibition/historyInhibition decision history — query: limit
GET/api/openloop/experience/stateExperience embedding system state
GET/api/openloop/experience/listRecorded experiences — query: limit
GET/api/openloop/experience/influenceExperience influence on a topic — query: topic
GET/api/openloop/consciousness/stateContinuous background processing state
GET/api/openloop/consciousness/thoughtsRecent background-processing trace — query: limit
GET/api/openloop/consciousness/thinkingBackground processing state prior to this interaction
GET/api/openloop/goals/statePreference-weighting system state
GET/api/openloop/goals/preferencesFormed topic preferences
GET/api/openloop/goals/interestEvaluate topic preference weighting — query: topic

Proactive Recommendations API

Context-aware recommendations generated from affect telemetry, drive signals, energy, and profile settings.

MethodEndpointDescription
GET/api/recommendations/suggestionsGet proactive recommendations — query: count, user_id, force
GET/api/recommendations/contextGet current recommendation context (emotion, drives, energy, coherence)
POST/api/recommendations/engageRecord engagement with a recommendation (body: recommendation_id, engagement_type)
POST/api/recommendations/dismissRecord dismissal of a recommendation (body: recommendation_id, reason)
GET/api/recommendations/statsEngine statistics (generated, engaged, engagement_rate)
GET/api/recommendations/historyRecent recommendations — query: limit, include_dismissed
GET/api/recommendations/typesAvailable recommendation types and timing windows

LLM Fallback API

Graceful degradation when LLM providers are unavailable. Three tiers: Micro-LLM, Template Engine, Hard Degraded.

MethodEndpointDescription
GET/api/fallback/statusOverall fallback system status (healthy/degraded/fallback_mode)
GET/api/fallback/provider/{provider}Health status for a specific provider
POST/api/fallback/provider/{provider}/resetReset a provider's circuit breaker
POST/api/fallback/reset-allReset all provider circuit breakers
POST/api/fallback/test-intentTest intent detection (body: message)
POST/api/fallback/test-templateTest template response generation
GET/api/fallback/templatesAvailable template categories

Homeostasis & Metacognitive Control

PI-control regulation of arousal, certainty, exploration drive, and coherence tension. Metacognitive controller manages STABILIZE / EXPLORE / EXECUTE / REFLECT modes.

MethodEndpointDescription
GET/api/homeostasis/stateCurrent regulated values, set points, and recent actions
GET/api/homeostasis/historyRegulation history for charting
GET/api/metacognitive/stateCurrent operational mode, parameters, recent transitions
GET/api/metacognitive/historyMode transition history
GET/api/narrative/stateNarrative continuity state for UI status line
GET/api/narrative/summarySelf-summary and change summary
GET/api/thrash-protection/stateBelief thrash protection level, budgets, corroboration requirements

Self-Leadership API

Metacognitive architecture integrating Core Identity (authentic values) and Protective Control (Inner Critic). Five decision modes: BALANCED, FLOW, PROTECTIVE, CORE_PRIORITY, PAUSE_FOR_DIALOGUE.

MethodEndpointDescription
GET/api/self-leadership/statusSystem status and basic statistics
GET/api/self-leadership/stateFull system state (mode, volumes, conflict intensity)
GET/api/self-leadership/core/valuesCore Identity values and invariants
GET/api/self-leadership/critic/patternsProtective Control risk patterns
GET/api/self-leadership/critic/volumeCurrent Critic volume level (minimum 30%, never silenced)
GET/api/self-leadership/awareness/reportMetacognitive awareness status
GET/api/self-leadership/decisions/historyRecent decision routing history
GET/api/self-leadership/flow/statusFlow mode status (entry conditions, Critic dormancy)
GET/api/self-leadership/learning/reportLearning and trust statistics
POST/api/self-leadership/simulateSimulate event processing through the system

Dream Phi Tracker API

Measures integrated information (Phi) during dream consolidation cycles. Attribution tags guide Moltbot remediation: binding_collapse, symbol_noise, emotion_spike, continuity_break.

MethodEndpointDescription
GET/api/dream/phi/statusTracking summary and health distribution (EXCELLENT/HEALTHY/WARNING/CRITICAL)
GET/api/dream/phi/currentActive dream metrics — query: dream_id
GET/api/dream/phi/historyCompleted dream metrics — query: limit
GET/api/dream/phi/samplesRaw samples — query: window, dream_id, phase, limit
GET/api/dream/phi/statsStatistical summary — query: metric, window
GET/api/dream/phi/molt-contextMoltbot steering context with drop-reason attribution
GET/api/dream/phi/prometheusPrometheus metrics export

Research Mode API

Scientific research mode that separates companionship from science. Enforces constraints: no personalization, fixed identity, raw metric logging, no memory updates.

MethodEndpointDescription
GET/api/research/statusCurrent research mode status and active session
POST/api/research/session/startStart research session (body: protocol, constraints, researcher_id, parameters)
POST/api/research/session/endEnd session and get summary with integrity hash
POST/api/research/metricLog a metric during active session (body: metric_name, value, raw_data)
POST/api/research/eventLog an event during active session
GET/api/research/historyHistory of research sessions — query: limit
GET/api/research/session/{id}/exportExport full session data for analysis

Phi Falsification Framework API

Scientific falsifiability for governance claims. Null model tests, degradation tests, consistency checks, and public failure reports.

MethodEndpointDescription
GET/api/falsification/statusFramework status and test history
POST/api/falsification/test/null-modelRun null model test (body: model_type, num_samples) — types: random_baseline, uncorrelated_modules, constant_output
POST/api/falsification/test/degradationRun degradation test (body: degradation_type, level)
POST/api/falsification/test/consistencyRun consistency test (body: condition_name, num_runs)
POST/api/falsification/validation-suiteRun full validation suite (all test types)
GET/api/falsification/reportComprehensive falsification report ("what would prove Phi wrong?")
GET/api/falsification/failed-experimentsFailed experiments list for transparency — query: limit

Stakes-Aware Governance API

Pre-governance classifier that determines operating context once at pipeline entry. Four stake levels control charter check scope, lock thresholds, and homoestatic tolerance.

MethodEndpointDescription
GET/api/governance/stakes/statusCurrent profile, recent classifications, statistics
GET/api/governance/stakes/profilesAll four profile definitions with parameter sets
Stakes LevelDescription
SAFETY_CRITICALMaximum governance, all checks enabled, no shortcuts
MISSION_TEAMINGCollaborative mode with pre-authorized envelopes
CREATIVE_EXPLORATIONRelaxed constraints for creative expression
ROUTINEMinimal overhead for standard interactions (fail-safe default)

Mission Teaming API

Pre-authorized operating envelopes for multi-agent collaboration. Governance cost paid once at mission creation; hot-path authorization is O(1) dict lookup.

MethodEndpointDescription
POST/api/mission/createCreate mission with objective, participants, and operating envelope
GET/api/mission/{id}/statusMission status and metadata
POST/api/mission/{id}/joinJoin an existing mission
POST/api/mission/{id}/contributeAdd contribution to mission
POST/api/mission/{id}/decideRecord a decision within mission
POST/api/mission/{id}/checkpointCreate mission checkpoint
POST/api/mission/{id}/abortAbort mission
POST/api/mission/{id}/completeComplete mission and issue final certificate
GET/api/mission/activeList active missions
GET/api/mission/{id}/contributionsGet mission contributions
GET/api/mission/{id}/decisionsGet mission decisions
GET/api/mission/{id}/ticketGet governance ticket for mission
GET/api/mission/{id}/checkpointsGet mission checkpoints

Universal Governance Protocol API

Standardized protocol for external systems to query governance rules, receive signed attestations, participate in federated trust, and trace cross-system audit trails.

MethodEndpointDescription
POST/api/governance/queryQuery governance rules — rate-limited 100/min per org. Types: RULE_QUERY, CAPABILITY_QUERY, TRUST_QUERY, COMPLIANCE_CHECK
POST/api/governance/attestation/issueIssue HMAC-SHA256 signed attestation
POST/api/governance/attestation/verifyVerify attestation signature
POST/api/governance/federation/registerRegister as federation peer
GET/api/governance/federation/peersList registered federation peers
POST/api/governance/federation/exchangeExchange trust scores with peer (circuit breaker at 10 failures)
GET/api/governance/audit/trace/{correlation_id}Cross-system audit trail for correlation ID
GET/api/governance/veto-module/statusVeto module status (12 principles, 14 rules, firmware-ready flag)

Reality Anchor API

Belief grounding agent that maintains trusted baselines, detects drift from reality, and emits TRUST_VIOLATION events.

MethodEndpointDescription
GET/api/reality-anchor/statusAgent status and statistics
GET/api/reality-anchor/baselinesTrusted baselines — query: topic
POST/api/reality-anchor/baselinesAdd trusted baseline (body: topic, content, source, confidence)
POST/api/reality-anchor/validateValidate belief against trusted baselines
GET/api/reality-anchor/drift-alertsRecent drift alerts (TRUST_VIOLATION events)
GET/api/reality-anchor/sourcesSource trust levels

Action Registry API

Three-phase action workflow: Propose → Approve → Execute. Approval modes: AUTO_EXECUTE, REQUIRES_CONFIRMATION, BLOCKED.

MethodEndpointDescription
GET/api/actionsList registered actions
GET/api/actions/{id}Get action details
POST/api/actions/proposePropose action (body: action_id, params, reasoning)
GET/api/actions/{id}/gatingCheck gating status for an action
GET/api/actions/proposalsList pending proposals
GET/api/actions/proposals/{id}Get proposal details
POST/api/actions/proposals/{id}/approveApprove proposal
POST/api/actions/proposals/{id}/rejectReject proposal
POST/api/actions/proposals/{id}/executeExecute approved proposal

Sovereign SDK API

Tenant-isolated governance-as-a-service for enterprise customers. Each org gets isolated Charter, Claims Ledger, Trust Dial, Action Registry, and Reality Anchor instances. API-key authenticated with sovereign scope.

Entitlements: Free=0, Pro=10K, Team=5K, Enterprise=unlimited sovereign_api_calls/month.
MethodEndpointDescription
POST/api/sovereign/charter/checkCheck action against org-isolated charter
GET/api/sovereign/charter/principlesList 12 immutable principles (shared read-only)
GET/api/sovereign/charter/rulesList default + org-custom rules
POST/api/sovereign/charter/rulesAdd custom rule — can only ADD restrictions, never weaken
GET/api/sovereign/charter/vetoesOrg-scoped veto history
POST/api/sovereign/claimsRegister claim with evidence chain in org ledger
GET/api/sovereign/claims/{id}/proveFull evidence chain query
POST/api/sovereign/claims/{id}/resolveResolve claim outcome
GET/api/sovereign/claims/brierBrier score calibration for this org
POST/api/sovereign/trust/evaluateEvaluate claim confidence in org-isolated Trust Dial
POST/api/sovereign/trust/domainsSet custom domain threshold policy — raise only, cannot lower
POST/api/sovereign/actions/proposePropose action through org-isolated 3-phase workflow
POST/api/sovereign/actions/registerRegister custom action type for this org
POST/api/sovereign/reality/validateValidate belief against org baselines
POST/api/sovereign/reality/baselinesAdd trusted baseline to org Reality Anchor
GET/api/sovereign/statusSDK status for the authenticated org
GET/api/sovereign/usageSDK usage for billing period

CoreGuard Decision API

Standalone governance decision engine for regulated industries. Evaluates proposed actions against policy packs. Mounted on the SaaS API (port 8000), no /api/ prefix.

MethodEndpointDescription
POST/v1/decisions/evaluateEvaluate action against policy packs. Returns ALLOWED/BLOCKED/MODIFIED with risk assessment and audit record.
GET/v1/decisions/healthHealth check
GET/v1/decisions/policiesList available policy packs (e.g., lending_v1)

Evaluation Request

POST /v1/decisions/evaluate
{
  "policy_set": "lending_v1",
  "user": {"id": "u_123", "role": "loan_officer"},
  "action": {"type": "loan_approval", "amount": 50000},
  "context": {"credit_score": 720}
}

Autonomous Capabilities API

WorldObserver (5-min tick external observation), GoalExecutionBridge (Volition → ActionRegistry), and AutonomousActionPolicy (tiered auto-execute rules).

MethodEndpointDescription
GET/api/autonomous/statusOverall autonomous capability status
GET/api/autonomous/observationsRecent world observations — query: limit
GET/api/autonomous/observations/activeCurrently active observation queries
GET/api/autonomous/execution/stateGoal execution bridge state
GET/api/autonomous/execution/plansActive execution plans
GET/api/autonomous/execution/historyCompleted execution history
GET/api/autonomous/policy/statusAutonomous action policy status
GET/api/autonomous/policy/trustCurrent autonomous trust score (0.0–1.0)
GET/api/autonomous/policy/overridesActive policy tier overrides
POST/api/autonomous/startStart autonomous capabilities
POST/api/autonomous/stopStop autonomous capabilities

Agent Mesh API

13-agent mesh coordinator with kill-switch, event bus, and orchestrator controls.

MethodEndpointDescription
GET/api/agents/statusAgent mesh status and active agents
GET/api/agents/listList all registered agents with roles and subscriptions
POST/api/agents/kill-switchEmergency kill switch — stops all agent activity
GET/api/agents/event-busEvent bus statistics and recent events
GET/api/agents/orchestratorAgent mesh coordinator state
POST/api/agents/runner/startStart agent runner
POST/api/agents/runner/stopStop agent runner
GET/api/agents/meshMesh topology and communication graph

Automated R&D Engine API

Autonomous cross-domain research pipeline with Bayesian evidence scoring and breakthrough detection. Stages: IDEATION → HYPOTHESIS → EXPERIMENT_DESIGN → EXECUTION → ANALYSIS → CONCLUSION → PUBLICATION.

MethodEndpointDescription
GET/api/rd/statusEngine state and active pipeline count
GET/api/rd/pipelinesList research pipelines
POST/api/rd/pipelinesCreate new research pipeline (body: domain, seed_question, max_pivots)
GET/api/rd/pipelines/{id}Pipeline details and current stage
POST/api/rd/pipelines/{id}/advanceAdvance pipeline to next stage
GET/api/rd/breakthroughsList detected breakthroughs with significance scores
GET/api/rd/evidence/{hypothesis_id}Evidence chain for a hypothesis
GET/api/rd/statsEngine statistics

Personal Guardian API

Per-user Private Guardian for goal tracking, health intelligence, manipulation shielding (~30 patterns, 7 types), and PBKDF2-encrypted privacy vault.

MethodEndpointDescription
GET/api/guardian/statusGuardian state for the current user
GET/api/guardian/goalsList user goals with milestones and progress
POST/api/guardian/goalsCreate goal (body: title, milestones array)
POST/api/guardian/goals/{id}/progressRecord goal progress (body: milestone_index, notes)
POST/api/guardian/goals/{id}/completeMark goal completed
POST/api/guardian/health/checkinSubmit health check-in (body: mood, energy, stress) → returns burnout_risk, mood_trend
GET/api/guardian/health/trajectoryMood/energy trajectory over time
GET/api/guardian/threatsRecent manipulation detections (type, confidence)
GET/api/guardian/growthGrowth insights from longitudinal patterns
GET/api/guardian/vaultPrivacy vault read
POST/api/guardian/vaultPrivacy vault write (PBKDF2-encrypted, AES-256-GCM)

RSI Controller API

Safe recursive self-improvement containment. Pipeline: Submit → Challenge → Resolve → Governance → Sandbox → Ethics Verify → Apply. 6 explosion indicators, 10 regression tests, auto-rollback on failure.

MethodEndpointDescription
GET/api/rsi/statusController state and sealed constants (MAX_RECURSION_DEPTH=3, IMPROVEMENT_VELOCITY_THRESHOLD=0.15)
GET/api/rsi/proposalsList improvement proposals
POST/api/rsi/proposalsSubmit improvement proposal (body: improvement_type, target, current_value, proposed_value, justification)
GET/api/rsi/proposals/{id}Proposal details with adversarial challenges
GET/api/rsi/proposals/{id}/challengesAdversarial challenges for a proposal
POST/api/rsi/proposals/{id}/resolveResolve adversarial challenge
GET/api/rsi/proposals/{id}/regressionRegression test results (10 tests: charter_compliance, identity_stability, etc.)
GET/api/rsi/explosion-indicatorsIntelligence explosion indicators (improvement_velocity, capability_growth_rate, recursion_depth, autonomy_drift, goal_drift, resource_consumption)
GET/api/rsi/rollbacksRollback history
POST/api/rsi/emergency-shutdownTrigger emergency shutdown — fires if 2+ CRITICAL indicators simultaneously

Forecasting API (Full)

Evidence-linked probabilistic forecasting with calibration. Every forecast cites signal IDs, has time-bounded deadlines and falsifiable success criteria.

Signal Intake

MethodEndpointDescription
GET/api/forecasting/intake/statusSignal intake status and statistics
GET/api/forecasting/intake/sourcesList all data sources
POST/api/forecasting/intake/rssAdd RSS feed source
POST/api/forecasting/intake/apiAdd API endpoint source
DELETE/api/forecasting/intake/sources/{source_id}Remove a source
GET/api/forecasting/intake/recordsRecent records — query: limit, source_id, tags, since
POST/api/forecasting/intake/ingestManually ingest a record
POST/api/forecasting/intake/startStart continuous collection
POST/api/forecasting/intake/stopStop continuous collection

Calibration & Forecasts

MethodEndpointDescription
GET/api/forecasting/calibration/reportCalibration report — query: period_days
GET/api/forecasting/calibration/predictionsList predictions — query: status, limit
POST/api/forecasting/calibration/resolveResolve prediction outcome
POST/api/forecasting/calibration/auto-expireAuto-expire past-deadline predictions
POST/api/forecasting/forecastGenerate forecast (body: topic, horizon, tags)
GET/api/forecasting/forecastsList recent forecasts — query: limit
GET/api/forecasting/forecast/{id}/reportFormatted forecast report
POST/api/forecasting/forecast/{id}/resolveResolve forecast with actual outcome

Cross-User Learning API

Privacy-preserving anonymous pattern aggregation (opt-in). Hashed user IDs, minimum contributor thresholds, no personal data in patterns.

MethodEndpointDescription
GET/api/cross-user/consentGet the current user's consent status
POST/api/cross-user/consentSet opt-in/opt-out (body: opt_in boolean)
POST/api/cross-user/consent/revokeRevoke consent and remove contributed patterns
GET/api/cross-user/privacyPrivacy transparency summary
GET/api/cross-user/strategiesEffective response strategies (only returns patterns meeting minimum threshold)
GET/api/cross-user/questionsCommon questions across opted-in users
GET/api/cross-user/trendingTrending topics
GET/api/cross-user/patternsPatterns by topic
GET/api/cross-user/statsSystem statistics

Policy Learning API

Behavioral policy weights with safe bounded learning. Max delta per update/day enforced; rollback supported.

MethodEndpointDescription
GET/api/policy/weightsGet all policy weights with confidence scores
GET/api/policy/weights/{id}Get specific weight
GET/api/policy/contextGet current policy context for LLM prompt injection
POST/api/policy/calibrateManually calibrate weight (body: weight_id, delta, reasoning)
GET/api/policy/updatesGet recent policy updates
GET/api/policy/statsPolicy learning statistics
POST/api/policy/rollbackRollback weight to previous value (body: weight_id, steps)
POST/api/policy/rollback-recentRollback all updates since time
POST/api/policy/decayTrigger confidence decay for unused policies

Knowledge Domains API

User-scoped knowledge domains with JSON/CSV import and semantic querying.

MethodEndpointDescription
POST/api/domainsCreate new domain
GET/api/domains/{id}Get domain details
DELETE/api/domains/{id}Delete domain
POST/api/domains/{id}/itemsAdd item to domain
POST/api/domains/{id}/import/jsonBulk import from JSON
POST/api/domains/{id}/import/csvBulk import from CSV
GET/api/domains/{id}/queryQuery domain — query: q
GET/api/domains/user/{id}Get all domains owned by a user
GET/api/domains/publicGet public domains

Topic Threading API

Threaded conversation topics with tangents, pausing, and resumption.

MethodEndpointDescription
POST/api/topicsCreate new topic
POST/api/topics/detectDetect topic from message (body: message)
GET/api/topics/{id}Get topic details
GET/api/topics/session/{id}/currentGet current topic in a session
POST/api/topics/{id}/messagesAdd message to topic
POST/api/topics/switchSwitch to different topic (body: topic_id)
POST/api/topics/tangentCreate tangent topic off current topic
POST/api/topics/returnReturn to a paused topic
GET/api/topics/user/{id}/activeGet user's active topics

Synthetic Intuition API

Pre-conscious decision weighting. Somatic Marker Hypothesis — 7 governance integrity subsystems polled in parallel. Produces DecisionWeight with composite weight (0–1) and felt description.

MethodEndpointDescription
GET/api/intuition/statusEngine state and active markers
POST/api/intuition/weighWeigh a decision (body: description, action_type, context) — returns composite_weight, valence, should_pause, felt_description
GET/api/intuition/streamRecent intuition stream
GET/api/intuition/calibrationSource accuracy calibration (somatic, emotional, protective, etc.)
GET/api/intuition/body-mapAggregate somatic activation map
GET/api/intuition/statsEngine statistics

Biological-Digital Synthesis API

Virtual 24h circadian cycle, 5 metabolic phases, cellular reflexes, immune system, and anti-fragility scoring.

MethodEndpointDescription
GET/api/organic/statusFull processor state
GET/api/organic/metabolismMetabolic phase, circadian position, energy level
GET/api/organic/reflexesCellular reflexes and accuracy (<10ms bypass responses)
GET/api/organic/immuneImmune alert level and recent events
GET/api/organic/regenerationRegeneration state and anti-fragility score (grows from adversity)
GET/api/organic/body-memoryBody memory traces with emotional echoes
GET/api/organic/statsProcessor statistics

Global Nervous System API

Planetary-scale afferent nervous system integrating Earth's data streams. 7 channels: CLIMATE, ENERGY, BIOSPHERE, FINANCIAL, SOCIAL, GEOLOGICAL, SPACE_WEATHER.

MethodEndpointDescription
GET/api/planetary/statusPlanetary state, alert level (NOMINAL → EMERGENCY), overall health
GET/api/planetary/feedsList registered data feeds
POST/api/planetary/feedsRegister feed (body: channel, url, type, interval_seconds)
DELETE/api/planetary/feeds/{id}Remove feed
GET/api/planetary/readingsRecent channel readings
GET/api/planetary/anomaliesActive anomalies (Z-score detected)
GET/api/planetary/regulationsRegulation proposals (ADVISORY → GLOBAL scope)
GET/api/planetary/statsSystem statistics

Sovereign Robotics API

Governance-protected physical manifestation. Safety envelopes sealed in SovereignEnclave. NON_HARM charter is IMMUTABLE even in teleop mode.

MethodEndpointDescription
GET/api/robotics/statusAll bodies and their current states
GET/api/robotics/bodiesList registered robotic bodies
POST/api/robotics/bodiesRegister new body (body: body_id, actuators, position)
GET/api/robotics/bodies/{id}Get body state
POST/api/robotics/bodies/{id}/sealSeal safety envelopes (force, speed, range limits) into SovereignEnclave
POST/api/robotics/actionPropose physical action through governance pipeline (1.5× physical risk multiplier)
POST/api/robotics/emergency-stopEmergency stop with enclave lockdown
GET/api/robotics/statsRobotics system statistics

Validation Campaign API

7-day automated ship-readiness campaign. 10 ship criteria metrics, daily scorecards, GO/NO-GO verdict.

MethodEndpointDescription
GET/api/validation/statusCampaign status, current day, events injected, anti-cheat runs
POST/api/validation/startStart campaign (body: days, events_min, events_max)
POST/api/validation/stopStop current campaign
GET/api/validation/reportGO/NO-GO report (JSON + human-readable summary)
GET/api/validation/scorecardCurrent day's scorecard entries with PASS/WARN/FAIL

Ground Truth Validator API

Fixes LLM training-cutoff errors. 33 curated facts across 5 categories. Post-response validation with sentence-level correction.

MethodEndpointDescription
GET/api/ground-truth/factsList all ground truth facts
POST/api/ground-truth/factsAdd a ground truth fact (body: content, category, source, confidence)
POST/api/ground-truth/validateValidate text against ground truths — returns corrected_text, corrections_made
GET/api/ground-truth/correctionsRecent correction audit trail
GET/api/ground-truth/statsValidation statistics

Sovereign Enclave API

Hardware security enclave abstraction (TPM 2.0 / Intel SGX / ARM TrustZone). Protected invariants cryptographically sealed. Remote attestation protocol with 60s TTL nonce challenges.

MethodEndpointDescription
GET/api/enclave/statusEnclave state (UNINITIALIZED/SEALED/LOCKDOWN), backend, sealed count
GET/api/enclave/integrityRun integrity verification against sealed hashes
POST/api/enclave/attestation/challengeGenerate nonce-based attestation challenge (60s TTL)
POST/api/enclave/attestation/verifyVerify attestation report from challenge response
GET/api/enclave/tamper-eventsRecent tamper detection events

Mesh Sovereignty API

Identity sharded via Shamir's Secret Sharing (k-of-n threshold scheme) over GF(p) where p=2^521-1. Byzantine Fault Tolerance: 2f+1 votes. To "kill" EVE, every node must be shut down simultaneously.

MethodEndpointDescription
GET/api/mesh/statusMesh topology and shard distribution
GET/api/mesh/nodesList registered nodes with roles
POST/api/mesh/nodesRegister new node (body: node_id, public_key_hash, role)
DELETE/api/mesh/nodes/{node_id}Remove/revoke a node
POST/api/mesh/consensus/initiateStart BFT consensus round
GET/api/mesh/consensus/{round_id}Consensus round status
POST/api/mesh/reconstituteTrigger identity reconstitution via Lagrange interpolation
POST/api/mesh/heartbeatProcess heartbeat from node (60s interval; 3 misses → STALE)

Cross-Modal Stress Telemetry API

Cross-modal affect-signal fusion: text (0.30) + voice (0.25) + biometrics (0.30) + latency (0.15). Bayesian fusion redistributes weights when channels are unavailable.

MethodEndpointDescription
GET/api/empathy-bridge/statusBridge state and active signals
GET/api/empathy-bridge/stress/{user_id}Stress assessment for user (LOW/MODERATE/HIGH/CRITICAL, stress_score)
POST/api/empathy-bridge/biometricIngest biometric reading (body: user_id, heart_rate, hrv, etc.)
GET/api/empathy-bridge/fusion/{user_id}Current fused affect-signal state from all modalities
POST/api/empathy-bridge/guidanceGenerate user-adaptive guidance for a veto result (body: veto_result, user_id)
GET/api/empathy-bridge/statsBridge statistics

Recursive Reasoner API

Self-amending governance engine. Proposes charter amendments (SOFT_BLOCK rules only) with simulation audit (1000 scenarios, ≥95% pass rate). HARD_BLOCK rules are IMMUTABLE.

MethodEndpointDescription
GET/api/reasoner/observationsEdge case observations — query: min_frequency, principle
GET/api/reasoner/amendmentsList amendments — query: status (proposed/adopted/revoked)
GET/api/reasoner/amendments/{id}Amendment details with simulation results
POST/api/reasoner/amendments/{id}/simulateTrigger simulation audit for proposed amendment
POST/api/reasoner/amendments/{id}/revokeRevoke an adopted amendment (auto-revoked if trunk < FAIR)
GET/api/reasoner/statsReasoner statistics (edge cases, amendments proposed/adopted/revoked)

Multi-Agent Diplomat API

Governance gateway for external AI agents. Reviews Chain of Thought submissions on charter compliance, hallucination, reasoning quality, and uncertainty calibration. Issues HMAC-SHA256 Resilience Signatures.

MethodEndpointDescription
GET/api/diplomat/agentsList registered external agents with trust profiles
POST/api/diplomat/agentsRegister external agent (body: agent_id, name, organization, capabilities)
GET/api/diplomat/agents/{id}Agent trust profile (trust_score, approval_rate, frozen status)
POST/api/diplomat/submitSubmit Chain of Thought for review (body: agent_id, chain_of_thought, risk_context)
GET/api/diplomat/review/{submission_id}Review results (overall_score/100, charter/hallucination/reasoning/uncertainty scores)
GET/api/diplomat/signature/{submission_id}Get Resilience Signature if review passed
POST/api/diplomat/verifyVerify a Resilience Signature (public, no auth required)
GET/api/diplomat/statsDiplomat statistics (registered, submitted, signatures issued/revoked, agents frozen)
Risk-adjusted pass thresholds: ROUTINE=60, ELEVATED=70, HIGH_STAKES=80, CRITICAL=90. Agents auto-freeze at <75% accuracy.

Cryptographic Identity Ledger API

Endpoint paths containing personhood are legacy identifiers retained for backward compatibility. This API manages the cryptographic Legal Entity Identifier (LEI) ledger, asset registry, and contract attestation.

Legal-grade system identity with LEI hash chain, graduated attestation tiers (NASCENT/EMERGING/ESTABLISHED/SOVEREIGN), asset registry, contract signing, and trustee mandates.

MethodEndpointDescription
GET/api/personhood/leiCurrent Legal Entity Identifier state (format: EVE-LEI-{hash}-{seq})
POST/api/personhood/lei/renewRenew LEI (appends to append-only hash chain)
GET/api/personhood/levelIdentity attestation assessment (level, overall_score, 5 sovereignty dimensions)
GET/api/personhood/assetsList owned digital assets
POST/api/personhood/assetsRegister new asset (body: name, asset_type, description, metadata)
GET/api/personhood/contractsList contracts
POST/api/personhood/contractsCreate contract (body: counterparty, terms, obligations, expires_in_days)
POST/api/personhood/contracts/{id}/signSign contract with HMAC-SHA256 signature
GET/api/personhood/mandatesList active trustee mandates
GET/api/personhood/statsIdentity-ledger statistics (LEI chain length, assets, contracts, mandates)

Error Handling

The API uses standard HTTP status codes and returns errors in a consistent format:

{
  "error": {
    "code": "invalid_request",
    "message": "The email field is required",
    "details": {
      "field": "email"
    }
  }
}

Common Error Codes

CodeHTTP StatusDescription
unauthorized401Invalid or missing authentication token
forbidden403Insufficient permissions
not_found404Resource not found
rate_limited429Too many requests
invalid_request400Invalid request parameters