Build with Buffer
Programmatic access to accounts, payments, FX, and treasury operations. Integrate Buffer into your product in minutes.
Build with Buffer
Use Buffer's SDKs to integrate financial data, insights, and workflows into your product with just a few lines of code.
TypeScript SDK
A fully typed SDK for interacting with Buffer's APIs, designed for modern web and backend applications.
Key features:
- Fully typed with first-class TypeScript support
- Works in Node, Bun, and modern runtimes
- Simple setup and predictable responses
Install:
npm install @buffer-ai/sdkExample:
import { Buffer } from "@buffer-ai/sdk";
const buffer = new Buffer({
security: {
oauth2: process.env["BUFFER_OAUTH2"] ?? "",
},
});
async function run() {
const result = await buffer.oAuth.getOAuthAuthorization({
responseType: "code",
clientId: "mid_client_abcdef123456789",
redirectUri: "https://myapp.com/callback",
scope: "transactions.read invoices.read",
state: "abc123xyz789_secure-random-state-value-with-sufficient-entropy",
codeChallenge: "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
});
console.log(result);
}
run();Build real financial workflows
Use Buffer SDKs to integrate financial data, insights, and workflows into your product.
Sync and analyze transactionsSync and analyze transactions programmatically and build custom analysis tools
Build dashboards and reportsBuild dashboards and reports tailored to your needs
Power internal tools with financial data and integrate into existing workflows
Automate accounting-ready exportsAutomate accounting-ready exports for your accounting software
19191919191919191919191919191919
Secure by default
All SDKs use secure API keys and scoped access to ensure your data stays protected.