Developers

Marsa API & MCP

Everything the console shows is available to your systems: shipments, voyages with sea-route geometry, estimated vessel positions and on-demand tracking — over REST or the Model Context Protocol.

Base URLhttps://api.2ioo.cc

Keys & tenants

Every client is a tenant and only ever sees its own shipments. Each of its apps gets its own key, so a key can be revoked without touching the others. Send it as a bearer token on every request.

Authorization: Bearer mrs_AbCdEf1234_••••••••••••••••••••••••••••••••
ScopeAllows
readShipments, voyages, stats, carriers, and the MCP read tools.
trackQueue any bill of lading or container (POST /v1/track, MCP track_number). You can then read back numbers you asked for.
syncPush your shipment list from your ERP or platform (POST /v1/sync/:source).
Keys are shown once, when issued, and stored only as a hash. If a key leaks, ask us to revoke it — it stops working immediately and your other apps keep running.

Errors & limits

StatusMeaning
401Missing, wrong or revoked key.
403The key lacks the scope this route needs.
404Not found — or it belongs to another tenant (we never confirm that it exists).
429Rate limit reached (240 requests/minute per key by default). Honour Retry-After.

Shipments

Your shipments with their live status. One order can carry several bills of lading; each is a row with the same ref.

GET/v1/shipmentsscope: read

All active shipments. ?active=all includes closed ones.

{ "count": 23, "shipments": [{
  "ref": "Qssun-0076", "number": "MEDUAJV15942", "carrierName": "MSC",
  "status": "IN_TRANSIT", "eta": "2026-12-07", "etaShiftDays": 0, "received": false,
  "tracking": { "vessel": { "name": "MSC SIENA", "imo": "9618264" }, "containers": [ … ] }
}]}
GET/v1/shipments/:idscope: read

One shipment by order ref, bill of lading or Marsa id, with the history of every change (ETA moves, vessel swaps).

POST/v1/sync/:sourcescope: sync

Replace the list of open shipments for one of your sources. Missing items are marked inactive.

{ "items": [{ "ref": "PO-1182", "number": "EGLV143651505692", "meta": { "supplier": "Acme" } }] }

Voyages & positions

Each order's stops (origin, transshipments, destination), every leg drawn on the real sea lane, and the vessel's estimated position.

GET/v1/mapscope: read

?scope=all also returns shipments already received.

{ "voyages": [{ "ref": "Qssun-0076", "status": "IN_TRANSIT", "nm": 6727, "nmDone": 5878,
  "stops": [{ "code": "CNNGB", "role": "origin", "departed": "2026-10-02" }, { "code": "SAJED", "role": "destination", "expected": "2026-12-07" }],
  "legs": [{ "from": "CNNGB", "to": "SAJED", "state": "active", "coords": [[121.88, 29.87], …] }],
  "position": { "lat": 12.63, "lon": 48.68, "bearing": 261, "estimated": true }
}]}
Positions are estimated from the carrier's schedule (last actual departure and next expected arrival), not from AIS. Every estimated position carries "estimated": true.

Track a number

Track any bill of lading or container, even if it is not one of your synced shipments.

POST/v1/trackscope: track

Queues the number with its carrier (detected automatically; container numbers from leasing companies are matched by trying each carrier). Returns 202.

curl -X POST https://api.2ioo.cc/v1/track -H "Authorization: Bearer mrs_…" -d '{"number":"MSBU5452198"}'
GET/v1/track/:numberscope: read

The latest result for a number you own or asked for, with its change history.

Carriers, stats, me

GET/v1/carriersscope: read

Supported lines and how each is read.

GET/v1/statsscope: read

Your shipment counts by status.

GET/v1/mescope: read

Who this key is: tenant, app and scopes. Handy to check a key during setup.

MCP server

Marsa speaks the Model Context Protocol (Streamable HTTP, protocol versions 2024-11-05 to 2025-06-18). Any MCP client — an AI assistant, an agent framework, your own bot — connects with one block of config and the same scoped key.

{
  "mcpServers": {
    "marsa": { "type": "http", "url": "https://api.2ioo.cc/mcp",
               "headers": { "Authorization": "Bearer mrs_…" } }
  }
}
ToolWhat it answers
fleet_summaryHow many are on the way, by status; what is overdue; what arrives in the next 7 days.
list_shipmentsShipments with status, ETA, vessel and last event; filter by scope, status or supplier.
get_shipmentOne order, bill of lading or container in full, with the ETA history.
vessel_positionsWhere every ship is now, its stops and how much of the voyage is done.
track_numberTrack any number on demand (needs track).
list_carriersSupported lines.

Request a key