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.
Request
POST /api/v1/sessions/{accountKey}/actions/storages
Takes no arguments.
Response
`{ storages }`.
| Field | Type | Meaning |
|---|---|---|
storages[].available | boolean | Whether the account owns this page. |
storages[].expandable | boolean | Whether `expandStorage` can buy it. |
storages[].expandPrice | integer | The gold price, as published in patch notes. The live server is authoritative — treat this as a hint. |
storages[].items | integer | How 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
| Code | When |
|---|---|
action_failed | No 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.