Skip to main content

Getting Started with FlexOps

FlexOps provides a unified shipping API that connects your application to all major carriers — USPS, FedEx, UPS, DHL, OnTrac, LSO, Canada Post, Royal Mail, and Australia Post — through a single integration.

Quick Start

1. Get your API key

Sign up at the FlexOps Dashboard and create a workspace. Your API key will be available in Settings > API Keys.

2. Install an SDK

npm install @flexops/sdk

3. Create a label

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

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

const label = await client.shipping.createLabel({
carrier: 'USPS',
service: 'PRIORITY_MAIL',
fromAddress: {
name: 'FlexOps HQ',
street1: '123 Main St',
city: 'Denver',
state: 'CO',
zip: '80202',
country: 'US',
},
toAddress: {
name: 'Jane Doe',
street1: '456 Oak Ave',
city: 'Portland',
state: 'OR',
zip: '97201',
country: 'US',
},
parcel: { weight: 16, weightUnit: 'oz', length: 10, width: 8, height: 4 },
});

console.log(`Label URL: ${label.labelUrl}`);
console.log(`Tracking: ${label.trackingNumber}`);

4. Track the shipment

const tracking = await client.shipping.track('9400111899223456789012');
console.log(`Status: ${tracking.status}`);
console.log(`ETA: ${tracking.estimatedDelivery}`);

What's next?

  • Authentication — API key management, JWT tokens, and security
  • Rate Shopping — Compare rates across carriers in real time
  • Webhooks — Get notified when shipment status changes
  • SDKs — Full SDK reference for all 7 languages
  • Test Data — Sandbox addresses and tracking numbers