CentralCSP
APIHeader Monitoring

Get a security header

Returns one security header with its current value and review. A header whose address is no longer watched answers 404 header_not_found.

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

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

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.

headerId*string

The header's id.

Response Body

A security header of a watched address, with its review.

application/json
  1. response
id*string

The header's id.

addressId*string

The id of the watched address it was seen on.

url*string

The watched address it was seen on.

addressName*string

The name of the watched address it was seen on.

name*string

The header's lowercased name. meta:content-security-policy is a policy set in a <meta> tag. location holds the redirects followed from the address, one line per redirect in order: its status code, then its target without query string (301 https://www.example.com/pay/). An address that does not redirect has no location value, and a Location header on the page finally read is not recorded. Only a 3xx status with a Location header is followed, never a <meta> refresh or a script. Cookies are set-cookie:<name>, and only their security attributes are kept, never their value.

value*|

The value as last seen, normalized so a reordered or re-nonced value is not a change, or null once the header is no longer sent.

kind*string

What the name stands for. header: an HTTP response header. cookie: the security attributes of one cookie. meta: a policy set in a <meta> tag.

Value in"header""cookie""meta"
change*|

The latest change a scan saw on it. appeared: it was seen for the first time, which is how the first scan of an address lists everything it reads. changed: its value is different. removed: it stopped being sent. reappeared: it is sent again after a scan had recorded it removed. null only once that record is older than the history kept. A decision does not reset it.

approvedValue*|

The value a person last approved, to compare value against. null when no value is approved: nobody approved it yet, the approval was withdrawn by a rejection, or what was approved is the header not being sent, which approvedAbsent tells apart.

approvedAbsent*boolean

true when what a person last approved is the header not being sent: they approved its removal, and the approval still stands. approvedValue is then null, and a header that comes back is compared with that approved absence. false when a value is approved, when nobody decided yet, or after a rejection.

valueHash*string

Identifies the current value. A decision sends it back, so it applies only to the value you reviewed.

status*string

approved: a person approved the current value. needs_review: nobody decided on the current value yet, because it is new or because it changed since the last approval. rejected: someone recorded that this value should not be served.

Value in"approved""needs_review""rejected"
stillSent*boolean

true when the value is rejected and the page still sent it at the last scan that read the page. It puts the website's header side in action_needed until the page stops sending it or the value changes, which sends it back to review. While the address is failing, it says what the last successful read saw.

justification*|

Why the current value is approved, or null while status is not approved. A decision on an earlier value is in the header's history, never here.

approvedBy*|

Identifier of the person who approved the current value, or null once their account is deleted.

approvedByName*|

Who approved the current value, as recorded with the approval and kept after their account is deleted.

approvedByEmail*|

The email of who approved the current value.

approvedByPicture*|

The picture the person who approved the current value has today, or null when they have none or their account is deleted. The name and email are the ones recorded with the decision; the picture is not.

approvedByDeleted*boolean

true when the person who approved the current value can no longer be named.

approvedAt*|

When the current value was approved.

rejectionReason*|

Why the current value was rejected, or null while status is not rejected.

rejectedBy*|

Identifier of the person who rejected the current value, or null once their account is deleted.

rejectedByName*|

Who rejected the current value, as recorded with the rejection and kept after their account is deleted.

rejectedByEmail*|

The email of who rejected the current value.

rejectedByPicture*|

The picture the person who rejected the current value has today, or null when they have none or their account is deleted. The name and email are the ones recorded with the decision; the picture is not.

rejectedByDeleted*boolean

true when the person who rejected the current value can no longer be named.

rejectedAt*|

When the current value was rejected.

firstSeen*string

When a scan first recorded the header.

Formatdate-time
changedAt*string

When a scan last recorded a different value. Equal to firstSeen while the value never changed, in which case change is appeared. A decision does not move it.

Formatdate-time
Example Request
curl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance/headers/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90'
Example Response
{  "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"}