APIReports
List reported policies
Lists the distinct policies browsers said were in force when they reported a violation, with how often each was seen and whether it was enforced or report-only. Useful for spotting a stale policy still being served from a cache or an edge node. Covers the website's whole history rather than a range. Only available for csp-violation.
Requires the viewer role on the website and the report type's plan feature.
AuthorizationBearer <token>
An OpenID Connect access token issued by Keycloak, acting as the signed-in user.
In: header
Path Parameters
workspaceId*string
websiteId*string
type*string
Query Parameters
search?string
Match part of the policy text.
Length
length <= 4096cursor?string
The nextCursor of the previous page.
limit*|
How many policies to return, from 1 to 200.
Range
1 <= value <= 200Default
50Response Body
application/json
curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/reports/string/policies?limit=50"{ "data": [ { "policy": "string", "dispositions": [ "enforce" ], "count": 0, "firstSeen": "2019-08-24T14:15:22Z", "lastSeen": "2019-08-24T14:15:22Z" } ], "pagination": { "nextCursor": "string", "hasMore": true, "total": 0 }}