Export a drill-down view
Streams the whole drill-down as CSV, with the same filters as the view endpoint and no pagination.
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"view*stringWhich drill-down to open. csp-hash has scripts, pages and hashes. Every other report type has detail.
"detail""scripts""pages""hashes"sort?stringOrder rows by report count, last seen or first seen. Views without a first-seen date ignore firstSeen and keep their default order.
"count""lastSeen""firstSeen"order?stringSort direction. Defaults to newest or largest first, and oldest first for firstSeen.
"asc""desc"key?stringThe key of the row you are drilling into. Without it the view covers the whole website.
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 a URL or value in the row.
length <= 4096A UTF-8 CSV file of the filtered drill-down.
response?stringtext/csvcurl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/reports/csp-violation/views/detail/export?range=24h'"string"Get the report breakdown GET
Groups the website's reports of this type and ranks the groups by volume, biggest first. Pass sort to rank by last or first seen instead.
Get a drill-down view GET
Opens up one row of a breakdown. Pass the row's key to get the detail behind it. Rows here carry their own key, so you can drill further.