List individual reports
Lists individual reports, newest first, as they were received. Use it to inspect specific reports, and the breakdown endpoints to see patterns. Reports are kept for 90 days.
Requires the viewer role on the website and the report type's plan feature.
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
websiteId*stringThe website's id.
type*stringWhich kind of report to read. A website only collects the types its plan includes and its settings allow.
"csp-violation""csp-hash""integrity-violation""permissions-policy-violation""potential-permissions-policy-violation""document-policy-violation""connection-allowlist""intervention""deprecation""crash""coop""coep""network-error"range*stringHow far back to look, counted from now. Reports are kept for 90 days, so 90d is the widest range available.
"7d""24h""7d""30d""90d"search?stringMatch part of the page URL a report came from.
length <= 1024browser?stringOnly reports from this browser.
length <= 255directive?stringOnly reports for this CSP directive.
length <= 255disposition?stringOnly enforce or only report reports.
length <= 255destination?stringOnly reports for this request destination, such as script.
length <= 255hashAlgorithm?stringOnly reports using this hash algorithm.
length <= 255policy?stringOnly reports naming this policy.
length <= 255visibility?stringOnly reports from pages in this visibility state, such as visible.
length <= 255kind?stringOnly reports of this kind, such as tcp.refused.
length <= 255phase?stringOnly reports raised in this phase, such as dns, connection or application.
length <= 255cursor?stringThe nextCursor of the previous page.
limit*|How many reports to return, from 1 to 200.
1 <= value <= 20050A page of reports.
application/json- response
data*array<>The reports on this page.
pagination*Where this page sits in the full result set.
curl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/reports/csp-violation/raw?range=24h&limit=50'{ "data": [ { "id": "string", "type": "csp-violation", "receivedAt": "2019-08-24T14:15:22Z", "url": "https://shop.example.com/checkout", "userAgent": { "family": "Chrome", "version": "121", "os": "macOS" }, "data": {} } ], "pagination": { "nextCursor": "string", "hasMore": true, "total": 0 }}Export individual reports GET
Streams individual reports as CSV, newest first, with the same filters as the list endpoint and no pagination. The columns depend on the report type.
Export the report breakdown GET
Streams the whole breakdown as CSV, with the same filters as the breakdown endpoint and no pagination.