Skip to main content
GET
/
item
/
list
/
{entity_id}
list entity's inventory and equipment
curl --request GET \
  --url http://localhost:3917/item/list/{entity_id}
{
  "entity_id": 5,
  "equipment": [
    {
      "item_id": 3,
      "name": "Sword",
      "slot": "weapon"
    }
  ],
  "inventory": [
    {
      "count": 2,
      "item_id": 1,
      "name": "Health Potion",
      "slot": 0
    }
  ],
  "stat_modifiers": {
    "damage": 10
  }
}

Path Parameters

entity_id
integer<int32>
required

Entity id whose inventory, equipment, and stat modifiers to read.

Required range: x >= 0

Response

200 - application/json

The entity's filled inventory slots, equipped items, and aggregate stat modifiers. Returns an error field when the entity is not found.