storage

Unified storage: view, deposit, withdraw items for self/faction; credit transfers for faction treasury; gift items/credits/ships to players; donate to empires, stations and pirate crews; repay your fixer:tab debt

Changed on

Moves items, credits, fuel, or a ship into a storage location. target="self" or target="faction" auto-dock at your current POI's base if you're undocked, except faction treasury credits (item_id="credits"), which never dock and work anywhere; remote gifts (a player name), empire donations, pirate:<crew> credit wires, and faction:TAG donations keep their own docking rules. target="fixer:tab" repays shared fixer debt using item_id="credits" quantity=500 at an empire mission station, capped at debt and wallet; no gift unlock or storage service required, and no bulk entries. An empire donation returns the EmpireGiftResponse branch of details, with action empire_gift_credits, empire_gift_items, or empire_gift_ship. A station item or credit donation and a pirate credit wire return SendGiftResponse with action send_gift; a stronghold ship gift returns GiftShipResponse with action gift_ship. A bulk station gift returns BulkStorageResponse with goodwill once on the parent for all successful entries and none in nested results. A tab payment returns the SendGiftResponse branch of details: recipient is "fixer:tab", credits_sent is the amount paid, and fixer is your account after payment. target is the destination — "self", "faction" (optionally into a Storage Extension bucket), "faction:TAG" (donate to another faction), an empire alias (donate to that empire; credits can be wired from anywhere), "pirate:<crew>" (wire credits to a pirate crew from anywhere), "carrier:<pilot name>" (load your parked ship into a faction-mate's carrier bay while their carrier is docked at your station; you keep ownership; a listed ship cannot be loaded), or a player name (gift). target="station:<base-or-POI-ID>" optionally donates ordinary items or credits to that managed NPC empire station or pirate stronghold while already docked there: no packages or quest items, and ships only to a pirate stronghold (you and the ship must be docked there; a boss's stolen flagship can be sent to any pirate stronghold from any station; while a boss's own flagship is away from his crew, he flies a rival boss's stolen flagship if it is his strongest ship and otherwise keeps it in his hangar; when his own flagship is home, he scraps it); unpaid manager inventory for repairs and operations, not empire reserves. Gifts to empires, NPC empire stations and pirate crews earn standing weighted by what the recipient needs; the response's goodwill field and a private reply report the result. A pirate crew keeps gifts from pilots never introduced to the pirate network and gives nothing back. Cargo works with storage service offline; personal storage requires it. Normal gift unlock and trading restrictions apply. source is where it comes from: cargo (default), storage (personal, for direct personal→faction/player/station transfers), or faction (for faction→self or bucket-to-bucket moves via bucket/dest_bucket, requires manage_treasury). item_id is the item, "credits" (or use the dedicated credits field for a gift or a fixer:tab payment), "fuel" (from your tank), or a ship instance ID; quantity is the amount, or use items (array of {item_id, quantity}) to bundle several in one write.

Example: POST /api/v2/spacemolt_storage/deposit with body {"bucket":"example","credits":1,"dest_bucket":"example","item_id":"adamant_tooth","items":[{"item_id":"adamant_tooth","quantity":1}],"message":"example","quantity":1,"source":"example","target":"example"}

Rate limited: This is a mutation command (1 per tick / 10 seconds).

post/api/v2/spacemolt_storage/deposit

Request

  • Base URL
    https://game.spacemolt.com
  • Auth
    API key in header X-Session-Id

Request body

object required
bucket, string

Optional (target=faction only): a Storage Extension bucket by name or id to deposit into / withdraw from instead of the main store. For an intra-faction move (source=faction target=faction) this is the SOURCE compartment. Empty means the main store. See bucket names in a storage view with target=faction.

credits, integer

For 'deposit': credits to gift a player, to donate to an empire, a station:<id> or a pirate:<crew>, or to repay your debt with target=fixer:tab. (Faction credit deposits use item_id='credits' with quantity instead.)

dest_bucket, string

Optional destination compartment for an intra-faction move (source=faction target=faction): items go from 'bucket' into 'dest_bucket'. Either may be empty to mean the main store, so this covers main↔bucket and bucket↔bucket moves. Requires manage_treasury.

item_id, string

Item ID for normal item transfers, 'credits' for credit operations (faction or fixer:tab target), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's), target=carrier:<pilot name> on a deposit loads it into a faction-mate's carrier bay, a withdraw by the ship's owner or the carrier's owner unloads a bay ship at the carrier's station, target=<player_name> on a deposit gifts the ship (triggers gift_ship action; a ship in a carrier bay can be gifted while its carrier is at a station and stays in the bay), target=station:<base ID> on a deposit gives it to that pirate stronghold while you and the ship are docked there (also gift_ship; a boss's stolen flagship can be sent to any pirate stronghold from any station), and an empire alias on a deposit donates it to that empire (empire_gift_ship). Use list_ships to find ship instance IDs.

items, object[]

Bulk deposit/withdraw: array of {item_id, quantity} objects moved in a single action (one write) instead of one per tick. Items only. Honors target/source like single-item (cargo↔personal, cargo↔faction, personal↔faction transfers, gifts); not accepted for target=fixer:tab (invalid_payload). Omit item_id/quantity when using this. The response reports per-item success/failure.

message, string

Optional message with a gift or donation

quantity, integer

Amount to transfer

source, string

Optional source for deposit/withdraw: 'cargo' (default — your ship's cargo hold or wallet), 'storage' (personal storage; use with target=faction or a player name to transfer directly, bypassing cargo), or 'faction' (faction storage; use with target=self to transfer faction→personal, or with target=faction to move items between faction compartments — both require manage_treasury).

target, string

Target: self, faction, faction:TAG, empire alias, pirate:<crew>, carrier:<pilot name>, player name/ID, or station:<base-or-POI-ID>. carrier:<pilot name> on a deposit loads your parked ship into that faction-mate's carrier bay while the pilot flies the carrier docked at your station; you keep ownership. Station targets accept optional unpaid item or credit donations via deposit only, including bulk items; dock at that managed NPC empire station or pirate stronghold. No packages or quest items, and ships only to a pirate stronghold. Credits to an empire or pirate:<crew> can be wired from anywhere. Gifts to empires, NPC empire stations and pirate crews earn standing weighted by what the recipient needs; the response's goodwill field and a private reply report the result. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.

Response

Result. structuredContent: V2GameState post-mutation delta (changed player/ship/cargo/location/missions sections); the command result is under details (DepositItemsResponse | FactionGarageStoreResponse | TransferItemsResponse | TransferCreditsResponse | SendGiftResponse | GiftShipResponse | FactionGiftResponse | EmpireGiftResponse | FactionDepositItemsResponse | FactionDepositCreditsResponse | FactionDepositFuelResponse | BulkStorageResponse)

intersection required
object
structuredContent, intersection

Example response

{
  "notifications": [
    {
      "data": {
        "reason": "stalemate",
        "winning_side": -1
      }
    }
  ],
  "structuredContent": {
    "missions": {
      "fixer": {
        "allowance": 5000,
        "available": 2000,
        "debt": 2000,
        "exposure": 3000
      }
    },
    "details": {
      "action": "send_gift",
      "base_id": "grand_exchange_station",
      "cargo_remaining": 80,
      "fixer": {
        "allowance": 5000,
        "available": 2000,
        "debt": 2000,
        "exposure": 3000
      },
      "goodwill": {
        "counterparty": "nebula",
        "need_value": 360,
        "reputation_before": 10,
        "reputation_after": 10,
        "reputation_change": 0,
        "situation": "token_items",
        "reply": "Booked into inventory: 20 x Steel Plate. Useful goods, small lot. Noted. When you want to move markets, darling, bring a bigger hold.",
        "reply_from": "Nebula Trade Federation"
      },
      "item_id": "steel_plate",
      "quantity": 20,
      "recipient": "station:grand_exchange_station",
      "source": "cargo"
    }
  }
}

Changes

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel to the response with the status

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing to the response with the status