SDKs
Official client libraries for every Pleaxy API call, generated from the same OpenAPI spec as the API Reference, so they stay in lockstep with it. Pair them with the guides for concepts like line items, matching, and autonomy.
InstallOfficial
npm install @pleaxy/sdkQuickstart
import { Pleaxy } from "@pleaxy/sdk";
const pleaxy = new Pleaxy({
baseUrl: "https://api.pleaxy.ai",
apiKey: process.env.PLEAXY_API_KEY,
workspaceId: process.env.PLEAXY_WORKSPACE_ID,
});
const po = await pleaxy.purchaseOrders.create({
supplier: "Amazon Web Services",
provider: "aws",
lineItems: [
{
scopeType: "sku",
scopeId: "AWS-EC2-M5LG",
name: "EC2 m5.large",
ruleType: "quantity",
unit: "hr",
unitPrice: 0.096,
qty: 5_000,
nteAmount: 0,
paymentTerms: "Net 30",
validFrom: "2026-01-01",
validUntil: "2026-12-31",
},
],
});@pleaxy/sdk
Need something else? The OpenAPI spec works with any standard code generator.