---
title: "🔗 Generate a CS2 inspect-link from raw item data"
method: POST
path: "/steam/api/float/create-inspectlink"
tags: ["Float"]
---

# 🔗 Generate a CS2 inspect-link from raw item data

`POST /steam/api/float/create-inspectlink`

## Request

- Base URL: `https://www.steamwebapi.com`
- URL: `https://www.steamwebapi.com/steam/api/float/create-inspectlink`
- Auth: API key in query parameter `key`

Baseurl: https://www.steamwebapi.com/steam/api/float/create-inspectlink?key=YOUR_API_KEY

💬 **What this endpoint does:**
- Generates a fully self-contained CS2 inspect-link from raw item data — the inverse of the `GET /steam/api/float` decoder.
- Output is compatible with our own decoder, csfloat's inspect tool, and every CS2 client that opens the link in-game.
- No Steam game-coordinator round trip — the certificate hex carries the entire item state.

🛠️ **Use cases:**
- Mock inspect-links for UI development and screenshots.
- Reconstructing an inspect-link when only the raw item data is known (backfill, migration).
- Generating links for items that never existed in any real inventory.

🌐 **How to use:**
- POST a JSON body with at least `defindex`. All other fields default to 0/empty.
- `quality` is auto-derived from `stattrak` / `souvenir` flags if you do not set it explicitly (4 / 9 / 12).
- `stickers` (max 5), `keychains` (max 1) and `variations` (max 5) accept arrays of objects with `sticker_id` (required) plus any of `slot`, `wear`, `scale`, `rotation`, `pattern`, `tint_id`, `offset_x`, `offset_y`, `offset_z`.
- Response includes the generated `inspectlink`, the raw `certificate` hex, and a `decoded` round-trip — so you can verify what the link will produce when re-decoded.

## Request body

- object
  - `defindex` integer, required
  - `paintindex` integer
  - `paintseed` integer
  - `float` number, float
  - `rarity` integer
  - `quality` integer, nullable
  - `stattrak` boolean
  - `killeatercount` integer
  - `souvenir` boolean
  - `customname` string, nullable
  - `itemid` string, nullable
  - `accountid` integer, nullable
  - `origin` integer, nullable
  - `musicindex` integer, nullable
  - `inventory` integer, nullable
  - `style` integer, nullable
  - `stickers` object[]
    - `sticker_id` integer
    - `slot` integer
    - `wear` number, float
    - `rotation` number, float
    - `offset_x` number, float
    - `offset_y` number, float
  - `keychains` object[]
    - `sticker_id` integer
    - `slot` integer
    - `pattern` integer

## Response `200`

Inspect-link generated successfully.

- unknown

## Other responses

- `421`: JSON payload contains unknown fields.
- `422`: Validation error (missing required field, value out of range, malformed sticker entry, etc.).

---

[API](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation.md) · [All operations](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation/revisions/f9a4109cbda6?raw)
