API Reference
API Reference
Complete reference for the ZeroLeaks SDK client, scan namespaces, runtime targets, reports, types, and errors.
API Reference
The @zeroleaks/sdk client exposes one namespace for each ZeroLeaks scan path.
| Namespace | Purpose |
|---|---|
scans | System-prompt scans |
runtimeScans | Scans that execute through local application code |
endpointConfigs | HTTP target configuration |
endpointScans | Scans against deployed HTTP agents |
skillScans | Repository, URL, and ZIP skill scans |
reports | Prompt-scan report retrieval |
health | Unauthenticated service health |
capabilities | Models, modes, surfaces, and API limits |
agentConfigs and agentScans remain compatibility aliases for endpointConfigs and endpointScans.
import { ZeroLeaks } from "@zeroleaks/sdk";
const zeroleaks = new ZeroLeaks();The SDK uses the versioned /api/v1 API. A machine-readable OpenAPI specification is also available at /openapi.json on the ZeroLeaks domain.