API Guide

Supply Chain Disruption Monitoring: Build Alerts with FreightPulse API

March 16, 2026 · 10 min read · By FreightPulse Engineering

The Ever Given blocked the Suez Canal for six days in 2021 and cost global trade an estimated $9.6 billion per day. The Red Sea crisis rerouted 90% of container traffic around the Cape of Good Hope. COVID-19 shut down ports across Asia for weeks.

Supply chain disruptions aren't edge cases — they're constants. The question isn't whether disruptions will happen, but whether your system will detect them fast enough to act.

The Cost of Late Detection

Most logistics teams learn about disruptions from the news — hours or days after they begin. By then, rates have already spiked, capacity is booked, and alternative routes are scarce. Early detection gives you a critical window to:

The difference between knowing about a disruption 6 hours early versus learning from a news headline can save tens of thousands of dollars per shipment.

What the Disruptions API Returns

FreightPulse's /v1/disruptions endpoint aggregates disruption data from multiple sources — weather services, port authorities, carrier announcements, geopolitical risk feeds, and labor union communications. Here's what a query looks like:

curl https://freightpulsehq.com/api/v1/disruptions \
  -H "X-API-Key: your_api_key" \
  -G \
  -d "severity=high,critical" \
  -d "region=asia-pacific"

Sample response:

{
  "disruptions": [
    {
      "id": "dis_2026_0316_001",
      "type": "weather",
      "severity": "high",
      "title": "Typhoon Warning: South China Sea",
      "description": "Category 3 typhoon expected to impact 
        Shenzhen and Hong Kong ports within 48 hours",
      "affected_ports": ["CNSZX", "HKHKG"],
      "affected_routes": ["CNSHA-USLAX", "CNSZX-NLRTM"],
      "estimated_delay_hours": 72,
      "started_at": "2026-03-16T08:00:00Z",
      "expected_resolution": "2026-03-19T00:00:00Z",
      "confidence": 0.85,
      "sources": ["JMA", "NOAA", "port_authority"]
    }
  ],
  "total": 1,
  "updated_at": "2026-03-16T14:30:00Z"
}

Disruption Categories

The API classifies disruptions into six categories, each requiring different response strategies:

Building an Alert System

Step 1: Define Alert Rules

Not every disruption matters to every user. Build a rule engine that matches disruptions to user preferences:

// Example alert rule
const alertRules = [
  {
    user_id: "usr_123",
    routes: ["CNSHA-USLAX", "CNSHA-NLRTM"],
    ports: ["USLAX", "CNSHA"],
    min_severity: "medium",
    channels: ["email", "slack"]
  }
];

Step 2: Poll or Subscribe

You have two options for getting disruption data:

Polling: Hit the /v1/disruptions endpoint every 15-30 minutes. Simple to implement, works on all plans.

Webhooks: Register a webhook URL and receive instant notifications when new disruptions are detected or existing ones are updated. Available on Pro plans and above.

# Register a disruption webhook
curl -X POST https://freightpulsehq.com/api/v1/webhooks \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "event": "disruption_created",
    "severity": ["high", "critical"],
    "url": "https://your-app.com/webhooks/disruptions"
  }'

Step 3: Enrich with Context

A disruption alert is more useful when it includes impact analysis. Combine disruption data with other FreightPulse endpoints:

Real Example: Typhoon Alert Pipeline

When a typhoon disruption is detected → check which customer shipments transit the affected ports → calculate estimated delay → fetch alternative port congestion levels → generate a report with rerouting options and cost comparison → send to affected customers via Slack/email. All automated, all within minutes of detection.

Severity Scoring and Prioritization

FreightPulse uses a four-level severity scale:

Each disruption also includes a confidence score (0.0-1.0) indicating data reliability. Weather disruptions typically score 0.8+ (well-modeled), while geopolitical risks might score 0.5-0.7 (more uncertain).

Tracking Disruption Lifecycle

Disruptions aren't binary — they evolve. A strike might escalate from threatened to active to resolved. The API tracks this lifecycle with status fields:

Subscribe to status change webhooks to keep your users informed throughout the disruption lifecycle — not just at the start.

Building a Disruption Dashboard

A visual disruption dashboard is one of the highest-value features you can offer. Key components:

  1. Global map view — Plot active disruptions geographically with severity-colored markers
  2. Timeline view — Show disruptions on a timeline with estimated resolution dates
  3. Impact analysis — For each disruption, show affected routes, estimated delays, and rate impacts
  4. Historical patterns — Overlay past disruptions to show seasonal and recurring patterns

The /v1/disruptions/history endpoint provides historical data that makes the pattern analysis possible — helping users anticipate disruptions, not just react to them.

Getting Started

Disruption monitoring is available on all FreightPulse plans. The free tier lets you prototype your alert system with 100 API calls/month. Webhooks are available on Pro ($99/month) and above.

Check the API documentation for the complete disruptions endpoint reference.

Build Supply Chain Resilience

Detect disruptions before they impact your operations. Start monitoring free.

Start Free →