API Reference
HarborGuard exposes a JSON REST API under the /api prefix. Every endpoint is scoped to the calling principal's organization and protected by one of three credential types described in Authentication.
A machine-readable description of every public endpoint is available as an OpenAPI 3.1 document at /openapi/harborguard-v1.yaml — see the OpenAPI spec page for download and import instructions.
Base URL
Quickstart
Create an organization API key from Settings → API Keys, then issue a request:
Or trigger a scan:
Response envelope
Every successful response is wrapped in a consistent envelope. Single-resource responses contain only data. Paginated list responses also include meta and links.
Error responses use a separate envelope:
See Errors for the full code list.
Endpoint catalog
Scans
Trigger scans and read scan status, findings, and per-engine output.
Images
Browse the catalog of images discovered across connected registries.
Registries
Manage registry connections, credentials, and scanning policy.
Reports
Generate compliance reports and download framework-specific evidence.
Vulnerabilities
Query findings and apply triage updates to individual or bulk rows.
Other endpoints (members, teams, notification channels, audit log, attestations, patches, sensors, SSO) follow the same conventions and are documented in their respective feature pages.
Conventions
- Requests and responses use
application/jsonunless explicitly noted (e.g. report downloads returnapplication/pdf,text/csv, orapplication/zip). - Timestamps are ISO 8601 in UTC.
- Resource IDs are opaque strings; do not parse them.
- Resource creation returns
201 Created. Asynchronous work (scans, report generation) returns202 Acceptedwith a status URL or polling endpoint. - Read Pagination, Rate Limits, and Errors before building integrations.
Browser sessions and machine credentials use the same routes — only the Authorization header (or session cookie) changes.
Reference
Authentication
Credential types, header formats, and how org scoping is enforced.
Pagination
Page and pageSize parameters and the standard list-response envelope.
Rate limits
Per-credential rate-limit budgets and the headers returned on each call.
Errors
The error envelope and the full catalog of returned error codes.
OpenAPI spec
Download and import the machine-readable OpenAPI 3.1 description.