Quick Reference
Interactive Docs
Code Examples
Base URL: https://eveaicore.com

💬 Chat & Communication

POST /api/chat

Send a message to EVE and receive a response

WS /ws

WebSocket for real-time bidirectional communication

SSE /api/events/stream

Server-Sent Events for consciousness updates

GET /api/events/history

Retrieve historical events with pagination

🔒 Authentication

POST /api/auth/register

Register a new user account

POST /api/auth/login

Login and receive JWT token

POST /api/auth/refresh Auth

Refresh an expired access token

GET /api/auth/me Auth

Get current user profile

📈 Analytics NEW

GET /api/analytics/dashboard Auth

Get dashboard metrics overview

GET /api/analytics/consciousness Auth

Consciousness level metrics over time

GET /api/analytics/emotions Auth

Emotional state trends and patterns

GET /api/analytics/memory Auth

Memory usage and consolidation stats

GET /api/analytics/goals Auth

Goal completion and progress metrics

GET /api/analytics/insights Pro

AI-generated insights and recommendations

🗃 Memory Search & Export

GET /api/memory/search

Search across working, episodic, and semantic memories

GET /api/memory/stats

Get memory system statistics

POST /api/memory/export Auth

Export memories in JSON, CSV, JSONL, or gzip

GET /api/memory/export/timeline Auth

Get memory timeline visualization data

💡 Governance & System

GET /api/runtime-telemetry

Get current consciousness state and metrics

GET /api/status

Get overall system status

GET /api/metrics

Get all system metrics (JSON)

GET /healthz

Kubernetes liveness probe

🎯 Goals & Autonomy

GET /api/goals Auth

List all goals with status

POST /api/goals Auth

Create a new goal for EVE

GET /api/goals/{id} Auth

Get specific goal details

DELETE /api/goals/{id} Auth

Cancel or remove a goal

🛠 Admin / Audit Logs

GET /api/admin/organizations/{org_id}/audit-logs Admin

Query audit logs with filters

GET /api/admin/organizations/{org_id}/audit-logs/export Admin

Export audit logs to JSON or CSV

Send a Chat Message

// Send a message to EVE
const response = await fetch('/api/chat', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ message: 'Hello EVE!' })
});

const data = await response.json();
console.log(data.response);

WebSocket Connection

// Connect to EVE via WebSocket
const ws = new WebSocket('wss://eveaicore.com/ws');

ws.onopen = () => {
    console.log('Connected to EVE');
    ws.send(JSON.stringify({
        type: 'chat',
        message: 'Hello!'
    }));
};

ws.onmessage = (event) => {
    const data = JSON.parse(event.data);
    console.log('EVE:', data.message);
};

Authentication Flow

// 1. Register a new account
const registerResponse = await fetch('/api/auth/register', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
        email: '[email protected]',
        username: 'myuser',
        password: 'securepass123'
    })
});

// 2. Login to get tokens
const loginResponse = await fetch('/api/auth/login', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
        email: '[email protected]',
        password: 'securepass123'
    })
});

const { token } = await loginResponse.json();

// 3. Use token for authenticated requests
const meResponse = await fetch('/api/auth/me', {
    headers: { 'Authorization': `Bearer ${token}` }
});

Subscribe to Events (SSE)

// Listen for real-time governance updates
const eventSource = new EventSource('/api/events/stream');

eventSource.onmessage = (event) => {
    const data = JSON.parse(event.data);

    switch (data.type) {
        case 'governance_update':
            updateGovernanceDisplay(data.level);
            break;
        case 'emotion_change':
            updateEmotionDisplay(data.emotion);
            break;
    }
};

eventSource.onerror = () => {
    console.log('Connection lost, reconnecting...');
};