CentralCSP
APIHeader Monitoring

List the security header history

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 an address's scans started failing or recovered. Entries are never edited, and an address no longer watched is left out here but still answers its activity.

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

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

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 events of this watched address, by its id from the watched addresses list.

Lengthlength <= 36
name?string

Only the events of the headers of this exact name, as the headers list spells it. The events about an address itself have no header and never match.

Length1 <= length <= 160
event?string

Only the events of this kind.

Value in"appeared""changed""removed""reappeared""approved""rejected""check_failing""check_recovered"

Response Body

A page of history entries.

application/json
  1. response
data*array<>

The history entries 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/history'
Example Response
{  "data": [    {      "id": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f02",      "event": "check_failing",      "headerName": "content-security-policy",      "headerId": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f03",      "headerKind": "header",      "previousValue": "default-src 'self'; script-src 'self'",      "value": "default-src 'self'; script-src 'self' https://js.stripe.com",      "detail": "first_check",      "actorId": "3f6c2a1e-8b4d-4e7a-9c1f-5d2b7e8a0c43",      "actorName": "Alex Martin",      "actorEmail": "alex@example.com",      "actorPicture": "https://lh3.googleusercontent.com/a/example",      "actorDeleted": true,      "createdAt": "2026-10-01T08:00:00.000Z",      "addressId": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f03",      "url": "https://shop.example.com/checkout",      "addressName": "Checkout"    }  ],  "pagination": {    "nextCursor": "eyJpZCI6IjAxOTM2YjdhLTZmMmUtN2MzMS05YTRkLTJmOGUxYzViN2Q5MCJ9",    "hasMore": true,    "total": 128  }}