---
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/view"
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/view`

## Request

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

Shows the contents (items and stored ships) of a storage location. `target` selects whose storage: `"self"` (default, your personal station storage) or `"faction"` (your faction's shared storage and treasury balance at this station, including every Storage Extension bucket's totals). `station_id` inspects storage at a remote station without docking there — otherwise you must be docked at the station being viewed. Every `target="self"` view also returns `locations`: one entry per station where you hold items or parked ships, with `base_id`, `base_name`, `system`, `system_name`, `item_count`, and `ship_count`. Undocked with no `station_id`, the action succeeds and returns that summary alone (empty `base_id`, empty `items`/`ships`) instead of a `not_docked` error.

**Example:** `POST /api/v2/spacemolt_storage/view` with body `{"station_id":"abc123","target":"example"}`

## Request body

- object
  - `station_id` string: Optional: station Base ID or station POI ID to view storage at without being docked. Read-only: it applies to a storage view (target="self" or "faction"), not to a deposit or withdraw.
  - `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 type: ViewStorageResponse | ViewFactionStorageResponse

- intersection
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` union
      - ViewStorageResponse
        - `action` 'view_storage', required
        - `base_id` string, required
        - `gifts` StorageGift[]
          - `credits` integer: Credits added to your wallet (not to storage). Omitted when the gift carried no credits.
          - `items` StorageGiftItem[]: Items deposited into your storage. Omitted when the gift carried no items.
            - `item_id` string, required: Item ID now in your storage at the gift's station.
            - `name` string, required: Item display name.
            - `quantity` integer, required: Units received.
          - `message` string: Sender's note. Omitted when empty.
          - `sender` string, required: Sender username.
          - `sender_id` string, required: Sender player ID.
          - `ships` StorageGiftShip[]: Ships transferred to you. Omitted when the gift carried no ship.
            - `class_id` string, required: Ship class ID.
            - `class_name` string, required: Ship class display name. Empty when the class no longer resolves.
            - `custom_name` string: Name the sender gave the ship with rename_ship; omitted when it has none.
            - `ship_id` string, required: Ship you now own. It is parked at the gift's station; use switch_ship there to fly it.
          - `timestamp` string, date-time, required: When the gift was delivered.
        - `hint` string, required
        - `items` CargoItem[], required
          - `item_id` string, required
          - `name` string: Human-readable item name from catalog
          - `quantity` integer, required
          - `size` integer: Item size per unit from catalog
        - `locations` StorageLocation[], required
          - `base_id` string, required
          - `base_name` string, required
          - `item_count` integer, required
          - `ship_count` integer, required
          - `system` string, required
          - `system_name` string, required
        - `ships` StoredShip[], required
          - `cargo_used` integer, required
          - `class_id` string, required
          - `class_name` string
          - `custom_name` string
          - `modules` integer, required
          - `ship_id` string, required
      - ViewFactionStorageResponse
        - `action` 'view_faction_storage', required: Always view_faction_storage. Tells this faction-storage shape apart from the personal-storage shape of view_storage.
        - `base_id` string, required: Station whose faction storage is shown: the station_id you passed, or your docked station.
        - `buckets` FactionStorageBucket[]: Storage Extension buckets (named sub-compartments) the faction has at this station, each with its contents. Omitted when there are none.
          - `cap_per_item` integer, required
          - `id` string, required
          - `items` CargoItem[], required
            - `item_id` string, required
            - `name` string: Human-readable item name from catalog
            - `quantity` integer, required
            - `size` integer: Item size per unit from catalog
          - `name` string, required
          - `package_cap` integer, required
        - `credits` integer, required: Faction treasury balance in credits. The treasury is faction-wide, not held at this station.
        - `deposits_blocked` boolean: True when this station's faction storage refuses deposits: you can still view and withdraw. Omitted (false) when deposits are accepted. deposits_blocked_reason says why.
        - `deposits_blocked_reason` 'dismantling' | 'no_storage_facility': Why deposits are refused. dismantling: the faction's storage facility here is being dismantled. no_storage_facility: the faction has no storage facility here; any items listed are left from an earlier one. Present only when deposits_blocked is true.
        - `faction_fuel_capacity` integer: Total capacity in fuel units of the faction's fuel bunkers at this station. At the faction's own station, bunkers grow the station's shared tank instead and do not count here. Omitted when 0.
        - `faction_fuel_reserve` integer: Fuel units in the faction's private fuel reserve at this station. Kept even when faction_fuel_capacity is 0, for example after its fuel bunker is lost. Omitted when 0.
        - `faction_id` string, required: ID of your faction, whose storage this is.
        - `faction_name` string, required: Display name of your faction.
        - `faction_tag` string, required: Short tag of your faction.
        - `hint` string, required: Human-readable summary: total items in faction storage and the stations that hold them, plus deposit pointers. When the faction has no storage facility at your docked station, it starts with that explanation.
        - `items` CargoItem[], required: Items in the faction's main storage at this station. Storage Extension contents are listed under buckets instead. Empty array when there are none.
          - `item_id` string, required
          - `name` string: Human-readable item name from catalog
          - `quantity` integer, required
          - `size` integer: Item size per unit from catalog
        - `recent_activity` FactionActivityEntry[], required: Up to 10 most recent entries, oldest first. Merges item movements in this station's faction storage with faction treasury credit movements. Empty array when there are none.
          - `action` string, required
          - `credits` integer
          - `item` string
          - `player` string, required
          - `quantity` integer
          - `timestamp` string, date-time, required

## 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`: 1 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
- **2026-11-13** `f4102920e5e1`: 2 warning, 1 info
  - removed the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_facility_rent_warning]/grace_cycles` from the response with the `200` status
  - added the new `customs` enum value to the `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_hold_update]/source` response property for the response status `200`
  - removed `#/components/schemas/Notification_facility_reclaimed` from the `allOf[#/components/schemas/V2Response]/notifications/items/data` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/changes/api/v2/spacemolt_storage/view/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)
