Tradeoffer
π¦ Create a Trade Offer on Steam
Baseurl: https://www.steamwebapi.com/steam/api/trade/create?key=YOUR_API_KEY
π¬ **What this endpoint does:**
- Initiates a new trade offer for a specific user.
- Requires a valid `steamloginsecure`, retrievable from Steam cookies.
π οΈ **Features:**
- Supports sending items (`myitemassetids`) and requesting items (`partneritemassetids`).
- Trade link and partner Steam ID ensure secure targeting.
- Includes a custom message option for the trade.
π **How to use:**
- Provide required parameters in a JSON payload.
- Use optional parameters like `game` for game-specific trade offers.
post/steam/api/trade/create
Request
- Base URL: https://www.steamwebapi.com
- URL: https://www.steamwebapi.com/steam/api/trade/create
- Auth: API key in query parameter key
Query parameters
Your API key for authentication. Retrieve it from your Dashboard (top-right corner).
If you run in production, please set this to 1. Default is 0. This is in future required, and if not set, you will get a warning.
Request body
Example request
{
"steamloginsecure": "76561198271552942||eyAidHlwIjogIkpXVCIsICJhbGciOiAiRWREU0EiIH0....",
"partneritemassetids": "5533344212,23534354",
"myitemassetids": "43543323,2323423423",
"tradelink": "https://steamcommunity.com/tradeoffer/new/?partner=123456789&token=123456789",
"partnersteamid": "123456789",
"message": "This is a test message",
"game": "cs2"
}Response
Trade offer successfully created.
Changes
No recorded changes to this operation across all 1 revision of this API.