curl --request GET \
--url https://api.effectiveai.app/api/v2/insurance/osha/case-details/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.effectiveai.app/api/v2/insurance/osha/case-details/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.effectiveai.app/api/v2/insurance/osha/case-details/{id}', 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.effectiveai.app/api/v2/insurance/osha/case-details/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.effectiveai.app/api/v2/insurance/osha/case-details/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.effectiveai.app/api/v2/insurance/osha/case-details/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/osha/case-details/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"establishmentId": "<string>",
"establishmentName": "<string>",
"ein": "<string>",
"companyName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"naicsCode": "<string>",
"naicsYear": 123,
"industryDescription": "<string>",
"establishmentType": 123,
"size": 123,
"annualAverageEmployees": 123,
"totalHoursWorked": 123,
"caseNumber": "<string>",
"jobDescription": "<string>",
"socCode": "<string>",
"socDescription": "<string>",
"socProbability": 123,
"socReviewed": "<string>",
"unexpectedNaicsSocCombo": "<string>",
"dateOfIncident": "<string>",
"incidentOutcome": 123,
"dafwNumAway": 123,
"djtrNumTr": 123,
"typeOfIncident": 123,
"timeStartedWork": "<string>",
"timeOfIncident": "<string>",
"timeUnknown": 123,
"dateOfDeath": "<string>",
"createdTimestamp": "<string>",
"yearOfFiling": 123,
"yearFilingFor": 123,
"newIncidentLocation": "<string>",
"newIncidentDescription": "<string>",
"newNarBeforeIncident": "<string>",
"newNarWhatHappened": "<string>",
"newNarInjuryIllness": "<string>",
"newNarObjectSubstance": "<string>",
"natureCodePred": "<string>",
"natureTitlePred": "<string>",
"partCodePred": "<string>",
"partTitlePred": "<string>",
"eventCodePred": "<string>",
"eventTitlePred": "<string>",
"sourceCodePred": "<string>",
"sourceTitlePred": "<string>",
"secSourceCodePred": "<string>",
"secSourceTitlePred": "<string>",
"employerId": "<string>",
"siteId": "<string>",
"sourceFile": {
"url": "<string>",
"sha256": "<string>",
"retrievedAt": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}Get an OSHA case detail
OSHA ITA case detail from Forms 300 and 301: one row per injury or illness, with the job, outcome and the employer’s own narrative. OSHA’s rows as published, under OSHA’s own column names in camelCase. Each row also carries the employerId and siteId Effective matched it to (null if unmatched) and the OSHA file it came from. Needs the OSHA dataset enabled for your organization. Read-only; private, no-store.
curl --request GET \
--url https://api.effectiveai.app/api/v2/insurance/osha/case-details/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.effectiveai.app/api/v2/insurance/osha/case-details/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.effectiveai.app/api/v2/insurance/osha/case-details/{id}', 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.effectiveai.app/api/v2/insurance/osha/case-details/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.effectiveai.app/api/v2/insurance/osha/case-details/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.effectiveai.app/api/v2/insurance/osha/case-details/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/osha/case-details/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"establishmentId": "<string>",
"establishmentName": "<string>",
"ein": "<string>",
"companyName": "<string>",
"streetAddress": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"naicsCode": "<string>",
"naicsYear": 123,
"industryDescription": "<string>",
"establishmentType": 123,
"size": 123,
"annualAverageEmployees": 123,
"totalHoursWorked": 123,
"caseNumber": "<string>",
"jobDescription": "<string>",
"socCode": "<string>",
"socDescription": "<string>",
"socProbability": 123,
"socReviewed": "<string>",
"unexpectedNaicsSocCombo": "<string>",
"dateOfIncident": "<string>",
"incidentOutcome": 123,
"dafwNumAway": 123,
"djtrNumTr": 123,
"typeOfIncident": 123,
"timeStartedWork": "<string>",
"timeOfIncident": "<string>",
"timeUnknown": 123,
"dateOfDeath": "<string>",
"createdTimestamp": "<string>",
"yearOfFiling": 123,
"yearFilingFor": 123,
"newIncidentLocation": "<string>",
"newIncidentDescription": "<string>",
"newNarBeforeIncident": "<string>",
"newNarWhatHappened": "<string>",
"newNarInjuryIllness": "<string>",
"newNarObjectSubstance": "<string>",
"natureCodePred": "<string>",
"natureTitlePred": "<string>",
"partCodePred": "<string>",
"partTitlePred": "<string>",
"eventCodePred": "<string>",
"eventTitlePred": "<string>",
"sourceCodePred": "<string>",
"sourceTitlePred": "<string>",
"secSourceCodePred": "<string>",
"secSourceTitlePred": "<string>",
"employerId": "<string>",
"siteId": "<string>",
"sourceFile": {
"url": "<string>",
"sha256": "<string>",
"retrievedAt": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"accessUrl": "<string>"
}Authorizations
Effective API key. Send Authorization: Bearer sk-eai-...
Path Parameters
OSHA’s ID for the row.
^[A-Za-z0-9_-]{1,40}$Response
One case detail.
One injury or illness case from ITA Form 300 and 301 case detail. Fields are OSHA’s own column names in camelCase, with values as OSHA publishes them.
OSHA’s case detail ID.
Employer Effective matched this row to, or null if it could not place it.
^emp_[0-9a-f]{20}$Site Effective matched this row to, or null.
^site_[0-9a-f]{20}$Show child attributes
Show child attributes