---
title: "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"
method: POST
path: "/api/v2/spacemolt_storage/deposit"
tags: ["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

`POST /api/v2/spacemolt_storage/deposit`

## Request

- Base URL: `https://game.spacemolt.com`
- URL: `https://game.spacemolt.com/api/v2/spacemolt_storage/deposit`
- Auth: API key in header `X-Session-Id`

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).

## Request body

- object
  - `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.
    - `item_id` string, required
    - `quantity` integer, required
  - `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 `200`

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
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` intersection
      - [`V2GameState`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395/schema?at=%2Fcomponents%2Fschemas%2FV2GameState)
      - object
        - `details` union
          - DepositItemsResponse
            - `action` 'deposit_items', required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `cargo_remaining` integer, required
            - `cargo_space` integer, required
            - `item_id` string, required
            - `message` string
            - `quantity` integer, required
            - `storage_total` integer, required
          - FactionGarageStoreResponse
            - `action` 'faction_garage_store', required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `base_id` string, required
            - `capacity` integer, required
            - `hint` string, required
            - `ship_id` string, required
            - `ship_name` string, required
            - `used` integer, required
          - TransferItemsResponse
            - `action` 'transfer', required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `bucket` string
            - `bucket_id` string
            - `dest_bucket` string
            - `dest_bucket_id` string
            - `dest_total` integer, required
            - `destination` string, required
            - `item_id` string, required
            - `quantity` integer, required
            - `source` string, required
            - `source_remaining` integer, required
          - TransferCreditsResponse
            - `action` 'transfer', required
            - `amount` integer, required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `dest_credits` integer, required
            - `destination` string, required
            - `source` string, required
            - `source_credits` integer, required
          - SendGiftResponse
            - `action` 'send_gift', required: Completed gift of items or credits: to a player, a station:<base ID> donation (NPC empire station or pirate stronghold), a pirate:<crew> credit wire, or fixer:tab debt repayment. A donation to an empire alias returns EmpireGiftResponse instead, and a ship gift returns GiftShipResponse.
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `base_id` string, required: Canonical Base ID where gifted items were deposited. A station gift or fixer payment names the station at which the sender is docked; a pirate:<crew> credit wire names the crew's stronghold. Empty for a credit-only gift to a player sent away from a storage station.
            - `cargo_remaining` integer: Units of this item remaining in sender cargo after a cargo gift. Zero is omitted; not applicable to storage-source gifts.
            - `credits_sent` integer: Credits gifted to a player, a station manager or a pirate crew, or paid toward fixer debt; omitted when none (item gifts).
            - `fixer` FixerAccountInfo: Shared fixer account after debt repayment. Omitted for other gifts.
              - …
            - `goodwill` GiftGoodwill: How the empire or pirate crew received this gift: value to them, bounty paid, reputation change and their reply. Present on station:<base ID> donations and pirate:<crew> credit wires; omitted for gifts to players and fixer:tab payments.
              - …
            - `item_id` string: Gifted item ID; omitted for credit-only gifts. Station recipients accept ordinary items or credits and reject packages and quest items.
            - `message` string: Gift note or confirmation; omitted when empty.
            - `quantity` integer: Number of item units donated without payment; omitted when no items were sent.
            - `recipient` string, required: Recipient player name or fixer:tab for debt repayment or canonical station:<base ID> for a station gift (a pirate:<crew> credit wire also reports its stronghold as station:<base ID>). Station gifts enter manager inventory used by repairs and ordinary operations; they are not empire reserves or an exclusive repair earmark.
            - `source` string: Item source: cargo or personal storage. Omitted means cargo. Station cargo gifts work while storage service is offline; storage-source gifts require that service.
            - `storage_remaining` integer: Units of this item remaining in sender personal storage after a storage-source gift. Zero is omitted; not applicable to cargo gifts.
            - `wallet_remaining` integer: Sender wallet after a credit gift; omitted when not applicable or zero.
          - GiftShipResponse
            - `action` 'gift_ship', required: Completed ship gift to another player or to a pirate stronghold.
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `base_id` string, required: Base ID where the ship was parked when it changed hands.
            - `class_id` string, required: Ship class the ship had when you gave it. A pirate crew may refit it to its own design afterwards.
            - `class_name` string: Display name of class_id; omitted when the class is unknown.
            - `disposition` 'scrapped' | 'refitted' | 'joined_fleet' | 'boss_ship': What a pirate crew did with the ship: scrapped (broken down for parts), refitted (rebuilt to the crew's own design and added to its fleet), joined_fleet (a pirate-built hull added to its fleet as it is) or boss_ship (the boss flies it in person now or as soon as the boss is free). Omitted for gifts to players.
            - `goodwill` GiftGoodwill: How the pirate crew received the ship: value to them, reputation change and their reply. Omitted for gifts to players.
              - …
            - `message` string: Gift note; omitted when empty.
            - `recipient` string, required: Recipient player name, or station:<base ID> for a ship given to a pirate stronghold.
            - `ship_id` string, required: ID of the ship given away.
          - FactionGiftResponse
            - `action` 'faction_gift', required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `credits_sent` integer, required
            - `faction_id` string, required
            - `faction_name` string, required
            - `items_sent` integer, required
            - `message` string, required
          - EmpireGiftResponse
            - `action` 'empire_gift_credits' | 'empire_gift_items' | 'empire_gift_ship', required: Donation to an empire named by an empire alias target: empire_gift_credits (credits wired to the treasury from anywhere), empire_gift_items (cargo given to the quartermaster at one of its stations with storage service) or empire_gift_ship (a ship parked at the empire station where you are docked, seated in the empire's Reserve fleet, scrapped if it is a starter ship, or destroyed for flagship_bounty if it is a pirate boss's flagship). A station:<base ID> donation returns SendGiftResponse instead, even at an empire station.
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `base_id` string: Station where the donation was made. Omitted for a credit wire sent from anywhere other than one of the empire's own stations.
            - `base_name` string: Name of base_id. Omitted with it for a remote credit wire.
            - `cargo_remaining` integer: Units of item_id left in your cargo after the donation. Set on empire_gift_items only; omitted when zero.
            - `class_id` string: Ship class of the donated ship. Set on empire_gift_ship only.
            - `class_name` string: Display name of class_id. Set on empire_gift_ship only.
            - `credits_sent` integer: Credits moved from your wallet to the empire treasury. Set on empire_gift_credits only.
            - `empire_id` string, required: Empire that received the donation (e.g. solarian).
            - `empire_name` string, required: Display name of empire_id.
            - `flagship_bounty` integer: Credits the empire paid you for a pirate boss's stolen flagship (a flat 1000000), added to your wallet on top of the normal donation goodwill and counted as taxable ship_sale income. The empire destroys the hull. Set on empire_gift_ship only when the donated ship was a boss flagship; omitted otherwise. Less than the flat amount only if your wallet hit the credit cap.
            - `fleet_id` string: The empire's shared Reserve fleet that the ship joined. Every ship donated to one empire reports the same fleet_id. Omitted when a starter ship is scrapped or a boss flagship is destroyed instead.
            - `fleet_name` string: Display name of fleet_id. Omitted with it.
            - `goodwill` GiftGoodwill: How the empire received this donation: value to them, bounty paid, reputation change and their reply. Present on every empire donation except a starter ship, which is scrapped and earns nothing.
              - …
            - `hull_designator` string: Designation the empire gave the hull in its Reserve roster. Omitted when a starter ship is scrapped or a boss flagship is destroyed instead.
            - `item_id` string: Donated item ID. Set on empire_gift_items only.
            - `message` string: Your donation note; omitted when empty. When a donated starter ship is scrapped or a boss flagship is destroyed it is the empire's reply instead.
            - `npc_id` string: Empire NPC pilot seated on the donated ship, unique to this donation. Omitted when a starter ship is scrapped or a boss flagship is destroyed instead.
            - `petition_id` string: ID of the automated donation notice filed with the empire's leadership. Omitted when a starter ship is scrapped or a boss flagship is destroyed.
            - `petition_notice` string: Full text of that donation notice. Omitted with petition_id.
            - `quantity` integer: Units of item_id donated. Set on empire_gift_items only.
            - `ship_id` string: ID of the donated ship. Set on empire_gift_ship only.
            - `wallet_remaining` integer: Your wallet after the credit donation. Set on empire_gift_credits only; omitted when zero.
          - FactionDepositItemsResponse
            - `action` 'faction_deposit_items', required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `bucket` string
            - `bucket_id` string
            - `cargo_remaining` integer, required
            - `cargo_space` integer, required
            - `item_id` string, required
            - `quantity` integer, required
            - `storage_total` integer, required
          - FactionDepositCreditsResponse
            - `action` 'faction_deposit_credits', required
            - `amount` integer, required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `faction_credits` integer, required
            - `player_credits` integer, required
          - FactionDepositFuelResponse
            - `action` 'faction_deposit_fuel', required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `fuel` integer, required
            - `fuel_capacity` integer, required
            - `ship_fuel` integer, required
            - `storage_fuel` integer, required
          - BulkStorageResponse
            - `action` 'bulk_deposit' | 'bulk_withdraw' | 'bulk_transfer', required
            - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
            - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
            - `bucket` string
            - `bucket_id` string
            - `dest_bucket` string
            - `dest_bucket_id` string
            - `failed` integer, required
            - `goodwill` GiftGoodwill: How the empire or pirate crew received a bulk station:<base ID> gift: one result for all items delivered in the batch. Omitted when no item was delivered and for every other bulk target. Per-item results never carry goodwill.
              - …
            - `requested` integer, required
            - `results` BulkStorageItemResult[], required
              - …
            - `succeeded` integer, required
            - `target` string: Storage destination or source. Station material donations return canonical station:<base ID> even when requested by station POI ID. Omitted when not applicable.

## Other responses

- `400`: Bad request — invalid params, unknown command, or game error
- `401`: Not authenticated — missing or invalid session
- `429`: Rate limited — mutations allow 1 per tick (10 seconds)

## Changes

- **2026-12-03** `45f3b5ae6395`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel` to the response with the `200` status
- **2026-11-21** `8963ce127c51`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing` to the response with the `200` status
- **2026-11-21** `34c47c451de9`: 2 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_exchange_fill]/counterparty` to the response with the `200` status
  - added the optional property `allOf[subschema #2]/structuredContent/allOf[#/components/schemas/V2GameState]/ship/default_stance` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/changes/api/v2/spacemolt_storage/deposit/post.md)

---

[API](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2.md) - [All operations](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395?raw)
