Skip to content
4HSE logo

Connectors / Security and compliance · HTTP Connector

4HSE integration and API

Create a person, create an office and create a certificate in 4HSE, and start a workflow when 4HSE sends “Person created”.

What can you do with 4HSE on Tray.ai?

4HSE is cloud software for workplace health, safety and environment management, tracking people, training, certificates, equipment, incidents and compliance deadlines. Tray.ai connects to 4HSE through the HTTP Connector, so your workflows can call the 4HSE API alongside the rest of your stack.

  • Create a person in 4HSE for each new hire added to your HR system.
  • When 4HSE sends “Certificate updated”, update the employee's training record in your HR system.
  • Create an incident in 4HSE from each safety report submitted on your mobile forms.
  • On “Person deleted”, remove the worker from your site access system.
Connects through
HTTP Connector
Authentication
OAuth 2.0 or a bearer token or an API key in the query string

Set it up

Connect 4HSE to Tray.ai

Each step uses 4HSE's own API details, from its documentation.

Sign in to 4HSE with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with 4HSE. Sign in once and every step reads the token from there.

Import a request from 4HSE's docs

Add an HTTP Client step and paste a cURL example from 4HSE's API docs. Tray.ai fills in the method, URL, headers, and query.

Start with “List people”

It's one of 22 documented actions, under People. The response comes back as data the next step can map into your other apps.

Start workflows from 4HSE events

Give 4HSE the URL of a Tray.ai webhook trigger. “Person created” can then start a workflow, and so can 10 other events.

Workflows to build with 4HSE

Connect 4HSE with BambooHR, Jira, Microsoft Teams and Asana

Each one uses actions and events from 4HSE's own API documentation.

Add new BambooHR employees to 4HSE

When

An employee is added in BambooHR

Then

  1. Create a person with the employee's role and site
  2. Create a task to book their safety induction

With BambooHR

Raise Jira issues for new safety incidents

When

On a schedule

Then

  1. List incidents reported since the last run
  2. Create an issue for the facilities team in Jira

With Jira

Tell managers in Microsoft Teams when certificates change

When

Certificate updated

Then

  1. Post the change to the site's safety channel in Microsoft Teams
  2. Create a task for the manager in Asana if renewal is due

With Microsoft Teams and Asana

Apps you can build on 4HSE data

Internal tools your team can build with an AI assistant, each one using 4HSE calls from its API documentation.

Certificate expiry tracker

Lists staff certificates by office and lets a safety manager update a certificate once renewed.

Incident log

Lists workplace incidents by office and lets staff report a new incident or update one.

Safety task board

Lists open safety tasks and lets owners update them as work is done.

Give your AI agents 4HSE tools

Build an MCP server on 4HSE in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List people
  • List offices
  • List certificates
  • List incidents
  • List tasks
  • Get a person
  • Create a person
  • Update a person

What the 4HSE API covers

5 resources and 22 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

People

  • List people
  • Get a person
  • Create a person
  • Update a person
  • Delete a person

Offices

  • List offices
  • Get an office
  • Create an office
  • Update an office
  • Delete an office

Certificates

  • List certificates
  • Create a certificate
  • Update a certificate
  • Delete a certificate

Incidents

  • List incidents
  • Create an incident
  • Update an incident
  • Delete an incident

Tasks

  • List tasks
  • Create a task
  • Update a task
  • Delete a task

Events 4HSE can send to a Tray.ai webhook trigger

  • Person created
  • Person updated
  • Person deleted
  • Action subscription created
  • Action subscription deleted
  • Certificate created
  • Certificate updated
  • Certificate deleted
  • Certificate action created
  • Certificate action updated
  • Certificate action deleted

Checked against 4HSE's own documentation on 2026-10-22

dev.4hse.com/guides/using-rest-api

Frequently asked questions

What can a Tray.ai workflow do in 4HSE?

The 4HSE API documents 22 actions across 5 resources (People, Offices, Certificates, Incidents, Tasks). For example: List people; List offices; List certificates. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with 4HSE?

The 4HSE API uses OAuth 2.0, a bearer token, and an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which 4HSE events can start a Tray.ai workflow?

4HSE sends 11 events to a webhook URL, for example: Person created; Person updated; Person deleted; Action subscription created; Action subscription deleted; Certificate created; Certificate updated; Certificate deleted. A Tray.ai webhook trigger receives them and starts a workflow.

See 4HSE working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.