storages

Every storage container, owned or not, with the price of the ones that are not.

Costs no round trip — answered from what the server has already said. Unowned expandable pages are listed too, with `expandPrice`, so a caller can offer the purchase before making it.

In Inventory & stash.

Request

POST /api/v1/sessions/{accountKey}/actions/storages

Takes no arguments.

Response

`{ storages }`.

FieldTypeMeaning
storages[].availablebooleanWhether the account owns this page.
storages[].expandablebooleanWhether `expandStorage` can buy it.
storages[].expandPriceintegerThe gold price, as published in patch notes. The live server is authoritative — treat this as a hint.
storages[].itemsintegerHow many items the session has cached for it.

Example response

{
  "storages": [
    { "inventoryId": 4,  "label": "Stash",           "available": true,  "expandPrice": 0,      "expandable": false, "items": 41 },
    { "inventoryId": 10, "label": "Stash 2",         "available": true,  "expandPrice": 50000,  "expandable": true,  "items": 12 },
    { "inventoryId": 11, "label": "Stash 3",         "available": false, "expandPrice": 100000, "expandable": true,  "items": 0 },
    { "inventoryId": 20, "label": "Shared",          "available": true,  "expandPrice": 0,      "expandable": false, "items": 3 },
    { "inventoryId": 22, "label": "Shared (season)", "available": false, "expandPrice": 0,      "expandable": false, "items": 0 }
  ]
}

Errors

CodeWhen
action_failedNo character is in the lobby.

See also

DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.