All General Liability Documents
curl --request POST \
--url https://api.ferofill.com/api/v1/submission/general-liability \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"files": [
null
]
}
'import requests
url = "https://api.ferofill.com/api/v1/submission/general-liability"
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/general-liability', 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/general-liability",
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/general-liability"
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/general-liability")
.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/general-liability")
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": 97,
"template": "acord_126_gl_2023",
"processing_time": "2.1s",
"start_page": 1,
"end_page": 3,
"extracted_fields": [
{
"field_name": "applicant_name",
"value": "Premier Construction Services LLC",
"confidence": 99,
"location": {"page": 1, "x": 0.15, "y": 0.12, "width": 0.35, "height": 0.02},
"data_type": "text"
},
{
"field_name": "annual_revenue",
"value": "2500000",
"confidence": 96,
"location": {"page": 1, "x": 0.6, "y": 0.35, "width": 0.12, "height": 0.02},
"data_type": "currency"
}
],
"tables": [
{
"table_id": "operations_schedule",
"title": "Schedule of Operations",
"confidence": 94,
"location": {"page": 2, "x": 0.05, "y": 0.15, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Operation", "Revenue", "Percentage", "Location", "Description"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Operation", "value": "Commercial Construction"},
{"column": "Revenue", "value": "1800000"},
{"column": "Percentage", "value": "72%"},
{"column": "Location", "value": "Texas, Oklahoma"},
{"column": "Description", "value": "Office buildings, retail centers"}
]
}
]
}
}
]
}
],
"error": null
}
General Liability
All General Liability Documents
Extract data from any general liability insurance document. The system will automatically identify the document type and extract relevant information.
POST
/
api
/
v1
/
submission
/
general-liability
All General Liability Documents
curl --request POST \
--url https://api.ferofill.com/api/v1/submission/general-liability \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"files": [
null
]
}
'import requests
url = "https://api.ferofill.com/api/v1/submission/general-liability"
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/general-liability', 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/general-liability",
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/general-liability"
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/general-liability")
.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/general-liability")
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": 97,
"template": "acord_126_gl_2023",
"processing_time": "2.1s",
"start_page": 1,
"end_page": 3,
"extracted_fields": [
{
"field_name": "applicant_name",
"value": "Premier Construction Services LLC",
"confidence": 99,
"location": {"page": 1, "x": 0.15, "y": 0.12, "width": 0.35, "height": 0.02},
"data_type": "text"
},
{
"field_name": "annual_revenue",
"value": "2500000",
"confidence": 96,
"location": {"page": 1, "x": 0.6, "y": 0.35, "width": 0.12, "height": 0.02},
"data_type": "currency"
}
],
"tables": [
{
"table_id": "operations_schedule",
"title": "Schedule of Operations",
"confidence": 94,
"location": {"page": 2, "x": 0.05, "y": 0.15, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Operation", "Revenue", "Percentage", "Location", "Description"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Operation", "value": "Commercial Construction"},
{"column": "Revenue", "value": "1800000"},
{"column": "Percentage", "value": "72%"},
{"column": "Location", "value": "Texas, Oklahoma"},
{"column": "Description", "value": "Office buildings, retail centers"}
]
}
]
}
}
]
}
],
"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 general liability 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_126_gl_2023, supplemental_application, loss_run_general_liability, operations_questionnaire, product_liability_supplement,
contractors_supplement, liquor_liability_application, professional_liability_application.
array
Array of extracted field objects. Fields vary by document type but commonly include: applicant_name, business_address, business_description, years_in_business, number_of_employees,
annual_revenue, policy_limits, aggregate_limits, products_completed_operations, premises_liability, claim_date, claim_amount, retention_amount
array
Array of extracted table objects. Common tables include: operations_schedule, location_schedule, products_schedule, subcontractor_schedule, claims_history, coverage_summary, premium_breakdown,
exposure_analysis
{
"data": [
{
"template_confidence": 97,
"template": "acord_126_gl_2023",
"processing_time": "2.1s",
"start_page": 1,
"end_page": 3,
"extracted_fields": [
{
"field_name": "applicant_name",
"value": "Premier Construction Services LLC",
"confidence": 99,
"location": {"page": 1, "x": 0.15, "y": 0.12, "width": 0.35, "height": 0.02},
"data_type": "text"
},
{
"field_name": "annual_revenue",
"value": "2500000",
"confidence": 96,
"location": {"page": 1, "x": 0.6, "y": 0.35, "width": 0.12, "height": 0.02},
"data_type": "currency"
}
],
"tables": [
{
"table_id": "operations_schedule",
"title": "Schedule of Operations",
"confidence": 94,
"location": {"page": 2, "x": 0.05, "y": 0.15, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Operation", "Revenue", "Percentage", "Location", "Description"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Operation", "value": "Commercial Construction"},
{"column": "Revenue", "value": "1800000"},
{"column": "Percentage", "value": "72%"},
{"column": "Location", "value": "Texas, Oklahoma"},
{"column": "Description", "value": "Office buildings, retail centers"}
]
}
]
}
}
]
}
],
"error": null
}
⌘I