SDKs and tooling

Node.js SDK for document portals.

Use Node.js to upload customer documents, start extraction jobs, verify webhook callbacks, and return validated JSON to product workflows.

When to use Node.js

Node.js is a natural fit for customer-facing upload portals, SaaS products, workflow APIs, serverless functions, and webhook receivers.

Production notes

Keep uploads out of the browser when documents are sensitive, sign webhook endpoints, store job IDs idempotently, and expose review state to users when fields need attention.

import { Cogneris } from "@cogneris/sdk";

const client = new Cogneris({ apiKey: process.env.COGNERIS_API_KEY });
const job = await client.extraction.createAsync({
  template: "bank_statement",
  file: "./statement.pdf",
  webhookUrl: "https://app.example.com/webhooks/cogneris-events"
});

console.log(job.id);

Extract

Turn PDFs, scans, photos, and document packets into structured records.

Validate

Apply confidence thresholds, business rules, and cross-document checks.

Route

Send clean results downstream and uncertain fields to review queues.

Related pages