Skip to content

Tutorial: Building a Cargo Bay Picker

Learn how to use the Fleet Operations API to show shippers which cargo bays have room, before they book a container.

Cargo bays open for booking 14 days before launch, at 08:00 station time.


Before showing bay options to your users, fetch the bays that can hold their cargo’s temperature class:

GET /v2/cargo/bays?temperature=cryo HTTP/1.1
Host: fleet.cosmocargo.dev
X-API-Key: YOUR_API_KEY

Free capacity is capacityTons - usedTons: 1,800 tons in this bay.


Temperature Description Best For
Ambient Pressurized hold kept at 18–24 °C. General freight and electronics
Cryo Held below −150 °C for the whole voyage. Vaccines, cryo-sleep pods, cultured cells
Plasma-shielded Wrapped in a plasma field against radiation storms. Reactive minerals and sensitive instruments

Once the shipper picks a bay, book the container with POST /containers/book (Cargo Container Specifications API). The booking confirmation and launch reminders go to the notification channels in the request.