Loading...
Loading...
OMEGAENGINE · LOGGING & AUDIT
Supported request paths retain best-effort structured RequestLog records with available inputs, model, risk signals, policy outcomes and audit references. These are scoped operational history, not verified execution receipts. Missing rows or fields do not prove that an action did not occur.
Fields vary by writer and retained record. RequestLog is not the authorization ledger or an exactly-once record of every action. Retained scenario, context, response and metadata may contain customer content: this read endpoint does not sanitize historical rows. A privacy-mode label is not proof that content was redacted.
Core fields
Judgment & risk signals
Policy & ethics layer
Outcome & audit
You can query the same data that powers the Logs Control Room via /api/logs. This endpoint is authenticated. Use an organization-bound key with explicit effective logs:read permission, or sign in to view your own user-scoped records. A selected workspace does not expand browser access. A personal key cannot read organization logs. Default execution-key permissions do not necessarily include logs:read; an authorized organization key manager can request a separate read key through the normal key flow. No existing keys are silently granted new permissions. Root operator access remains separate. This route has no dedicated rate-limit gate.
Request
GET /api/logs?limit=50&hours=24 HTTP/1.1 Host: omegaengine.ai x-api-key: <ORG_LOGS_READ_KEY> Content-Type: application/json
Example · cURL
curl -X GET "https://omegaengine.ai/api/logs?limit=20" \ -H "x-api-key: $OMEGAENGINE_ORG_LOGS_READ_KEY" \ -H "Content-Type: application/json"
Example · TypeScript (Node)
const key = process.env.OMEGAENGINE_ORG_LOGS_READ_KEY ?? "";
if (!key) throw new Error("Configure an organization logs:read key");
type RequestLog = {
id: string;
createdAt: string;
scenario: string | null;
topic: string | null;
riskLevel: "LOW" | "MEDIUM" | "HIGH" | null;
riskScore: number | null;
safetyScore: number | null;
probabilityOfSuccess: number | null;
probabilityOfRegret: number | null;
policyOutcome: string | null;
needsHumanReview: boolean | null;
ethicsConcern: boolean | null;
// ...plus all other fields
};
async function fetchRecentDecisions(limit = 50): Promise<RequestLog[]> {
const res = await fetch(
`https://omegaengine.ai/api/logs?limit=${limit}`,
{
headers: {
"x-api-key": key,
"Content-Type": "application/json",
},
}
);
if (!res.ok) {
throw new Error(`Failed to fetch logs: ${res.status}`);
}
const json = await res.json();
if (json.ok !== true || !Array.isArray(json.logs)) {
throw new Error("Unexpected log response");
}
return json.logs;
}
// Await fetchRecentDecisions() in your application and handle failures.Responses are private, no-store and use { ok, requestId, logs }. Limit defaults to 200, floors positive fractions and clamps to 1–500; invalid or nonpositive values use the default. This is a recent snapshot ordered newest first, not a paginated export. Cursor, offset and since are not supported. The hours filter is capped at 720 hours. Authentication fails with 401, missing org binding or read permission with 403, database unavailability with 503 and unexpected failures with a generic 500. Never retry an error as an empty history.
You can forward retained RequestLog data into their existing observability stack (Datadog, Splunk, BigQuery, Snowflake, S3 lake, etc). You can either:
Example pattern · recent snapshot only
// Pseudo-code: run this as a cron to ship OmegaEngine logs
// from /api/logs into your SIEM or data warehouse.
async function exportRecentOmegaLogs() {
const res = await fetch(
"https://omegaengine.ai/api/logs?limit=500&hours=24",
{
headers: {
"x-api-key": process.env.OMEGAENGINE_ORG_LOGS_READ_KEY!,
"Content-Type": "application/json",
},
}
);
if (!res.ok) throw new Error(`Log snapshot failed: ${res.status}`);
const data = await res.json();
if (data.ok !== true || !Array.isArray(data.logs)) {
throw new Error("Unexpected log response");
}
const rows = data.logs;
// 1) Redact for your destination and deduplicate by id.
// These are candidate fields, NOT guaranteed secret-free content.
const events = rows.map((row) => ({
ts: row.createdAt,
scenario: row.scenario,
topic: row.topic,
risk_level: row.riskLevel,
risk_score: row.riskScore,
safety_score: row.safetyScore,
policy_outcome: row.policyOutcome,
needs_human_review: row.needsHumanReview,
ethics_concern: row.ethicsConcern,
model: row.model,
latency_ms: row.latencyMs,
tokens_used: row.tokensUsed,
endpoint: row.endpoint,
client_tag: row.clientTag,
}));
// 2) Push into your SIEM / warehouse of choice
await sendToDatadog(events);
// or sendToSplunk(events), sendToS3(events), sendToSnowflake(events)...
}If you want help wiring OmegaEngine logs into your specific compliance / audit stack, talk to us to discuss requirements. A contact link is not proof of delivered integration.
These records can help investigate structured, explainable, policy-aware judgment logs . They do not certify compliance, successful execution or complete history.