All Workers Compensation Documents
curl --request POST \
--url https://api.ferofill.com/api/v1/submission/workers-comp \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"files": [
null
]
}
'import requests
url = "https://api.ferofill.com/api/v1/submission/workers-comp"
payload = { "files": [None] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({files: [null]})
};
fetch('https://api.ferofill.com/api/v1/submission/workers-comp', 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.ferofill.com/api/v1/submission/workers-comp",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'files' => [
null
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ferofill.com/api/v1/submission/workers-comp"
payload := strings.NewReader("{\n \"files\": [\n null\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ferofill.com/api/v1/submission/workers-comp")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"files\": [\n null\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ferofill.com/api/v1/submission/workers-comp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"files\": [\n null\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"template_confidence": 96,
"template": "acord_130_2023",
"processing_time": "2.5s",
"start_page": 1,
"end_page": 3,
"extracted_fields": [
{
"field_name": "employer_name",
"value": "Construction Solutions Inc",
"confidence": 99,
"location": {"page": 1, "x": 0.15, "y": 0.12, "width": 0.3, "height": 0.02},
"data_type": "text"
},
{
"field_name": "total_employees",
"value": "45",
"confidence": 97,
"location": {"page": 1, "x": 0.6, "y": 0.35, "width": 0.05, "height": 0.02},
"data_type": "number"
}
],
"tables": [
{
"table_id": "payroll_by_class_code",
"title": "Payroll by Classification",
"confidence": 94,
"location": {"page": 2, "x": 0.05, "y": 0.15, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Class Code", "Classification", "Payroll", "Rate", "Premium"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Class Code", "value": "5645"},
{"column": "Classification", "value": "Carpentry"},
{"column": "Payroll", "value": "850000"},
{"column": "Rate", "value": "12.50"},
{"column": "Premium", "value": "10625"}
]
}
]
}
}
]
}
],
"error": null
}
Workers' Compensation
All Workers Compensation Documents
Extract data from any workers compensation insurance document. The system will automatically identify the document type and extract relevant information.
POST
/
api
/
v1
/
submission
/
workers-comp
All Workers Compensation Documents
curl --request POST \
--url https://api.ferofill.com/api/v1/submission/workers-comp \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"files": [
null
]
}
'import requests
url = "https://api.ferofill.com/api/v1/submission/workers-comp"
payload = { "files": [None] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({files: [null]})
};
fetch('https://api.ferofill.com/api/v1/submission/workers-comp', 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.ferofill.com/api/v1/submission/workers-comp",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'files' => [
null
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ferofill.com/api/v1/submission/workers-comp"
payload := strings.NewReader("{\n \"files\": [\n null\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ferofill.com/api/v1/submission/workers-comp")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"files\": [\n null\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ferofill.com/api/v1/submission/workers-comp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"files\": [\n null\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"template_confidence": 96,
"template": "acord_130_2023",
"processing_time": "2.5s",
"start_page": 1,
"end_page": 3,
"extracted_fields": [
{
"field_name": "employer_name",
"value": "Construction Solutions Inc",
"confidence": 99,
"location": {"page": 1, "x": 0.15, "y": 0.12, "width": 0.3, "height": 0.02},
"data_type": "text"
},
{
"field_name": "total_employees",
"value": "45",
"confidence": 97,
"location": {"page": 1, "x": 0.6, "y": 0.35, "width": 0.05, "height": 0.02},
"data_type": "number"
}
],
"tables": [
{
"table_id": "payroll_by_class_code",
"title": "Payroll by Classification",
"confidence": 94,
"location": {"page": 2, "x": 0.05, "y": 0.15, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Class Code", "Classification", "Payroll", "Rate", "Premium"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Class Code", "value": "5645"},
{"column": "Classification", "value": "Carpentry"},
{"column": "Payroll", "value": "850000"},
{"column": "Rate", "value": "12.50"},
{"column": "Premium", "value": "10625"}
]
}
]
}
}
]
}
],
"error": null
}
Processing time may vary based on document complexity. For faster processing when you know the specific document type, use the template-specific endpoints.
Request
file[]
required
Upload one or more workers compensation documents for extraction. Supported file formats: pdf, jpeg, png, xlsx, docx, pptx, csv, and txt.
Response
array
required
Array of extracted document data objects
Show Document Data Object
Show Document Data Object
string
Identified document template. Supported templates: acord_130_2023, payroll_report, loss_run_workers_comp, experience_modification_worksheet, class_code_assignment, safety_program,
certificate_of_insurance.
array
Array of extracted field objects. Fields vary by document type but commonly include: employer_name, business_address, fein, policy_number, policy_period, total_employees, annual_payroll,
class_codes, rates, premium_amount, claim_date, claim_amount, experience_mod, safety_rating
array
Array of extracted table objects. Common tables include: payroll_by_class_code, employee_schedule, claims_history, experience_rating_worksheet, class_code_details, coverage_summary,
safety_violations
{
"data": [
{
"template_confidence": 96,
"template": "acord_130_2023",
"processing_time": "2.5s",
"start_page": 1,
"end_page": 3,
"extracted_fields": [
{
"field_name": "employer_name",
"value": "Construction Solutions Inc",
"confidence": 99,
"location": {"page": 1, "x": 0.15, "y": 0.12, "width": 0.3, "height": 0.02},
"data_type": "text"
},
{
"field_name": "total_employees",
"value": "45",
"confidence": 97,
"location": {"page": 1, "x": 0.6, "y": 0.35, "width": 0.05, "height": 0.02},
"data_type": "number"
}
],
"tables": [
{
"table_id": "payroll_by_class_code",
"title": "Payroll by Classification",
"confidence": 94,
"location": {"page": 2, "x": 0.05, "y": 0.15, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Class Code", "Classification", "Payroll", "Rate", "Premium"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Class Code", "value": "5645"},
{"column": "Classification", "value": "Carpentry"},
{"column": "Payroll", "value": "850000"},
{"column": "Rate", "value": "12.50"},
{"column": "Premium", "value": "10625"}
]
}
]
}
}
]
}
],
"error": null
}
⌘I