ProductEvidenceDevelopersTrustCompany
Kernel Docs

API Reference

The API is intentionally narrow: authenticate, evaluate, report outcome, inspect history, and trace sessions. For full request and response shapes, see the integration guide.

Authentication

Authorization: Bearer <api_key>

Kernel also supports WorkOS SSO for team-based access control on hosted deployments.

Evaluation

POST /evaluate

Evaluate a single action. Inputs: agent_id, session_id, action_type, amount, metadata.

POST /analyze

Evaluate multiple actions in a single request. Useful for batch or replay workflows.

Outcome & History

PUT /evaluations/{evaluation_id}/review

Report the outcome after execution or review. Status, resolution, and optional impact metadata.

POST /evaluations/{evaluation_id}/notes

Add operator notes to an evaluation record.

GET /evaluations/export

Export evaluation records in CSV format for audit and analysis.

Investigations

GET /investigations

List evaluations pending review or requiring attention. Supports query parameters for filtering.

GET /trace/{session_id}

Return the full session trail for a specific investigation.

GET /audit-log

Retrieve operator actions and configuration changes for compliance review.

Agents & Sessions

POST /agents

Register a new agent for tracking and evaluation.

GET /agents/{agent_id}

Retrieve agent details and evaluation history.

POST /sessions

Register a new session for an agent. Optional session-level metadata.

Configuration

GET /config

Retrieve current configuration including thresholds, signals, and taxonomy.

PUT /config

Update configuration. Every change is versioned and audited.

Health & Metrics

GET /health

Returns service status including version, uptime, database health, schema version, and authentication configuration.

GET /health/live

Kubernetes liveness probe. Returns 200 when the process is alive.

GET /health/ready

Kubernetes readiness probe. Returns 200 when the service can accept traffic.

GET /metrics

Returns a JSON snapshot of current evaluation and signal metrics.

GET /metrics/prometheus

Prometheus-formatted metrics for integration with monitoring stacks.

Dashboard

GET /dashboard/summary

Aggregated summary statistics for the dashboard UI.

For full request bodies, response shapes, and implementation guidance, use the integration guide.

K

Detect behavior change before
money moves.