CentralCSP
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.

GET
/v1/workspaces/{workspaceId}/websites/{websiteId}/reports/{type}/policies

Authorization

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.

Lengthlength <= 4096
cursor?string

The nextCursor of the previous page.

limit*|

How many policies to return, from 1 to 200.

Range1 <= value <= 200
Default50

Response 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  }}