Publish a report
Publish an audit report
/v1/reportsPublish an audit report. The report payload is the full `AuditReport` produced by the CLI/engine. Visibility defaults to `private`. **Publishing is included in the audit's base charge**; no visibility carries a separate credit charge. `unlisted` and `private` publishes always create a new report (no idempotency). Org-scoped `public` publishes are keyed on the publisher + a content hash: republishing the identical payload is an idempotent replay, returning the original report with `200` if the prior response was cached, or `409` otherwise (still in flight / not cached).
Request bodyrequired
reportobjectrequiredThe full audit report payload produced by the squirrelscan engine. Only the high-signal top-level fields are documented here; the complete schema is validated by the hosted API. Extra top-level fields are accepted but ignored, while the documented fields below are validated and must conform.
visibilityanydefault: privateResponses
Idempotent replay of an identical org-scoped `public` publish whose original response was cached — returns the originally published report.
idstringrequiredurlstring (uri)requiredvisibility"public" | "unlisted" | "private"requiredAvailable options: public, unlisted, private
createdAtstring (date-time)requiredcurl --request POST \
--url "https://api.squirrelscan.com/v1/reports"{
"id": "<string>",
"url": "<url>",
"visibility": "public",
"createdAt": "2023-11-07T05:31:56Z"
}