SoulFire LogoSoulFire

Get inventory state

Returns the current state of the bot's open container/inventory. Includes layout information, slot contents, and carried item. The bot must be online with a valid player.

GET
/v1/instances/:instance_id/bots/:bot_id/inventory

Returns the current state of the bot's open container/inventory. Includes layout information, slot contents, and carried item. The bot must be online with a valid player.

Authorization

AuthorizationBearer <token>

Preferred API authentication. Use a JWT with the api audience.

In: header

Path Parameters

instance_id*string

The UUID of the SoulFire instance containing the bot.

Formatuuid
bot_id*string

The profile UUID of the bot to get inventory state for.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://127.0.0.1:38765/v1/instances/:instance_id/bots/:bot_id/inventory"
{  "layout": {    "title": "string",    "regions": [      {        "id": "string",        "label": "string",        "start_index": 0,        "slot_count": 0,        "columns": 0,        "type": "SLOT_REGION_NORMAL"      }    ],    "total_slots": 0,    "buttons": [      {        "button_id": 0,        "label": "string",        "icon_item_id": "string",        "description": "string",        "disabled": true,        "selected": true      }    ],    "container_type": "string",    "text_inputs": [      {        "id": "string",        "label": "string",        "current_value": "string",        "max_length": 0,        "placeholder": "string"      }    ],    "book_pages": [      {        "page_number": 0,        "content": "string"      }    ],    "current_book_page": 0  },  "slots": [    {      "slot": 0,      "item_id": "string",      "count": 0,      "display_name": "string"    }  ],  "carried_item": {    "slot": 0,    "item_id": "string",    "count": 0,    "display_name": "string"  },  "selected_hotbar_slot": 0}

How is this page?