CentralCSP
APIReports

Get a drill-down view

Opens up one row of a breakdown. Pass the row's key and get the detail behind it, ranked the same way. Rows here carry their own key, so views can chain.

Views by report type: csp-violation has detail (the exact pages and blocked URLs). csp-hash has scripts (scripts served by an origin), pages (pages that load a script), and hashes (the hashes a script has had). integrity-violation has detail. An unknown view returns 404.

Requires the viewer role on the website and the report type's plan feature.

GET
/v1/workspaces/{workspaceId}/websites/{websiteId}/reports/{type}/views/{view}

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
view*string

Query Parameters

key?string

The key of the row you are drilling into. Without it the view covers the whole website.

range*|||

How far back to look, counted from now. Reports are kept for 90 days, so 90d is the widest range available.

Default"7d"
search?string

Match part of a URL or value in the row.

Lengthlength <= 4096
cursor?string

The nextCursor of the previous page.

limit*|

How many rows 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/views/string?range=7d&limit=50"
{  "data": [    {      "key": "string",      "dimensions": {},      "collected": {},      "attributes": {},      "count": 0,      "firstSeen": "2019-08-24T14:15:22Z",      "lastSeen": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "nextCursor": "string",    "hasMore": true,    "total": 0  }}