API ReferenceEndpoints
Images
Images represent unique container artifacts (registry/name) discovered by HarborGuard, independent of any specific tag or scan. Use this endpoint to browse your image inventory and drill into per-image vulnerabilities.
Base path: /api/images
| Method | Path | Min role |
|---|---|---|
| GET | /api/images | viewer (any) |
GET
/
imagesAuthorization
X-API-Key<token>
Organization API key (hg_ak_*). Created from Settings → API Keys.
In: header
AuthorizationRequiredBearer <token>
Authorization: Bearer hg_ak_... for organization API keys, or
Authorization: Bearer hg_pat_... for Personal Access Tokens that
impersonate a specific user.
In: header
next-auth.session-token<token>
NextAuth session cookie. Web only — set automatically at sign-in. Not usable for server-to-server.
In: cookie
Query Parameters
pageinteger
Page number (1-indexed)
Default:
1Minimum: 1limitinteger
Page size (1–200)
Default:
50Minimum: 1Maximum: 200registrystring
riskScoreinteger
Minimum risk score
gradestring
Comma-separated list of grades.
searchstring
sortstring
Sortable: name, createdAt, riskScore.
OK