Reports
HarborGuard reports come in two families:
- Technical reports (
/api/reports) — generic posture, executive, SLA, and SBOM reports stored in thereportstable. - Compliance evidence packs (
/api/reports/compliance-pack) — framework-specific bundles stored in thecompliance_reportstable.
Both kinds expose the same retrieval, sharing, and download endpoints.
Base path: /api/reports
| Method | Path | Min role |
|---|---|---|
| GET | /api/reports | viewer |
| POST | /api/reports | developer |
| GET | /api/reports/{reportId} | viewer |
| DELETE | /api/reports/{reportId} | admin |
| GET | /api/reports/{reportId}/artifact | viewer |
| GET | /api/reports/{reportId}/download | viewer |
| POST | /api/reports/{reportId}/regenerate | developer |
| POST | /api/reports/{reportId}/share | admin |
| POST | /api/reports/compliance-pack | admin |
| GET | /api/reports/compliance | viewer (any) |
| GET | /api/reports/executive | viewer |
| GET | /api/reports/posture | viewer |
| GET | /api/reports/technical | viewer |
| GET | /api/reports/sla | viewer |
| GET | /api/reports/sla/entries | viewer |
reportsAuthorization
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)
1Minimum: 1limitinteger
Page size (1–200)
50Minimum: 1Maximum: 200typestring
"posture" | "executive" | "sla" | "technical" | "sbom_report"statusstring
sortstring
Sortable: createdAt, type, status.
OK
reportsAuthorization
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
Request Body
application/jsonRequiredtypeRequiredstring
"posture" | "executive" | "sla" | "technical" | "sbom_report"formatstring
"PDF"Value in: "PDF" | "CSV" | "JSON" | "XLSX"scopestring
"org" | "registry" | "custom"tagIdsarray<string>
sectionsarray<string>
frequencystring
"ONE_TIME" | "DAILY" | "WEEKLY" | "MONTHLY"scanIdstring
layerIdstring
packageIdstring
Created
reports/{reportId}Authorization
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
Path Parameters
reportIdRequiredstring
OK
reports/{reportId}Authorization
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
Path Parameters
reportIdRequiredstring
OK
reports/{reportId}/artifactAuthorization
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
Path Parameters
reportIdRequiredstring
OK
reports/{reportId}/downloadAuthorization
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
formatstring
"PDF"Value in: "PDF" | "CSV" | "XLSX" | "JSON"Path Parameters
reportIdRequiredstring
OK
reports/{reportId}/regenerateAuthorization
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
Path Parameters
reportIdRequiredstring
Created
reports/{reportId}/shareAuthorization
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
Request Body
application/jsonOptionalexpiresInHoursinteger
72Minimum: 1Maximum: 720Path Parameters
reportIdRequiredstring
OK
reports/compliance-packAuthorization
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
Request Body
application/jsonRequiredtemplateIdRequiredstring
Framework key, e.g. soc2, pci-dss, nist-800-53, hipaa, fedramp, iso-27001, cmmc, cis-docker.
nameRequiredstring
periodRequiredobject
scopeRequiredobject
Registry / org / image filter.
selectedSectionsarray<string>
outputFormatsarray<string>
["PDF","JSON"]Created
reports/complianceAuthorization
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
OK
reports/executiveAuthorization
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
OK
reports/postureAuthorization
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
OK
reports/technicalAuthorization
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
OK
reports/slaAuthorization
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
OK
reports/sla/entriesAuthorization
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
OK