Goldmine
Inventory

Fetch multiple inventory items by ID

POST
/contracts.v1.Contracts/GetInventoryItems

Returns the inventory items matching the given IDs within a workspace, alongside the IDs that did not resolve.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://loading/contracts.v1.Contracts/GetInventoryItems" \  -H "Content-Type: application/json" \  -d '{    "workspaceId": "AAECAwQFBgcICQoLDA0ODw==",    "inventoryItemIds": [      "aW52ZW50b3J5LWl0ZW0tMDAx",      "aW52ZW50b3J5LWl0ZW0tMDAy"    ]  }'
{
  "inventoryItems": [
    {
      "id": "aW52ZW50b3J5LWl0ZW0tMDAx",
      "workspaceId": "AAECAwQFBgcICQoLDA0ODw==",
      "purchaseId": "MDEyMzQ1Njc4OWFiY2RlZg==",
      "contractId": "EBESExQVFhcYGRobHB0eHw==",
      "marketHashName": "AK-47 | Redline (Field-Tested)",
      "status": "INVENTORY_ITEM_STATUS_IN_INVENTORY",
      "version": "2",
      "currentAssetId": "29384710999",
      "buyPriceCents": "4200",
      "tradable": true,
      "createdAt": "2026-04-10T09:12:00Z",
      "updatedAt": "2026-04-10T09:45:00Z"
    }
  ],
  "notFoundIds": [
    "aW52ZW50b3J5LWl0ZW0tMDAy"
  ]
}
{
  "code": "invalid_argument",
  "message": "The request was malformed, such as a missing required field or an unparseable cursor."
}
{
  "code": "unauthenticated",
  "message": "The request lacks a valid API key in the Authorization header."
}
{
  "code": "permission_denied",
  "message": "The API key is not allowed to perform this action on this workspace."
}
{
  "code": "resource_exhausted",
  "message": "The request was rate limited. Slow down and retry later."
}
{
  "code": "internal",
  "message": "An internal server error occurred."
}