Developer platform

Bring your Havnmarq shipment records into your workflows.

The Havnmarq API connects shipment operations and makes public satellite scene coverage discoverable for analysis. Separate keys read organization-linked shipments, append customer-authorized events, or query Sentinel-1 scene metadata around a port reference coordinate. Owners and administrators can also send Havnmarq shipment and exception updates to signed HTTPS webhooks.

REST · JSONScoped access

GET /api/v1/shipments

curl https://core.havnmarq.com/api/v1/shipments?limit=50 \
  -H "Authorization: Bearer $HAVNMARQ_API_KEY"

Keys grant one permission, are shown once, hashed at rest, expire after 90 days and can be revoked. Production and preview credentials are separate.

Available now

Connect operational data within a clear boundary.

Organizations can read the shipment records attached to their linked Havnmarq account and submit events from their own systems. Event submission is append-only and does not change shipment master data.

Shipment list

Read shipment mode, origin, destination, carrier, container or airway-bill reference, current status, ETA and creation time.

Cursor pagination

Fetch up to 100 records per request using an opaque next-page token.

Credential controls

Create up to five active keys, name them by integration, review last use, and revoke access immediately.

Usage controls

Limits of 60 requests per minute per key and 600 per minute per organization, with rate-limit response headers and retry guidance.

Customer event ingestion

Post status events from an authorized ERP, TMS or carrier connection with an external event ID. Duplicate retries are safe; conflicting reuse returns 409.

Event provenance

Each accepted event is tied to its organization, API key, source, external ID and content hash for traceability.

Satellite scene coverage

Discover public Copernicus Sentinel-1 GRD scene metadata intersecting a port’s UN/LOCODE reference point. This is imagery availability, not a vessel count or live port activity feed.

Signed outbound webhooks

Subscribe to shipment events and exception changes, verify HMAC-SHA256 signatures, and inspect delivery attempts with automatic retries.

Satellite scene discovery

Check Sentinel-1 scene coverage near a port.

Create a key with satellite:scenes:read, then call GET /api/v1/satellite/scenes with an active five-character UN/LOCODE and an optional 1–90 day window (default 30). The response includes acquisition time, Sentinel platform, product type, orbit direction, polarization, catalogue footprint geometry when available, and its bounding box.

Havnmarq queries the public Copernicus Data Space STAC catalogue. Requests are bounded to ten scenes and use a shared five-minute cache to reduce repeated upstream calls. Scene discovery does not download imagery or expose source assets.

Source references: Copernicus STAC documentation ↗ · data terms ↗

Example request

curl 'https://core.havnmarq.com/api/v1/satellite/scenes?unlocode=BDCGP&days=30' \
  -H "Authorization: Bearer $HAVNMARQ_SATELLITE_KEY"

Interpretation boundary

A scene intersecting the UN/LOCODE reference point does not prove the full port boundary was imaged, that vessels were present, or that there was congestion or throughput. Sentinel-1 acquisitions are intermittent observations, not real-time tracking. Havnmarq does not yet publish satellite-derived vessel counts or activity scores through this endpoint.

Access model

Your shipment data stays within its organization boundary.

  • • Keys are created by an authenticated member and scoped to one organization.
  • • The organization is currently linked to one existing Havnmarq business account; callers cannot select another organization or account.
  • • Read keys can list shipments. Event-write keys can append events only to shipments owned by that organization; they cannot create, edit or delete shipment records.
  • • Event IDs are idempotent per source and organization. Replaying identical content returns the original event; reusing an ID for different content returns a conflict.
  • • Owners and administrators manage outbound webhook subscriptions. Events are signed, queued durably and retried on network errors, HTTP 408/429 and 5xx responses. Redirects and private-network destinations are blocked.
  • • Third-party automatic tracking is not implied: an authorized connection must send events.

Market intelligence

Derived activity signals require a separate evidence pipeline.

This scene-catalogue endpoint does not expose Eurostat or other market datasets, raw satellite imagery, vessel detections or activity estimates. Any later derived product will require reviewed port boundaries, a validated detection process, scene-level provenance, confidence and quality controls, and source-term approval.

Explore available reports ↗

Request reference

GET /api/v1/shipments

Authentication uses a bearer API key. Optional query parameters are limit (1–100, default 50) and page_token (the previous response’s next-page token).

Successful responses include data and meta. Errors use a stable code and message envelope. Responses are not cached.

Example response

{
  "data": [
    {
      "id": "…",
      "mode": "Sea",
      "origin": "Chattogram",
      "destination": "Rotterdam",
      "carrier": "…",
      "container_or_awb_number": "…",
      "current_status": "In Transit",
      "eta": "2026-12-04",
      "created_at": "2026-11-24T09:15:00Z"
    }
  ],
  "meta": {
    "limit": 50,
    "next_page_token": null,
    "request_id": "…"
  }
}

Illustrative schema only. Values are examples; no customer records are shown here.

Event submission

POST /api/v1/shipments/{id}/events

Use a key with shipments:events:write. Send a stable source identifier and external event ID so retries remain safe. The timestamp is the time reported by your source; Havnmarq separately records receipt time.

Only the listed fields are accepted. Values are bounded, future timestamps beyond one day are rejected, and an identical retry returns HTTP 200 with duplicate: true.

Example request

curl -X POST https://core.havnmarq.com/api/v1/shipments/$SHIPMENT_ID/events \
  -H "Authorization: Bearer $HAVNMARQ_EVENTS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source":"customer-tms","external_event_id":"evt-1042","status":"Departed origin terminal","location":"Chattogram","occurred_at":"2026-11-25T08:30:00Z"}'

This endpoint records a customer-supplied event. It does not independently verify a carrier or terminal feed.

Webhook receiver

Verify every delivery before processing it.

Havnmarq sends shipment event and exception lifecycle updates as signed JSON. Verify the HMAC against the exact raw request body and reject timestamps more than five minutes from your server clock. Do not parse and re-serialize the body before verification.

  • • Signature: Havnmarq-Signature: t=<unix_seconds>,v1=<hex_hmac>; HMAC-SHA256 input is timestamp + "." + raw_body.
  • • Delivery is at least once. Deduplicate using Havnmarq-Delivery-Id; a timeout after your server processes an event may cause a retry.
  • • Return 2xx after safely accepting the event. Network failures, 408, 429 and 5xx responses retry with backoff for up to 12 attempts. Other responses are recorded as terminal failures.
  • • Available types: shipment.event.created, shipment.exception.created, and shipment.exception.updated.

Shipment event payload

{
  "id": "delivery-uuid",
  "type": "shipment.event.created",
  "created_at": "2026-11-25T08:31:00Z",
  "data": {
    "event_id": "event-uuid",
    "shipment_id": "shipment-uuid",
    "status": "Departed origin terminal",
    "location": "Chattogram",
    "occurred_at": "2026-11-25T08:30:00Z"
  }
}

Illustrative payload. Exception events include exception ID, shipment ID, category, severity, current status, title, activity type and occurrence time. Customer systems must still supply or authorize shipment events; a webhook is delivery, not an independent tracking feed.

Next step

Set up a secure integration.

Sign in to create credentials, then use the OpenAPI reference to connect your systems.

Open API access