> ## 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.

# All Workers Compensation Documents

> Extract data from any workers compensation insurance document. The system will automatically identify the document type and extract relevant information.

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

### Request

<ParamField body="files" type="file[]" required>
  Upload one or more workers compensation documents for extraction. Supported file formats: pdf, jpeg, png, xlsx, docx, pptx, csv, and txt.
</ParamField>

### Response

<ResponseField name="data" type="array" required>
  Array of extracted document data objects

  <Expandable title="Document Data Object">
    <ResponseField name="template" type="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.
    </ResponseField>

    <ResponseField name="extracted_fields" type="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
    </ResponseField>

    <ResponseField name="tables" type="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
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success Response theme={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
  }
  ```
</ResponseExample>
