Citations

See the page and box each value was read from, for no extra credits.

Add citations=true to a parse, as a form field or a JSON key. The response is the same JSON plus a citations object keyed by each value's path. Works for PDFs and images.

POST /api/v1/parse (multipart, citations=true)
curl -X POST https://doxtract.manoonlabs.com/api/v1/parse \
  -H "Authorization: Bearer mldxt_..." \
  -F file=@invoice.pdf \
  -F schema=invoice \
  -F citations=true

One citations entry

pagenumber | nullRequired: Always
The page the value was read from, counting from 1. An image is page 1. null for a text document.
textstringRequired: Always
The printed text the value was read from, as it appears on the page.
bbox[x0, y0, x1, y1] | nullRequired: Always
The box around that text, as fractions of the page width and height from the top left, so it fits any render size. null when no box could be placed, and always null for text documents.
statusstringRequired: Always
How well the cited text was checked against the document. See the statuses below.
source"text_layer" | "model" | nullRequired: Always
text_layer when the box was measured from the PDF's own text, model when it was read from a scan or an image, null when there is no box.

Status

StatusMeaning
verifiedThe cited text was found on the page and holds the value.
fuzzyA close match was found, for example with scan noise or a reflowed line.
mismatchThe text was found, but the value does not appear in it. Worth a human look.
other_pageThe text was found, but on a different page than cited. page points to where it was found.
unverifiedThe text was not found in the document's own text, for example on a scan or photo. The box, if any, is the model's reading.

Notes

  • citations is off by default. Send citations: true in a JSON body, or citations=true as a multipart field. MCP parse_document takes the same citations argument.
  • The Playground always asks for citations, so you can click a value to see its box on the page.
  • Keys are the path of each value, such as vendor or lineItems[0].amount. A null value, or one that could not be placed, has no entry.
  • Works for PDFs (digital and scanned) and for PNG and JPEG images. Text documents get the cited text with no page or box.
  • Same credits as a plain parse. Citations work together with export.