CentralCSP
APIHeader Monitoring

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.

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

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

cursor?string

The 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.

Range1 <= value <= 200
Default50
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
sort?string

address (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.

Value in"address""review""status"

Response Body

A page of headers.

application/json
  1. response
data*array<>

The headers on this page.

pagination*

Where this page sits in the full result set.

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