Saltmarsh Supply Co.
18 Quay Road, Port Ellen
Bill to Larkfield Ltd, Accounts Payable
| Item | Qty | Amount |
|---|---|---|
| Steel shelving units | 4 | 2,400.00 |
| Installation | 1 | 1,200.00 |
| Freight | 1 | 712.50 |
Total due$4,312.50
Page 1 of 1
The same fields out of every document, checked against the page they came from.
Pull the same fields out of every document as JSON, using a schema you define, then check each value against its source page. Add an outputSchema to a project pipeline, and DocSlurp writes a :structured JSON artifact for each document it processes, next to the Markdown, HTML and page images.
Saltmarsh Supply Co.
18 Quay Road, Port Ellen
Bill to Larkfield Ltd, Accounts Payable
| Item | Qty | Amount |
|---|---|---|
| Steel shelving units | 4 | 2,400.00 |
| Installation | 1 | 1,200.00 |
| Freight | 1 | 712.50 |
Total due$4,312.50
Page 1 of 1
invoice.pdf, structured JSON
"fields": { "invoiceNumber": { "value": "INV-2041", "confidence": 0.97 }, "issuedOn": { "value": "2026-03-12", … }, "totalDue": { "value": 4312.5, "confidence": 0.95 } }
{
"type": "object",
"properties": {
"fiscalYear": { "type": "string" },
"revenueUsdM": { "type": "number" },
"operatingMarginPct": { "type": "number" }
}
}outputSchema in the project pipeline.fields with its value, a confidence score and the page it was found on.Artifactgrowth-plan-2027.pdf:structured
FY2027 Growth PlanSection 4
4.3 FY2027 projection
FY2027 revenue is projected at $48.2M, 12% ahead of plan.
12
growth-plan-2027.pdfp. 12 where revenueUsdM came from
Each field also carries a policy (auto-accept, needs-review or reject) and any validation errors. The values above are illustrative; the shape is the real artifact, shortened.
Over HTTP, GET /v1/documents/:id/structured returns { structured, uri }, or 404 when the document has no structured artifact. Server keys need the artifacts scope. Structured fields cost 1 credit per started 10 pages per document.
Set outputSchema in the project pipeline to a JSON Schema object that lists the fields you want.
Upload from the dashboard, SDK, CLI or HTTP API, and wait for the run to finish.
Open the document from the project, then choose Structured JSON in its Preview tab.
Search or ask about a field. Citations point to the page, with highlighted regions when available.
Search results and chat responses carry citations with page numbers, heading paths, and optional regionBoxes. Open a result to see the page image with the cited regions highlighted.
Glossary
Open the explainer →