Skip to navigation

Quickstart

From upload to extraction results in five calls.

This walkthrough takes a document portfolio from raw files to decision-ready extraction results. Each step maps to a resource in the API Reference.

1

Plan an upload

Request presigned URLs for the files you want to ingest.

from infersoft import Infersoft
client = Infersoft(client_id="...", client_secret="...")
upload = client.uploads.create(
files=[{"filename": "lease-portfolio.pdf", "content_type": "application/pdf"}],
)
2

Organize into folders and projects

Create a folder to hold the portfolio and a project for the deal.

folder = client.folders.create(name="2026 Permian Acquisition")
project = client.projects.create(name="Permian Diligence")
3

Start an extraction job

Estimate the credit cost, then start the workflow.

estimate = client.jobs.estimate_credits(document_ids=[...])
job = client.jobs.start(project_id=project.id, document_ids=[...])
4

Track the job

Poll the job until it completes.

status = client.jobs.get(id=job.id)
5

Search the results

Page through extraction results — the SDK auto-paginates.

for result in client.documents.search_extraction_results(page=1, page_size=50):
print(result)

Pagination

Every search endpoint is paginated with page / page_size, and the SDK returns an auto-paginating iterator — just loop over it and the client fetches each page for you until has_more is false.