General Endpoint
curl --request POST \
--url https://api.ferofill.com/api/v1/submission/extract \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"files": [
null
]
}
'{
"data": [
{
"template_confidence": 94,
"template": "acord_127_2023",
"processing_time": "2.3s",
"start_page": 1,
"end_page": 2,
"extracted_fields": [
{
"field_name": "applicant_name",
"value": "ABC Transportation Inc",
"confidence": 98,
"location": {"page": 1, "x": 0.1, "y": 0.15, "width": 0.3, "height": 0.02},
"data_type": "text"
}
],
"tables": [
{
"table_id": "vehicle_schedule",
"title": "Schedule of Vehicles",
"confidence": 92,
"location": {"page": 2, "x": 0.05, "y": 0.2, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Vehicle ID", "Year", "Make", "Model", "VIN"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Vehicle ID", "value": "001"},
{"column": "Year", "value": "2022"}
]
}
]
}
}
]
}
],
"error": null
}
API Documentation
General Endpoint
Use the general endpoint when you have multiple lines of business or want automatic document classification.
POST
/
api
/
v1
/
submission
/
extract
General Endpoint
curl --request POST \
--url https://api.ferofill.com/api/v1/submission/extract \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"files": [
null
]
}
'{
"data": [
{
"template_confidence": 94,
"template": "acord_127_2023",
"processing_time": "2.3s",
"start_page": 1,
"end_page": 2,
"extracted_fields": [
{
"field_name": "applicant_name",
"value": "ABC Transportation Inc",
"confidence": 98,
"location": {"page": 1, "x": 0.1, "y": 0.15, "width": 0.3, "height": 0.02},
"data_type": "text"
}
],
"tables": [
{
"table_id": "vehicle_schedule",
"title": "Schedule of Vehicles",
"confidence": 92,
"location": {"page": 2, "x": 0.05, "y": 0.2, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Vehicle ID", "Year", "Make", "Model", "VIN"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Vehicle ID", "value": "001"},
{"column": "Year", "value": "2022"}
]
}
]
}
}
]
}
],
"error": null
}
Requests to the general endpoint will take longer than LOB specific extraction.
Request
Upload one or more documents for extraction. Supported file formats: pdf, jpeg, png, xlsx, docx, pptx, csv, and txt.
{
"data": [
{
"template_confidence": 94,
"template": "acord_127_2023",
"processing_time": "2.3s",
"start_page": 1,
"end_page": 2,
"extracted_fields": [
{
"field_name": "applicant_name",
"value": "ABC Transportation Inc",
"confidence": 98,
"location": {"page": 1, "x": 0.1, "y": 0.15, "width": 0.3, "height": 0.02},
"data_type": "text"
}
],
"tables": [
{
"table_id": "vehicle_schedule",
"title": "Schedule of Vehicles",
"confidence": 92,
"location": {"page": 2, "x": 0.05, "y": 0.2, "width": 0.9, "height": 0.6},
"structure": {
"headers": ["Vehicle ID", "Year", "Make", "Model", "VIN"],
"rows": [
{
"row_index": 0,
"cells": [
{"column": "Vehicle ID", "value": "001"},
{"column": "Year", "value": "2022"}
]
}
]
}
}
]
}
],
"error": null
}
Response
All endpoints return a consistent response structure:Array of extracted document data objects
Show Document Data Object
Show Document Data Object
Confidence score (0-100) for document template identification
Identified document template (e.g., “acord_127_2023”)
Time taken to process the document
First page number of the document
Last page number of the document
Array of extracted field objects with values and locations
Array of extracted table objects with structured data
Error message if processing failed, null if successful
⌘I