Skip to main content
Documentation menu

API reference

HTTP API at carl.wentzel.ai/api/v1 for scans, findings, assess, badges, comments and scorecard.

The contract is openapi.v1.json. Errors are application/problem+json and every response carries an X-Request-Id header.

Endpoints

MethodPathPurpose
POST/api/v1/scansStart a public repository scan
GET/api/v1/scans/{scanId}Read an owned scan
DELETE/api/v1/scans/{scanId}Cancel an owned in-flight scan
GET/api/v1/scans/{scanId}/findingsList findings for an owned scan
POST/api/v1/assessAssess a public repository
POST/api/v1/badgesIssue an Open Badge
GET/api/v1/badgesRead one badge or list an org
GET/api/v1/badges/verifyVerify a stored Open Badge
GET/api/v1/commentsList comments on a criterion
POST/api/v1/commentsComment on a criterion
GET/api/v1/scorecardRead the scorecard catalog

Access

Scanning is anonymous. The first scan sets an HttpOnly owner cookie, and only that owner reads, lists or cancels the scan. A signed-in user owns scans by user id. The scorecard needs a scoped API key; the other routes take none.

Rate limit

POST /api/v1/scans allows 5 scans per IP per rolling hour. Over the limit, the API returns 429 with a Retry-After header in seconds.