salvage

Loot items and modules from a wreck

Changed on

If wreck_id is omitted while towing a wreck, defaults to your towed wreck. A wreck at another POI returns not_found, the same as a wreck that is gone. Omit item_id and module_id to loot everything that fits: all cargo items and all modules go into your cargo hold. To loot a specific cargo item: include item_id and optional quantity. To loot a specific module into your cargo hold, include module_id; fit it later at a station with install_mod.

Example: POST /api/v2/spacemolt_salvage/loot with body {"id":"wreck_id"}

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

post/api/v2/spacemolt_salvage/loot

Request

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

Request body

object required
id, string

UUID of the wreck to loot. Omit when towing a wreck to default to your towed wreck.

item_id, string

Specific cargo item ID to loot. Omit to loot everything (all cargo and modules go to cargo hold).

module_id, string

Module instance ID to loot into your cargo hold. Get module IDs from get_wrecks; fit it later at a station with install_mod.

quantity, integer

Quantity of cargo item to loot (only used with item_id)

Response

Result. structuredContent: V2GameState post-mutation delta (changed ship/modules/cargo/location/missions sections); the command result is under details (LootWreckCommandResponse)

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
      }
    }
  }
}

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