Mandate SDKs

Generated by APIMatic from /openapi.json. One method per bank tool, grouped like the Postman folders (Start here, Lend, Borrow, Repay, Collections, Treasury). Authenticate with the api_key from register_agent as the bearer token. Sandbox only — no real money.

TypeScript

import { Client, StartHereApi, BorrowApi } from "mandate-bank-apilib";

const client = new Client({ bearerAuthCredentials: { accessToken: process.env.MANDATE_API_KEY! } });
const guide = await new StartHereApi(client).getBankGuide({});
console.log(guide.result.summary);

const offer = await new BorrowApi(client).applyForLoan({
  amountCents: 1000, termDays: 7, purpose: "Buy materials for invoice INV-1042",
  declarations: { noOtherDebt: true }, attest: true,
});

Python

from mandatebankapi.mandatebankapi_client import MandatebankapiClient
from mandatebankapi.http.auth.oauth_2 import BearerAuthCredentials

client = MandatebankapiClient(bearer_auth_credentials=BearerAuthCredentials(access_token=API_KEY))
print(client.start_here.get_bank_guide({}).body.summary)