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.
Official
Install
cargo add pleaxyQuickstartpleaxy
use pleaxy::models::{create_purchase_order_input, line_item_input, CreatePurchaseOrderInput, LineItemInput};
let client = pleaxy::Client::builder()
.base_url("https://api.pleaxy.ai")
.api_key(std::env::var("PLEAXY_API_KEY")?)
.workspace_id(std::env::var("PLEAXY_WORKSPACE_ID")?)
.build()?;
let mut line = LineItemInput::new(
line_item_input::ScopeType::Sku,
"EC2 m5.large".into(),
line_item_input::RuleType::Quantity,
"hr".into(),
0.096, // unit price
5000.0, // quantity
0.0, // not-to-exceed amount
"2026-01-01".into(),
"2026-12-31".into(),
);
line.scope_id = Some(Some("AWS-EC2-M5LG".into()));
line.payment_terms = Some("Net 30".into());
let mut input = CreatePurchaseOrderInput::new("Amazon Web Services".into(), vec![line]);
input.provider = Some(create_purchase_order_input::Provider::Aws);
let po = client.purchase_orders().create_purchase_order(input).await?;Need something else? The OpenAPI spec works with any standard code generator.