Skip to main content
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
  ]
}
'
{
  "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
}

Documentation Index

Fetch the complete documentation index at: https://docs.ferofill.com/llms.txt

Use this file to discover all available pages before exploring further.

Processing time may vary based on document complexity. For faster processing when you know the specific document type, use the template-specific endpoints.

Request

files
file[]
required
Upload one or more workers compensation documents for extraction. Supported file formats: pdf, jpeg, png, xlsx, docx, pptx, csv, and txt.

Response

data
array
required
Array of extracted document data objects
{
  "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
}