Into your own systems
Integrations
Every JSA event can create or update a record in the systems your site already runs, attach the signed PDF and raise actions. There is no standard JSA format, so a mapping file decides what a JSA becomes in each one: an inspection, a risk assessment, a form, a task, an incident.
What a delivery can do
Five events can be sent: jsa.created, jsa.signed,
jsa.revised, jsa.flagged and jsa.closed. Each
integration lists the ones it wants, and for each one a delivery can:
Create or update the record
The JSA's record in your system, made on the first event and updated by later ones, as whatever your system calls it.
Attach the signed PDF
To the record, as a file, a signed link or inline, whichever your system takes.
Raise actions
One for each hazard whose risk after controls is at or above a level you choose, and one for each flag.
Send a message
One per event: a webhook, an email or a file.
Keep your record's id
Your system's id is stored against the JSA, so later events update the same record rather than making another.
Read the status back
Where your system can say what happened to the record, its status comes back into the JSA's audit trail, read on a schedule or pushed to JSA Live.
How a delivery runs
Built for systems that are slow, down for maintenance, or behind a site firewall, because on a mine site that describes most of them.
-
Event
Queued with the change
A delivery is written in the same database transaction as the JSA change. A change that is refused queues nothing, and one that is saved cannot lose its deliveries.
-
In order
Sent in event order
For one JSA and one system, deliveries go one at a time in the order the events happened. Each reads the JSA as it is when it runs, so a late one never writes old data over new.
-
Retried
Retried, never doubled
Timeouts, rate limits and server errors are retried with backoff, up to eight attempts by default. Every step carries an idempotency key, so a retry never makes a second record or action.
-
Dead letters
Kept until replayed
A delivery that runs out of attempts, or that your system refuses outright, is kept with your system's reason. Replay one or all of them, from where they stopped or from the start.
Reaching any system
These reach a system with no adapter of its own: anything with an HTTP API, a webhook receiver, an SFTP folder, a SharePoint library or an inbox that opens tickets.
Any REST API
Every request is described in the mapping, with your system's own paths and bodies: create the record and find its new id, update it, find one by your own reference, attach the PDF, raise an action, send, and read the status. Sign-in by API key, bearer token, basic, or OAuth 2 client credentials.
Signed webhooks
Each event is posted to a receiver you run, signed with HMAC-SHA256 over a timestamp and the raw body, with a delivery id that stays the same on every retry so you can ignore one you have already seen. The PDF comes as a signed link, inline, or not at all.
File drops
CSV, JSON or XML, to an SFTP server through the on-site connector or to a SharePoint library through Microsoft Graph. One file per event, or one gathered up on a schedule in your time zone. Rows can be the JSA, its hazards, controls, sign-ons or flags. A retry rewrites the same file rather than adding another.
Email to ticket
A message for each event with the signed PDF attached, for systems that open a ticket from an email. Sent from a mailbox in your own Microsoft 365 tenant, or through your mail relay by the on-site connector. A large PDF goes as a link instead.
Inbound API
Your systems pull from JSA Live with an API token your team issues: JSAs, their PDFs, audit trails and the ids your systems gave them, and a feed of events. A system can also subscribe to webhooks of its own, each with its own signing secret.
On-site connector
A small service that runs inside a site's network, for what the cloud cannot reach: SFTP, a mail relay, and hosts only visible on site. It makes outbound HTTPS calls to JSA Live and nothing else, so no inbound port is opened, and the credentials it uses stay on site. It installs as a systemd service.
Credentials and control
What a team can see and change, and what never leaves where it is kept.
- No credentials in files
- An integration file holds references, never secrets. A secret is kept encrypted against the team, as a secret of the deployment, or only by the on-site connector. Once set, no part of the service hands it back.
- Dry run
- An integration can run dry: every request is built and logged, with credentials removed, and nothing is sent. Start every new mapping this way.
- On and off
- Each integration is switched on or off for the team. A switched-off integration is not queued for new events.
- The log
- Every request is logged with credentials removed, and the log is kept for 90 days by default.
- The audit trail
- Each delivery that changed something in your system, with your system's record id, each dead letter, and each status read back, is an event in the JSA's own hash-chained audit trail.
Named systems
Apart from Microsoft 365 mailboxes and SharePoint libraries, JSA Live does not yet have adapters made for a particular safety or maintenance product. Everything above works with any system that has an HTTP API, a webhook receiver, an SFTP folder or an inbox that opens tickets, through a mapping file written for it.
Tell us which systems your JSAs need to reach, and how your site connects to them.
Start with a dry run
Early access is set up by hand, one team at a time. Every mapping starts dry, so nothing reaches your systems until you have seen exactly what would.