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
| Method | Path | Purpose |
|---|---|---|
POST | /api/v1/scans | Start 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}/findings | List findings for an owned scan |
POST | /api/v1/assess | Assess a public repository |
POST | /api/v1/badges | Issue an Open Badge |
GET | /api/v1/badges | Read one badge or list an org |
GET | /api/v1/badges/verify | Verify a stored Open Badge |
GET | /api/v1/comments | List comments on a criterion |
POST | /api/v1/comments | Comment on a criterion |
GET | /api/v1/scorecard | Read 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.
Related
- CLI: current programmatic interface.
- Tools: API: overview of what the API enables.
- Report schema