Skip to content

Item Management

Overview

Item endpoints handle the saving and retrieval of weapon customizations within loadouts, including weapons, knives, gloves, and pins.

Authentication Required

All item management endpoints require a valid JWT token.

Weapons

GET /api/weapons/:type

Retrieve weapons of a specific type for the authenticated user's active loadout.

Path Parameters:

ParameterTypeDescription
:typestringWeapon type: pistol, smg, rifle, heavy

Query Parameters:

ParameterTypeRequiredDescription
steamIdstringYesUser's Steam ID
loadoutIdnumberNoSpecific loadout ID

Response:

json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "steamid": "76561198012345678",
      "loadoutid": 1,
      "team": 2,
      "weapon_defindex": 7,
      "weapon_name": "AK-47",
      "active": 1,
      "paintindex": 253,
      "paintseed": 661,
      "paintwear": 0.15,
      "stattrak_enabled": 1,
      "stattrak_count": 1337,
      "nametag": "The Beast",
      "stickers": [
        {
          "slot": 0,
          "stickerId": 1230,
          "wear": 0.0,
          "rotation": 0,
          "scale": 1.0
        }
      ],
      "keychain": {
        "keychainId": 6001,
        "seed": 42
      }
    }
  ],
  "count": 1
}

POST /api/weapons/save

Save or update a weapon customization.

Request Body:

json
{
  "steamId": "76561198012345678",
  "loadoutId": 1,
  "team": 2,
  "weaponDefindex": 7,
  "paintindex": 253,
  "paintseed": 661,
  "paintwear": 0.15,
  "statTrak": true,
  "statTrakCount": 1337,
  "nameTag": "The Beast",
  "stickers": [
    {
      "slot": 0,
      "stickerId": 1230,
      "wear": 0.0
    }
  ],
  "keychain": {
    "keychainId": 6001,
    "seed": 42
  }
}

Response:

json
{
  "success": true,
  "data": {
    "id": 1,
    "message": "Weapon saved successfully"
  }
}

Knives

GET /api/knives

Retrieve knives for the authenticated user's active loadout.

Query Parameters:

ParameterTypeRequiredDescription
steamIdstringYesUser's Steam ID
teamnumberNoFilter by team (2 for T, 3 for CT)

Response:

json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "steamid": "76561198012345678",
      "loadoutid": 1,
      "team": 2,
      "weapon_defindex": 507,
      "weapon_name": "Karambit",
      "active": 1,
      "paintindex": 418,
      "paintseed": 412,
      "paintwear": 0.01,
      "stattrak_enabled": 1,
      "stattrak_count": 500,
      "nametag": "Ruby Slayer"
    }
  ],
  "count": 1
}

POST /api/knives/save

Save or update a knife customization.

Request Body:

json
{
  "steamId": "76561198012345678",
  "loadoutId": 1,
  "team": 2,
  "weaponDefindex": 507,
  "paintindex": 418,
  "paintseed": 412,
  "paintwear": 0.01,
  "statTrak": true,
  "statTrakCount": 500,
  "nameTag": "Ruby Slayer"
}

Response:

json
{
  "success": true,
  "data": {
    "id": 1,
    "message": "Knife saved successfully"
  }
}

Gloves

GET /api/gloves

Retrieve gloves for the authenticated user's active loadout.

Query Parameters:

ParameterTypeRequiredDescription
steamIdstringYesUser's Steam ID
teamnumberNoFilter by team (2 for T, 3 for CT)

Response:

json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "steamid": "76561198012345678",
      "loadoutid": 1,
      "team": 2,
      "weapon_defindex": 5027,
      "weapon_name": "Hand Wraps",
      "active": 1,
      "paintindex": 10006,
      "paintseed": 0,
      "paintwear": 0.25
    }
  ],
  "count": 1
}

POST /api/gloves/save

Save or update glove customization.

Request Body:

json
{
  "steamId": "76561198012345678",
  "loadoutId": 1,
  "team": 2,
  "weaponDefindex": 5027,
  "paintindex": 10006,
  "paintseed": 0,
  "paintwear": 0.25
}

Response:

json
{
  "success": true,
  "data": {
    "id": 1,
    "message": "Gloves saved successfully"
  }
}

Pins

GET /api/pins

Retrieve pins for the authenticated user's active loadout.

Query Parameters:

ParameterTypeRequiredDescription
steamIdstringYesUser's Steam ID

Response:

json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "steamid": "76561198012345678",
      "loadoutid": 1,
      "pin_defindex": 6001,
      "pin_name": "Skillful Pin"
    }
  ],
  "count": 1
}

POST /api/pins

Add or update pins in the user's collection.

Request Body:

json
{
  "steamId": "76561198012345678",
  "loadoutId": 1,
  "pins": [6001, 6002, 6003]
}

Response:

json
{
  "success": true,
  "message": "Pins updated successfully"
}

Team Values

TeamValueDescription
Terrorist2T-side weapons
Counter-Terrorist3CT-side weapons

Wear Ranges

ConditionFloat Range
Factory New0.00 - 0.07
Minimal Wear0.07 - 0.15
Field-Tested0.15 - 0.38
Well-Worn0.38 - 0.45
Battle-Scarred0.45 - 1.00

Pattern/Seed

The paintseed value (0-1000) determines the pattern placement on the skin. Some patterns are more valuable than others (e.g., "blue gem" patterns on Case Hardened).

Built with ❤️ by the CS2Inspect community