Skip to main content

Safety Scores

Safety Score represents Intenseye’s aggregate metric that quantifies overall safety performance within a facility or workspace over time. It consolidates multiple data sources into a single standardized score between 0 and 100. This score provides a clear, comparable measure of safety effectiveness, allowing users to track progress, identify trends, and evaluate the impact of their safety initiatives.

The Safety Score API offers two endpoints: one for facility-level insights and another for workspace-level aggregation. Both endpoints allow querying historical safety performance across custom time ranges defined by start and end Unix timestamps. Optional parameters enable flexible data aggregation by DAY, WEEK, or MONTH, with daily aggregation selected by default. When weekly or monthly aggregation is used, the results automatically align to calendar periods (e.g., Monday–Sunday for weeks or 1st–last day for months), ensuring consistent trend visualization.

The API supports standard output formats (JSON, JSONL, CSV) and can return results either per facility or as consolidated workspace-wide data. By integrating Safety Score into analytics dashboards or reporting tools, organizations can continuously monitor safety improvements, benchmark performance between sites, and make data-driven decisions to enhance workplace safety culture.

Safety scores based on time interval

GET/workspace/score_summary/export

Arguments

Query String Parameters
  • start Long required The timestamp where the tasks are happened later
  • end Long required The timestamp where the tasks are happened earlier
  • aggregate List[Enum] optional
    • MINUTE
    • HOUR
    • DAY
    • WEEK
    • MONTH
    • QUARTER
  • format Enum optional
    • CSV (default)
    • JSON
    • JSONL

Returns

FieldTypeDescription
workspaceScoreSummaryCurrentDoubleCurrent score value of the workspace
workspaceScoreSummaryPreviousDoublePrevious score value of the workspace
percentageChangeDoublePercentage change between current and previous values
    workspaceScoreSummaryCurrent,workspaceScoreSummaryPrevious,workspaceScoreSummaryPercentageChange
0.38,0.0,0.0
---
GET/facility/score_summary/export

Arguments

Query String Parameters
  • start Long required The timestamp where the tasks are happened later
  • end Long required The timestamp where the tasks are happened earlier
  • facilityIds List[String] optional
  • aggregate List[Enum] optional
    • MINUTE
    • HOUR
    • DAY
    • WEEK
    • MONTH
    • QUARTER
  • format Enum optional
    • CSV (default)
    • JSON
    • JSONL

Returns

FieldTypeDescription
facilityIdStringUnique identifier for facility
facilityNameStringName of the facility
safetyScoreDoubleSafety score value
totalSafetyScoreJSONJson object that includes previous, current and percentage change values
previousDoublePrevious safety score value by aggregation
currentDoubleCurrent safety score value
percentageChangeDoublePercentage change between current and previous values
    facilityId,facilityName,facilitySafetyScoreCurrent,facilitySafetyScorePrevious,facilitySafetyScorePercentageChange
55cccec3-ab94-4805-8a49-166aa31ce845,TEST-Facility-3,0.29,0.44,-0.34
75cccec3-ab94-4805-8a49-166aa31ce845,TEST-Facility-4,0.0,0.41,-1.0

---