List security headers
Lists the security headers of the watched addresses with their current value, latest change, approved value and review status. Use requiresAction for the ones waiting for a decision, status=approved for the values currently approved, and stillSent to tell the rejected values a page still sends from the ones it dropped.
Requires the viewer role on the website and the compliance 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.
cursor?stringThe nextCursor of the previous page. Omit it to start from the beginning. A cursor encodes a position and is not meant to be built by hand.
limit?|How many items to return, from 1 to 200.
1 <= value <= 20050addressId?stringOnly the headers of this watched address, by its id from the watched addresses list.
length <= 36change?stringOnly the headers whose latest change is of this kind, the one each header's change shows. Combines with the other filters.
"appeared""changed""removed""reappeared"name?stringOnly the headers of this exact name, as the list spells it. Combines with the other filters.
1 <= length <= 160status?stringOnly 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.
"approved""needs_review""rejected"requiresAction?booleantrue returns only headers still waiting for a decision.
stillSent?booleantrue 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?stringOnly 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.
^(?:[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)$length <= 36sort?stringaddress (the default) keeps each address's headers together, sorted by name. review lists the headers waiting for a decision first, then the rejected values still sent, then the most recently changed. status lists the same three groups, each address's headers together within a group, sorted by name. A cursor only continues the order it was issued for.
"address""review""status"A page of headers.
application/json- response
data*array<>The headers on this page.
pagination*Where this page sits in the full result set.
curl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance/headers'{ "data": [ { "id": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f03", "addressId": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f03", "url": "https://shop.example.com/checkout", "addressName": "Checkout", "name": "content-security-policy", "value": "default-src 'self'; script-src 'self' https://js.stripe.com", "kind": "header", "change": "changed", "approvedValue": "default-src 'self'; script-src 'self' https://js.stripe.com", "approvedAbsent": false, "valueHash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "status": "needs_review", "stillSent": false, "justification": "Stripe.js added for the new checkout, reviewed by security.", "approvedBy": "3f6c2a1e-8b4d-4e7a-9c1f-5d2b7e8a0c43", "approvedByName": "Alex Martin", "approvedByEmail": "alex@example.com", "approvedByPicture": "https://lh3.googleusercontent.com/a/example", "approvedByDeleted": true, "approvedAt": "2026-11-02T15:15:00.000Z", "rejectionReason": "Nobody on the team added this script source.", "rejectedBy": "3f6c2a1e-8b4d-4e7a-9c1f-5d2b7e8a0c43", "rejectedByName": "Alex Martin", "rejectedByEmail": "alex@example.com", "rejectedByPicture": "https://lh3.googleusercontent.com/a/example", "rejectedByDeleted": true, "rejectedAt": "2026-11-02T15:15:00.000Z", "firstSeen": "2026-11-02T15:15:00.000Z", "changedAt": "2026-11-02T15:15:00.000Z" } ], "pagination": { "nextCursor": "eyJpZCI6IjAxOTM2YjdhLTZmMmUtN2MzMS05YTRkLTJmOGUxYzViN2Q5MCJ9", "hasMore": true, "total": 128 }}Set the scan frequency PUT
Sets how often every watched address of the website is scanned: every 3, 6, 12 or 24 hours, and every 6 hours until you set one.
List the security header history GET
Returns everything recorded on the website's watched addresses, newest first: header changes, what each first scan read, decisions with who made them, and when...