CentralCSP
APIHeader Monitoring

Watch an address

Starts scanning one exact address of the website for security header changes, under the name you give it. Every header the first scan reads waits for a person's decision, and an address you watched before comes back with its history. Send a plain address on the website's own host: a pattern, another host or an address already watched is refused.

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

POST
/v1/workspaces/{workspaceId}/websites/{websiteId}/compliance/headers/addresses

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.

Request Body

application/json
  1. body

The address to start scanning and its name.

name*string

What you call the address, such as Checkout or 3-D Secure step, at most 100 characters. Leading and trailing spaces are dropped. Watching again an address you stopped watching gives it this name.

Match^[^\u0000-\u001F\u007F-\u009F]*[^\s\u0000-\u001F\u007F-\u009F][^\u0000-\u001F\u007F-\u009F]*$
Length1 <= length <= 100
url*string

One exact address to scan, on the website's own hostname and port. A wildcard or a pattern is refused, a subdomain too. The query string is kept and the fragment is dropped. The scanner has no session, so choose an address that shows the payment page without signing in.

Length1 <= length <= 2048

Response Body

The addresses the scanner watches for security header changes, and how often.

application/json
  1. response
intervalHours*|

How often the scanner reads every address of the website.

urlsLimit*||

How many addresses the website may have scanned on its plan, or null for no limit.

tracked*array<string>

The HTTP response headers every scan compares, by lowercased name. Each cookie's security attributes, a policy set in a <meta> tag and the Location header of the redirects followed from the address are watched too.

addresses*array<>

The addresses scanned, in the order they were added.

Example Request
curl -X POST 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance/headers/addresses' \  -H 'Content-Type: application/json' \  -d '{  "name": "Checkout",  "url": "https://shop.example.com/checkout"}'
Example Response
{  "intervalHours": 6,  "urlsLimit": 10,  "tracked": [    "content-security-policy",    "strict-transport-security"  ],  "addresses": [    {      "id": "01990b7e-4c1a-7d2e-9b3f-5a6c7d8e9f03",      "name": "Checkout",      "url": "https://shop.example.com/checkout",      "status": "ok",      "lastError": "blocked",      "lastHttpStatus": 200,      "failingSince": "2026-11-02T15:15:00.000Z",      "lastCheckedAt": "2026-11-02T15:15:00.000Z",      "nextCheckAt": "2026-11-02T15:15:00.000Z",      "firstCheckAt": "2026-11-02T15:15:00.000Z",      "headersToReview": 2,      "cookiesNotListed": 0,      "headersNotListed": 0,      "createdAt": "2026-10-01T08:00:00.000Z"    }  ]}