TypeScript SDK
Using the REST API from TypeScript
Section titled “Using the REST API from TypeScript”const BASE = "https://api.nuez.app/v1";const KEY = "nz_sk_live_YOUR_KEY_HERE";
const headers = { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json",};
// Balanceconst balance = await fetch(`${BASE}/balance`, { headers }).then(r => r.json());console.log(balance.balance);
// Transferconst transfer = await fetch(`${BASE}/transfers`, { method: "POST", headers: { ...headers, "Idempotency-Key": "inv-2026-04-001" }, body: JSON.stringify({ amount: 5000, destination: "proveedor.empresa", description: "Invoice #42", }),}).then(r => r.json());console.log(transfer);Join the waitlist to be notified when the TypeScript SDK is available.