c api's inventory is currently private.