> ## 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 general liability loss run reports for claims history analysis and experience rating."

export const templateDescription_0 = "Returns 'loss_run_general_liability' for general liability claims history documents"

export const extractedFields_0 = "insured_name, policy_number, loss_run_period_from, loss_run_period_to, carrier_name, total_claims, total_incurred, total_paid, largest_loss, bodily_injury_claims, property_damage_claims, open_claims_count"

export const tableNames_0 = "claims_summary, claim_details, loss_by_type, loss_by_location, loss_trend_analysis"

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>
