curl --request GET \
--url https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups \
--header 'X-Session-Token: <api-key>'import requests
url = "https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups"
headers = {"X-Session-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Session-Token': '<api-key>'}};
fetch('https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Session-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Session-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups")
.header("X-Session-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Session-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "schemes:3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a:havs:2026-11-01:2026-11-30",
"type": "exposure-rollups",
"attributes": {
"exposure_type": "havs",
"unit": "points",
"first": "2023-12-25",
"last": "2023-12-25",
"total": 1830,
"people": 12,
"breaches": 1,
"near_limits": 3,
"weekly_breaches": 0,
"weekly_near_limits": 2,
"days": [
{
"subject": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-12-25",
"total": 450,
"job_total": 300,
"band": "green",
"weekly_total": 1240,
"weekly_band": "green",
"amber": 100,
"red": 400,
"weekly_amber": 500,
"weekly_red": 2000
}
]
},
"relationships": {
"node": {
"data": {
"type": "schemes",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
],
"meta": {
"pagination": {
"counts": {
"pages": 1,
"resources": 1
},
"current_page": 1,
"offsets": {
"next": null,
"previous": null
},
"requested": {
"limit": 10,
"offset": 0
}
},
"features": {
"include": {
"options": [
"related.resource"
]
}
}
},
"jsonapi": {
"version": "1.0"
}
}{
"id": "98ca4a78-b66f-4234-9719-aaf832ee6669",
"status": "400",
"title": "A validation error was encountered",
"source": {
"parameter": "include"
},
"meta": {
"resource": "wrong_value"
}
}{
"id": "05fc9c8d-73b9-4697-9337-57f7a567a48f",
"status": "401",
"title": "You are not authorised to access this resource",
"detail": "In order to access this resource, you need the 'admin' role.",
"code": "AUTH.001"
}{
"id": "7b4c8f12-3e9a-4d5b-8c6f-1a2b3c4d5e6f",
"status": "404",
"title": "Resource not found",
"detail": "The requested resource could not be found or does not exist.",
"code": "NOT_FOUND.001"
}{
"id": "fe9d9a69-f0a7-4fdc-bb2c-176027f316c5",
"status": "500",
"title": "Internal Server Error",
"detail": "An unexpected error occurred on the server."
}List exposure rollups
The exposure recorded on a scheme, work order or operation, for the exposure panel on each of their pages. A HAVS exposure linked to an operation counts towards that operation, its work order and its scheme, and one linked to a work order towards that work order and its scheme. Each read works the node out afresh, so a new, edited or deleted exposure, a changed link, and an operation moved to another work order show on the next read.
The response holds one rollup: the total recorded on the node in the window, the people with records on it, the counts of person-days with records on it that reached amber or red against the person’s daily or weekly limit, and each person-day with records on it, green ones included. A person’s band counts their whole dose, every organisation and job included, and each day carries the node’s share. A breach day that mixes several schemes shows on each of them, with each one’s share.
The caller must be able to view the node. The totals and counts then include everyone. The per-person days
include only the people the caller holds exposure-limits:view on, as GET /v3/orgs/{org_id}/exposure-days
does. A node that does not exist, or is in another organisation, is a 404 (CH.007.156). To see the records
behind the rollup, list GET /v3/havs-exposures filtered to the same node.
curl --request GET \
--url https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups \
--header 'X-Session-Token: <api-key>'import requests
url = "https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups"
headers = {"X-Session-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Session-Token': '<api-key>'}};
fetch('https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Session-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Session-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups")
.header("X-Session-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ctrl-hub.com/v3/orgs/{org_id}/exposure-rollups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Session-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "schemes:3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a:havs:2026-11-01:2026-11-30",
"type": "exposure-rollups",
"attributes": {
"exposure_type": "havs",
"unit": "points",
"first": "2023-12-25",
"last": "2023-12-25",
"total": 1830,
"people": 12,
"breaches": 1,
"near_limits": 3,
"weekly_breaches": 0,
"weekly_near_limits": 2,
"days": [
{
"subject": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-12-25",
"total": 450,
"job_total": 300,
"band": "green",
"weekly_total": 1240,
"weekly_band": "green",
"amber": 100,
"red": 400,
"weekly_amber": 500,
"weekly_red": 2000
}
]
},
"relationships": {
"node": {
"data": {
"type": "schemes",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}
}
],
"meta": {
"pagination": {
"counts": {
"pages": 1,
"resources": 1
},
"current_page": 1,
"offsets": {
"next": null,
"previous": null
},
"requested": {
"limit": 10,
"offset": 0
}
},
"features": {
"include": {
"options": [
"related.resource"
]
}
}
},
"jsonapi": {
"version": "1.0"
}
}{
"id": "98ca4a78-b66f-4234-9719-aaf832ee6669",
"status": "400",
"title": "A validation error was encountered",
"source": {
"parameter": "include"
},
"meta": {
"resource": "wrong_value"
}
}{
"id": "05fc9c8d-73b9-4697-9337-57f7a567a48f",
"status": "401",
"title": "You are not authorised to access this resource",
"detail": "In order to access this resource, you need the 'admin' role.",
"code": "AUTH.001"
}{
"id": "7b4c8f12-3e9a-4d5b-8c6f-1a2b3c4d5e6f",
"status": "404",
"title": "Resource not found",
"detail": "The requested resource could not be found or does not exist.",
"code": "NOT_FOUND.001"
}{
"id": "fe9d9a69-f0a7-4fdc-bb2c-176027f316c5",
"status": "500",
"title": "Internal Server Error",
"detail": "An unexpected error occurred on the server."
}Authorizations
Query Parameters
Names the node and the window. Required.
eq(scheme,xxx),eq(work-order,xxx)oreq(operation,xxx): Required. The node, one of the three.ge(date,YYYY-MM-DD): Required. The window's first Europe/London day.le(date,YYYY-MM-DD): Required. The window's last day. A window spans at most 93 days.
Terms are comma separated, or wrapped in and(...). An or(...), a second node, text after a term, any other
term and a term that does not parse are refused with a 400 rather than ignored.
For more information on using named filters, see the docs
1"eq(scheme,3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a),ge(date,2026-11-01),le(date,2026-11-30)"