Document Upload

Tinfoil provides two ways to upload and process documents securely:

Docling API

We use docling to providing a secure document processing service.

The docling API is available at https://doc-upload.model.tinfoil.sh.

API Examples

Here are some examples of how to use the Docling API through our verified HTTP SDK (minimum version v0.1.6):

Tinfoil’s document upload service uses Docling and supports all docling API parameters.

See the docling reference for more details.

from tinfoil import SecureClient

client = SecureClient(
    enclave="doc-upload.model.tinfoil.sh",
    repo="tinfoilsh/confidential-doc-upload",
)
httpx_client = client.make_secure_http_client()

with open("doc.pdf", "rb") as file:
    response = httpx_client.post(
        "https://doc-upload.model.tinfoil.sh/v1alpha/convert/file", 
        files={'files': file},
        timeout=30,
    )
    print(response.json())

Attestation

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

Chat UI Document Upload

Our chat interface also supports direct document uploads, allowing you to:

  • Upload documents directly in the chat
  • Process documents in real-time
  • Get AI-powered insights while maintaining privacy
  • Keep your documents confidential throughout the entire process

Getting Started

To use document upload in your applications:

  1. For the Docling service, make requests to doc-upload.model.tinfoil.sh
  2. For chat UI uploads, simply use the upload button in the chat interface
  3. All documents are processed securely and privately