Official SDKs

Use an official SDK to integrate Tracore into your application.

Installation

npm install @tracore/sdk

Quick example

import { TracoreClient } from "@tracore/sdk";

const client = new TracoreClient({
  apiKey: process.env.TRACORE_API_KEY!,
});

const run = await client.extract("my-workspace", "invoice", {
  file: new Blob([buffer], { type: "application/pdf" }),
  fileName: "invoice.pdf",
  poll: true,
});

console.log(run.result);

See the Quickstart for a complete walkthrough.