← Back to Support

Developer Documentation

Build with CloudPort

Integrate CloudPort's shipping and tracking API into your application. Get real-time tracking, automated quotes, and shipment management all in one unified API.

API Endpoints

All API requests require authentication via Bearer token in the Authorization header.

POST/api/shipments

Create a new shipment

GET/api/shipments/:id

Get shipment details and status

POST/api/quote

Get a shipping quote without creating a shipment

GET/api/tracking/:trackingNumber

Track a shipment by tracking number

POST/api/payments/create-intent

Create a Stripe payment intent for checkout

Code Examples

// Example: Create a shipment with CloudPort API
const createShipment = async () => {
  const response = await fetch('/api/shipments', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      from: {
        country: 'Nigeria',
        city: 'Lagos',
        addressLine1: '123 Commerce St',
        postalCode: '101001',
      },
      to: {
        country: 'United States',
        city: 'New York',
        addressLine1: '456 Park Ave',
        postalCode: '10001',
      },
      weight: 2.5,
      carrier: 'standard',
      items: [
        { description: 'Electronics', quantity: 1, value: 500 },
      ],
    }),
  });
  
  const shipment = await response.json();
  return shipment;
};

Authentication

Get your API key from your dashboard settings. Include it in every request header.

Rate Limits

Free tier: 100 requests/hour. Pro: unlimited. See pricing for details.

Webhooks

Receive real-time updates on shipment status changes and delivery events.

Ready to integrate?

Get started with our API and start building today.