Build with Midday
Use Midday's SDKs to integrate financial data, insights, and workflows into your product with just a few lines of code.
Build with Midday
Use Midday'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 Midday'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 @midday-ai/sdkbun add @midday-ai/sdkpnpm add @midday-ai/sdkyarn add @midday-ai/sdkExample:
import { Midday } from "@midday-ai/sdk";
const midday = new Midday({
security: {
oauth2: process.env["MIDDAY_OAUTH2"] ?? "",
},
});
async function run() {
const result = await midday.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 Midday 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.