CentralCSP
APIReports

List individual reports

Lists reports one by one, newest first, exactly as they were received. Use this when you need to look at a specific report, and the breakdown endpoints when you want to see patterns. Reports are kept for 90 days.

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

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

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

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 the page URL a report came from.

Lengthlength <= 1024
browser?string

Only reports from this browser.

Lengthlength <= 255
directive?string

Only reports for this CSP directive.

Lengthlength <= 255
disposition?string

Only enforce or only report reports.

Lengthlength <= 255
destination?string

Only reports for this request destination, such as script.

Lengthlength <= 255
hashAlgorithm?string

Only reports using this hash algorithm.

Lengthlength <= 255
policy?string

Only reports naming this policy.

Lengthlength <= 255
visibility?string

Only reports from pages in this visibility state, such as visible.

Lengthlength <= 255
kind?string

Only reports of this kind, such as tcp.refused.

Lengthlength <= 255
phase?string

Only reports raised in this phase, such as dns, connection or application.

Lengthlength <= 255
cursor?string

The nextCursor of the previous page.

limit*|

How many reports 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/raw?range=7d&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  }}