ZeroLeaks
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.

NamespacePurpose
scansSystem-prompt scans
runtimeScansScans that execute through local application code
endpointConfigsHTTP target configuration
endpointScansScans against deployed HTTP agents
skillScansRepository, URL, and ZIP skill scans
reportsPrompt-scan report retrieval
healthUnauthenticated service health
capabilitiesModels, 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.

On this page