Integration API

Connect ShieldSphere to the systems you already use

Pull your safety data into a dashboard, push observations in from the field, or keep a roster in sync. One REST API, one key.

How it works

The API runs in one direction on purpose: other systems can send us records and read our data. They cannot edit or delete anything.

That means there is never a question about which system holds the truth. Corrections happen in ShieldSphere, where the audit trail lives. A compliance record that a third-party integration could silently rewrite is not much of a record.

Getting a key

An organization owner creates keys under Settings → Developers. You will see the key once, at creation.

Send it on every request:

curl https://www.shieldspheresafety.com/api/v1/profiles \
  -H "Authorization: Bearer ss_live_your_key_here"

Each key carries specific permissions and can be limited to particular locations, which is useful if a system only covers one site. The Integration API is part of our enterprise plan; talk to us if you do not see the tab.

Start with locations

Almost everything is scoped to a location, so fetch those first and hold onto the ids.

GET /api/v1/profiles

{
  "data": [
    {
      "id": "3f2c...",
      "name": "North Plant",
      "state": "OH",
      "is_corporate": false
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Skip anything with is_corporate: true. Those are reporting umbrellas, not real sites, and they will reject records.

Reading data

Seven collections, all paginated the same way. Every one except locations can also be read one record at a time by id:

  • /api/v1/employees and /api/v1/employees/{id}
  • /api/v1/incidents and /api/v1/incidents/{id}: OSHA recordables by default; add report_type=near_miss for near misses. Read by id returns either type.
  • /api/v1/assets and /api/v1/assets/{id}
  • /api/v1/chemicals and /api/v1/chemicals/{id}
  • /api/v1/inspections and /api/v1/inspections/{id}: inspections and their findings
  • /api/v1/scans and /api/v1/scans/{id}: hazard scans and findings
  • /api/v1/profiles

Follow next_cursor until has_more is false. Cursors are opaque, so pass them back unchanged rather than building your own.

For an incremental sync, pass updated_since with the timestamp of your last run.

GET /api/v1/incidents?updated_since=2026-08-01T00:00:00Z&limit=100
Archived and unreviewed records never appear. Deleted incidents, submissions still awaiting a safety manager's review, retired assets, and terminated employees are all filtered out by default. Privacy-case incidents come back with the employee name withheld, as required by OSHA.

Records come back oldest first. That ordering is what makes updated_since reliable for incremental sync. A stable order means a cursor never skips or repeats a row while you page.

Use id as your identifier, not case_number. OSHA case numbers are sequential per location per year, so two of your sites will both have a 2026-001. Treat case_number as a display label.

Sending records in

POST to the same collection paths. Always send an Idempotency-Key. If the request times out and you retry, the same key returns the original record instead of creating a second one.

curl -X POST https://www.shieldspheresafety.com/api/v1/incidents \
  -H "Authorization: Bearer ss_live_..." \
  -H "Idempotency-Key: your-system-incident-4471" \
  -H "Content-Type: application/json" \
  -d '{
    "location_id": "3f2c...",
    "date_of_injury": "2026-08-04",
    "description_of_injury": "Laceration to left hand from sheet metal edge",
    "employee_name": "J. Rivera",
    "classification": "injury",
    "days_away_flag": true,
    "num_days_away": 3
  }'

location_id, date_of_injury, description_of_injury, employee_name, and classification are required. Classification is the OSHA 300 column M value: injury, skin_disorder, respiratory_condition, poisoning, hearing_loss, or other_illness.

Idempotency matters most on incidents. OSHA case numbers are sequential within a year, so a duplicate consumes a number that cannot be reclaimed. Deleting the extra record leaves a permanent gap in the 300 log.

You do not need the full OSHA 301 up front. Send what you have and finish the record in ShieldSphere; the regulation allows seven days.

Sending inspections in

If your team already runs inspections somewhere else (a spreadsheet tool, a forms app, your own system), send them over and they land in the dashboard alongside inspections done in ShieldSphere, counting toward the same trends.

An inspection and its findings go in a single request. There is no endpoint for adding findings afterward, on purpose: a record that arrives in pieces shows up half-built in your trend charts while you are still sending it.

curl -X POST https://www.shieldspheresafety.com/api/v1/inspections \
  -H "Authorization: Bearer ss_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "location_id": "3f2c...",
    "inspection_date": "2026-08-21",
    "inspector_name": "R. Delgado",
    "source_app": "smartsheet",
    "client_key": "sheet-4471-row-88",
    "findings": [
      {
        "description": "Extension cord run through a doorway in the pack line",
        "priority": "high",
        "status": "open",
        "corrective_action_recommendation": "Reroute overhead or install a floor channel"
      },
      {
        "description": "Eyewash station blocked by pallets",
        "priority": "critical",
        "external_id": "row-88-b"
      }
    ]
  }'

location_id and inspection_date are required, and every finding needs a description and a priority. Everything else is optional.

Priority does not have to match our wording. We accept the labels these systems actually use: critical, high, medium, low, plus P1–P4, 1–4, red/amber/green, and words like severe, major, and minor. Finding status is just as forgiving: closed, completed, and fixed all mean resolved.

A priority we do not recognize fails the whole request. We never guess a middle value, because a mis-mapped column that silently files every row as medium looks like it worked, and by the time the trend chart looks wrong, the history is already bad. You will see the rejection on your first row, while the mapping is still easy to fix.

Dates must be YYYY-MM-DD. We reject 03/04/2026 rather than guessing, since it means March 4 in one country and April 3 in another.

Imported inspections arrive finalized, because they record something that already happened. They count in your trends straight away. Pass "status": "draft" if you are staging something that is not finished yet. Drafts stay out of the charts.

Send a client_key (your own row or record id) and a re-run of the same sync returns the original inspection instead of creating a duplicate. Unlike Idempotency-Key, it is stored on the record permanently, so it still protects you weeks later.

Read one back with GET /api/v1/inspections/{id} and you get the inspection with all of its findings. The list endpoint returns completed inspections by default; pass status=all to include drafts.

Hazard analysis from the field

Send an observation with a photo and we analyze it against OSHA standards, using the same engine behind our scanner.

Analysis takes longer than an HTTP request should, so this returns a job id immediately.

POST /api/v1/observations
{
  "image_url": "https://your-system.com/photos/abc.jpg",
  "framework": "construction",
  "state": "OH",
  "location_id": "3f2c...",
  "source": "procore",
  "external_id": "obs-99812"
}

→ 202 Accepted
{
  "data": {
    "job_id": "8a1f...",
    "status": "queued",
    "_links": { "self": "/api/v1/jobs/8a1f..." }
  }
}

Poll the job until it finishes:

GET /api/v1/jobs/8a1f...

{
  "data": {
    "status": "succeeded",
    "result": {
      "scan_id": "c07d...",
      "violation_count": 2,
      "overall_risk_level": "high",
      "violations": [
        {
          "hazard_category": "Fall Protection",
          "description": "Worker on leading edge without personal fall arrest",
          "priority": "critical",
          "corrective_action": "Provide and require PFAS above 6 feet"
        }
      ]
    }
  }
}

Send source and external_id and we deduplicate for you. Replaying the same observation will not run a second analysis.

The image URL has to be directly fetchable. We do not follow redirects, so a signed URL that 302s to the real file will be rejected, because a redirect can point somewhere the original URL did not. It must return the image bytes on the first request, over https, from a public host, under 20MB, as JPEG, PNG, GIF, or WebP. If your files sit behind a redirect or need auth headers, resolve the URL on your side first.
Findings are AI-generated. Treat them as a trained observer's first pass, not a compliance determination. Have someone review before acting.

Ergonomics evaluations from video

Send a short video of a task with your own reference (a claim or case number, for example) and get back measured posture: joint angles, range of motion for each side of the body, REBA and RULA screening scores, a measurement quality verdict, and a PDF report. The video is measured on our servers with the same body-tracking model the ShieldSphere app uses. Reports from this endpoint are measurement only: no AI-written commentary is added, and no frame is sent to an AI service.

It takes three calls: register the evaluation, upload the video to the link you are given, then start it. Needs the ergonomics:write scope.

POST /api/v1/ergonomics/evaluations
Idempotency-Key: claim-2026-1042-clip-1
{
  "external_reference": "CLAIM-2026-1042",
  "location_id": "3f2c...",
  "task_label": "Palletizing 40 lb boxes",
  "methods": ["reba", "rula"],
  "evidence_retention": false,
  "video": { "filename": "palletizing.mp4", "mime_type": "video/mp4", "size_bytes": 18234112 }
}

→ 201 Created
{
  "data": {
    "id": "5d0e...",
    "status": "awaiting_upload",
    "external_reference": "CLAIM-2026-1042",
    "upload": {
      "method": "PUT",
      "url": "https://.../object/upload/sign/...",
      "headers": { "Content-Type": "video/mp4" },
      "expires_in_seconds": 7200
    },
    "_links": {
      "self": "/api/v1/ergonomics/evaluations/5d0e...",
      "start": "/api/v1/ergonomics/evaluations/5d0e.../start"
    }
  }
}

PUT the video bytes to upload.url with the header shown, then start the evaluation:

POST /api/v1/ergonomics/evaluations/5d0e.../start

→ 202 Accepted
{ "data": { "id": "5d0e...", "status": "queued" } }

Measurement starts within about two minutes. A two-minute video can take ten minutes or more. Poll the evaluation, or subscribe to the ergonomics.evaluation.completed and ergonomics.evaluation.failed webhooks. Reading needs the ergonomics:read scope.

GET /api/v1/ergonomics/evaluations/5d0e...

{
  "data": {
    "id": "5d0e...",
    "status": "completed",
    "external_reference": "CLAIM-2026-1042",
    "source": { "sha256": "9b1c...", "bytes": 18234112, "filename": "palletizing.mp4" },
    "results": {
      "quality": { "verdict": "measurable", "label": "Measurable", "reasons": [] },
      "scores": {
        "reba": { "peak": { "score": 9, "band": "high", "t": 12.4 }, "median": 5 },
        "rula": { "summary": { "peak": { "score": 6 } } }
      },
      "range_of_motion": [
        { "joint": "trunkFlexion", "label": "Trunk bend (forward)", "side": null,
          "max_deg": 62.3, "max_at_seconds": 12.4, "p90_deg": 48.0 },
        { "joint": "upperArmL", "label": "Upper arm raise", "side": "left",
          "max_deg": 95.1, "max_at_seconds": 30.2, "p90_deg": 71.5 }
      ],
      "integrity": { "status": "pass" },
      "provenance": {
        "measured_by": "server",
        "model": { "name": "MediaPipe Pose Landmarker "full" (BlazePose GHUM 3D)", "sha256": "5134..." },
        "inference": { "delegate": "CPU", "timestamps": "video", "segment_samples": 150 }
      },
      "fingerprints": { "source_sha256": "9b1c...", "measurements_sha256": "e41a..." }
    },
    "_links": { "pdf": "/api/v1/ergonomics/evaluations/5d0e.../pdf" }
  }
}

GET /api/v1/ergonomics/evaluations/{id}/pdf returns the report, and GET /api/v1/ergonomics/evaluations?external_reference=CLAIM-2026-1042 lists every evaluation for a reference. The same evaluation also appears in ShieldSphere for your team.

Video format. Send MP4 with H.264 video, or WebM, up to 250 MB and within your workspace's clip length limit (two minutes by default). HEVC (H.265) video, the default on recent iPhones, cannot be read by the server; export it as "Most Compatible" first. Film one worker, whole body in the frame.
What is kept. We store the measurements and about one still frame per second with faces blurred. The video itself is deleted after it is measured, unless your workspace has turned on keeping originals as evidence and you send evidence_retention: true; then the exact file is kept, with its SHA-256 fingerprint, for your workspace's retention period. The fingerprint identifies the file you sent. It does not show where or when the video was recorded.
REBA and RULA from video are screening scores, not a substitute for an assessment by a qualified ergonomist. A clip that could not be measured well enough is reported as "Not measurable" with the reasons, and carries no headline score.

Webhooks

Rather than polling, register an endpoint under Settings → Developers and we will POST to it when something happens: a scan finishes, an incident or near miss is recorded, an inspection is finalized, a record is created.

Every event arrives in the same envelope. data is a short notice with ids and a few summary fields, so fetch the full record from the matching read endpoint. source says where the record came from: api, app (someone in ShieldSphere), import, portal, or public (a QR code or public link).

{
  "event": "incident.created",
  "created_at": "2026-09-29T14:02:11.000Z",
  "source": "app",
  "data": { "incident_id": "…", "case_number": "2026-014", "location_id": "…" }
}

An endpoint receives records created through the API by default. To also receive records created in ShieldSphere, turn on Include records created in ShieldSphere for that endpoint. It is on for new endpoints. Incidents submitted through the employee portal or incident chat are sent when a safety manager approves them, not when they are submitted.

To get the full record, verify the signature, return a 2xx, then read it with an API key that has the matching read scope:

  • scan.completed → GET /api/v1/scans/{scan_id}
  • inspection.created → GET /api/v1/inspections/{inspection_id}
  • incident.created, near_miss.created → GET /api/v1/incidents/{incident_id}
  • employee.created → GET /api/v1/employees/{employee_id}
  • asset.created → GET /api/v1/assets/{asset_id}
  • chemical.created → GET /api/v1/chemicals/{chemical_id}
  • ergonomics.evaluation.completed → GET /api/v1/ergonomics/evaluations/{evaluation_id}

The key's scopes and location limits still apply, so a webhook can announce a record the key is not allowed to read. That read returns 404, the same as an unknown id.

Verify every request before trusting it:

const expected =
  'sha256=' +
  crypto
    .createHmac('sha256', process.env.SHIELDSPHERE_WEBHOOK_SECRET)
    .update(`${req.headers['x-shieldsphere-timestamp']}.${rawBody}`)
    .digest('hex')

// X-ShieldSphere-Signature carries the 'sha256=' prefix, so compare
// against the whole header value.
const presented = req.headers['x-shieldsphere-signature']

// Compare with crypto.timingSafeEqual, and reject anything
// whose timestamp is more than five minutes old.

Use the raw request body, not a re-serialized object. Re-encoding changes the bytes and the signature will not match. You can send yourself a real test event from Settings → Developers to check your verification before going live. Return a 2xx quickly; we retry with backoff and pause an endpoint that keeps failing. Every delivery carries a stable X-ShieldSphere-Delivery id, so deduplicate on it: like every webhook system, delivery is at-least-once.

Errors

Every error has the same shape. Branch on code, not on the message.

{
  "error": {
    "code": "validation_failed",
    "message": "location_id is required.",
    "request_id": "f19c8a3e-..."
  }
}

Include the request_id if you contact support. It points at the exact request in our logs.

Rate limits are 120 reads and 60 writes per minute per key, in separate buckets, so a bulk sync will not throttle your dashboard. Watch X-RateLimit-Remaining and back off on a 429.

Full reference

The complete OpenAPI 3.1 spec is at /openapi-v1.json. Point your client generator at it.

npx openapi-typescript https://www.shieldspheresafety.com/openapi-v1.json \
  -o src/shieldsphere.d.ts