Builder integration
This guide wires an agent into Obsigna verification. It assumes you have read the Quickstart.
1. Install the SDK
pnpm add @obsigna/sdk-client2. Configure the client
import { createClient } from "@obsigna/sdk-client";
export const obsigna = createClient({
baseUrl: process.env.OBSIGNA_API_BASE,
});3. Verify before acting
const decision = await obsigna.verify({
passport,
action: { type: "payment", amountMinor: 1000, currency: "EUR" },
});
if (!decision.allowed) {
throw new Error(decision.reason);
}4. Inspect the receipt
Every allowed decision carries a receipt id you can resolve on the Trust surface.