CentralCSP
APIHeader Monitoring

Export the security headers

Downloads the security headers as a CSV file, with the same filters as the list and no pagination. For the evidence an assessor asks for, download an evidence pack instead.

Requires the viewer role on the website and the compliance plan feature.

GET
/v1/workspaces/{workspaceId}/websites/{websiteId}/compliance/headers/export

Authorization

headerAuthorizationBearer <JWT>

An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.

Path Parameters

workspaceId*string

The workspace's id.

websiteId*string

The website's id.

Query Parameters

addressId?string

Only the headers of this watched address, by its id from the watched addresses list.

Lengthlength <= 36
change?string

Only the headers whose latest change is of this kind, the one each header's change shows. Combines with the other filters.

Value in"appeared""changed""removed""reappeared"
name?string

Only the headers of this exact name, as the list spells it. Combines with the other filters.

Length1 <= length <= 160
status?string

Only the headers in this review state; without it, every current value of the website's watched addresses whatever its state. needs_review lists the same headers as requiresAction=true. approved lists the values currently approved, one per header and address, each with who approved it, when and why. A header approved as not sent is among them, with a null value and approvedAbsent set.

Value in"approved""needs_review""rejected"
requiresAction?boolean

true returns only headers still waiting for a decision.

stillSent?boolean

true returns only the rejected values the page still sent when it was last read, the ones whose stillSent is true. false returns every other header: with status=rejected, the rejected values no longer sent.

decidedBy?string

Only the values whose current decision this person made, by their identifier: who approved an approved value, who rejected a rejected one. deleted_account lists the decisions of people whose account is deleted. A header waiting for a decision never matches. The identifier is the approvedBy or rejectedBy of a header.

Match^(?:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|deleted_account)$
Lengthlength <= 36

Response Body

A UTF-8 CSV file of the filtered headers.

response?stringtext/csv
Example Request
curl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance/headers/export'
Example Response
"string"