Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tracectrl.ai/llms.txt

Use this file to discover all available pages before exploring further.

Base URL

All endpoints are prefixed with /api/v1.
http://localhost:8000/api/v1

Authentication

The Engine API currently does not require authentication. In production deployments, secure the API behind a reverse proxy or API gateway.

Endpoints

System

MethodEndpointDescription
GET/healthHealth check
GET/projectsList all service names (for project selector)

Topology

MethodEndpointDescription
GET/topology/graphFull topology graph (supports ?service=)
GET/topology/agents/{agent_id}Single agent detail

Agents

MethodEndpointDescription
GET/agentsAgent inventory (supports ?service=)
GET/agents/{agent_id}/toolsTools used by an agent
GET/agents/{agent_id}/guardrailsGuardrails for an agent

Sessions

MethodEndpointDescription
GET/sessionsSession list (supports ?service=)
GET/sessions/latest-spansSpans from the most recent trace
GET/sessions/{trace_id}/spansSpans for a trace (supports ?extra=)

Guardrails

MethodEndpointDescription
GET/guardrailsGuardrail registry (supports ?agent_id=)
GET/guardrails/invocationsRecent evaluation spans
GET/guardrails/protector-configProtector Plus config (redacted)
PUT/guardrails/protector-configUpsert Protector Plus config
POST/guardrails/protector-testHealth-check the Protector Plus endpoint
GET/guardrails/protector-config/sdkFull config for the SDK

Violations

MethodEndpointDescription
GET/violationsList violations (limit, agent_id, severity)
GET/violations/recentRecent violations (limit)
GET/violations/streamSSE stream of new violations

Scans

MethodEndpointDescription
POST/scansUpload scan results from a CLI
GET/scansList all stored scans
GET/scans/latestLatest scan with drift detection
GET/scans/{scan_id}Results for a specific scan
POST/scan/validate-pathValidate an OpenClaw workspace path
POST/scan/triggerTrigger an engine-side scan
GET/scan/status/{scan_id}Poll a triggered scan
POST/scan/fixApply automated remediations

Risk

MethodEndpointDescription
GET/risk/agentsAll agents with inventory data
GET/risk/summarySystem-wide risk summary
GET/risk/attack-pathsRanked attack paths from TAGAAI rules
GET/risk/agent-scoresPer-agent risk scores

Attack Graph

MethodEndpointDescription
GET/attack-graph/pathsDetailed paths for the findings panel
GET/attack-graph/overlayCompromised nodes and edges for the overlay

Response Format

All endpoints return JSON. Errors return:
{
  "detail": "Error description"
}
with the appropriate HTTP status code (400, 404, 409, 500, or 503 where applicable).