Skip to main content

SDKs & Libraries

Official FlexOps SDKs are available in 7 languages. Each SDK provides:

  • Typed request/response models
  • Automatic retry with exponential backoff
  • Rate limit handling
  • Webhook signature verification
  • Idempotency key generation
  • Carrier-specific passthrough methods (USPS, FedEx, UPS, DHL)

Supported Languages

LanguagePackageMin Version
Node.js@flexops/sdkNode 18+
PythonflexopsPython 3.10+
C#FlexOps.Sdk.NET 10+
RubyflexopsRuby 3.1+
PHPflexops/sdkPHP 8.1+
Gogithub.com/FlexOps/flexops-sdk-goGo 1.22+
Javacom.flexops:flexops-sdkJava 21+

Installation

npm install @flexops/sdk

Client Initialization

import { FlexOps } from '@flexops/sdk';

const client = new FlexOps({
apiKey: 'fxk_live_your_api_key',
workspaceId: 'ws_abc123',
});

Feature Parity

All SDKs support the same core operations:

FeatureAll SDKs
Rate shoppingYes
Label creationYes
TrackingYes
Address validationYes
Webhook verificationYes
Batch operationsYes
Async/awaitYes
Automatic retriesYes
Rate limit handlingYes
Carrier passthrough (USPS, FedEx, UPS, DHL)Yes

Available Resources

Every SDK exposes these resource domains on the client object:

ResourceMethods
shippinggetRates, getCheapestRate, getFastestRate, createLabel, cancelLabel, track, validateAddress, createBatch, getBatchStatus
carriersusps., fedex., ups., dhl. (carrier-specific passthrough)
webhookscreate, list, delete, test
walletgetBalance, reload, getTransactions
insurancegetQuote, buyPolicy, listPolicies
returnscreate, authorize, track
analyticsgetShipmentsTrend, getCarrierSummary
authlogin, register, refreshToken, logout
apiKeyscreate, list, revoke, rotate

See individual SDK pages for language-specific examples.