CentralCSP
APIReports

Export reported policies

Streams every matching policy as CSV, with no pagination.

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

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

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

Response Body

text/csv

curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/reports/string/policies/export"
"string"