Skip to main content
Factify provides official SDKs that wrap the REST API with typed methods, automatic pagination, file upload helpers, and built-in retries.

Available SDKs

TypeScript

@factify/sdk on npm. Supports Node.js 18+, Bun, and Deno. Full TypeScript types, async iterators for pagination, and tree-shakeable standalone functions.

Python

factify on PyPI. Supports Python 3.8+. Sync and async clients, context manager support, and Pydantic models.

Quick Comparison

import { Factify } from "@factify/sdk";

const factify = new Factify({
  bearerAuth: process.env.FACTIFY_KEY,
});

// List documents with auto-pagination
const result = await factify.documents.list({ pageSize: 10 });
for await (const page of result) {
  console.log(page.documents);
}

// Upload a document
const doc = await factify.documents.create({
  title: "Q4 Report",
  payload: {
    fileName: "report.pdf",
    content: await openAsBlob("./report.pdf"),
  },
});
Both SDKs are generated from the same OpenAPI specification, ensuring consistent behavior and up-to-date coverage of all API endpoints.