Clients

TypeScript SDK

@kynth/api — zero-dependency fetch client, generated from the same catalog the API serves, typed end to end.

Install

npm i @kynth/api

Use

One method per endpoint, camel-cased. async: true narrows the return type to a job handle; waitForJob resolves on success or failure (a failed job is never charged).

app.ts
import { KynthCore } from "@kynth/api";

const kynth = new KynthCore({ apiKey: process.env.KYNTH_API_KEY! });

// Sync call
const invoice = await kynth.invoice({ data: pdfBase64 });

// Async job with polling handled for you
const job = await kynth.parse({ data: bigPdfBase64, async: true });
const result = await kynth.waitForJob(job.jobId);

Every method's snippet, with a real example body, lives on its collection guide.