Skip to main content

Docling API

Docling is an advanced document processing framework that simplifies parsing diverse document formats — including PDFs, DOCX, PPTX, XLSX, HTML, images, and audio files — with sophisticated understanding of document structure, layout, tables, and formulas. It provides a unified representation format and seamless integrations with the AI ecosystem. We use Docling for secure document processing in Tinfoil.

API Examples

Here’s an example of how to use the Docling API with the Node SDK:
Tinfoil’s document upload service uses Docling and supports all docling API parameters.See the docling reference for more details.
import { SecureClient } from 'tinfoil'
import fs from 'fs'

const client = new SecureClient()

const formData = new FormData()
formData.append('files', fs.createReadStream('doc.pdf'))

const response = await client.fetch('/v1/convert/file', {
  method: 'POST',
  body: formData,
})

const result = await response.json()
console.log(result)

Attestation

The document upload API uses the same attestation mechanism as our other services. See our attestation architecture and predicate documentation for more details.