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

# Loss Run

export const processingNote_0 = "This endpoint processes workers compensation loss run reports for claims history analysis and experience rating."

export const templateDescription_0 = "Returns 'loss_run_workers_comp' for workers compensation claims history documents"

export const extractedFields_0 = "employer_name, policy_number, policy_period_from, policy_period_to, carrier_name, total_claims, total_incurred, total_paid, open_claims_count, closed_claims_count, experience_mod"

export const tableNames_0 = "claims_summary, claim_details, monthly_loss_detail, loss_by_body_part, loss_by_cause_of_injury"

export const successResponse_0 = undefined

export const failedResponse_0 = undefined

<Note>
  {processingNote_0}
</Note>

### Request

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

### Response

All endpoints return a consistent response structure:

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

  <Expandable title="Document Data Object">
    <ResponseField name="template_confidence" type="number">
      Confidence score (0-100) for document template identification
    </ResponseField>

    <ResponseField name="template" type="string">
      {templateDescription_0}
    </ResponseField>

    <ResponseField name="processing_time" type="string">
      Time taken to process the document
    </ResponseField>

    <ResponseField name="start_page" type="number">
      First page number of the document
    </ResponseField>

    <ResponseField name="end_page" type="number">
      Last page number of the document
    </ResponseField>

    <ResponseField name="extracted_fields" type="array">
      Array of extracted field objects. Common fields include: {extractedFields_0}
    </ResponseField>

    <ResponseField name="tables" type="array">
      Array of extracted table objects. Common tables include: {tableNames_0}
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="error" type="string | null">
  Error message if processing failed, null if successful
</ResponseField>

<ResponseExample>
  {successResponse_0}

  {failedResponse_0}
</ResponseExample>
