Authentication
Pass your key as the query parameter api. This is not a Bearer token.
API key
Every authenticated REST call takes ?api=YOUR_KEY — Your WAXPEER API. Generated examples never use Authorization.
GET https://api.waxpeer.com/v1/user?api={{API_KEY}}Create or copy a key at waxpeer.com/profile/user. Paste it in Try it on a method page to send live requests. The key stays in localStorage on this device and is never logged.
Going online (required to sell)
Now in order to go online and sell items safely you need to implement the following logic:
- Make sure that you have enabled the collection of user data on the website under the "Sell items" tab (by default it is enabled).
- Going online now requires a valid Steam access token because the API key functionality has been limited. You need to send it once an hour or immediately after a refresh (the token is active only 24 hours after refreshing in Steam), otherwise it will expire and all your items will be disabled from sale, and active trades will be considered stalled and may be canceled.
- We categorically recommend not to make a mobile confirmation for a created trade until you send its trade id using the callback . If that POST fails, do not confirm.
- Online may be delayed until the access token is verified or a valid token is received. Therefore, please note that in the trade socket there is a new user_change event, in which can_p2p indicates whether you are online or not when it is changed by p2p controller.
- If you do not want to use npm package, but will be implementing your own trade socket connection, make sure you specify the source parameter on the authentification event (auth) without which the account will not be able to get online (example: "source": "myAwesomeProject").
Token should be in base64 format and belong to your account. Due to the steam update, it became mandatory to pass regularly (we recommend sending once an hour and keep 6 hours from the time we receive it) to be online and sell on the marketplace.
Unified settings: POST /v1/update-account (tradelink, access token, proxy, Steam API, webhook).
Official Node SDK
npm install waxpeerimport { Waxpeer, TradeWebsocket } from 'waxpeer'
const WP = new Waxpeer(process.env.WAXPEER_API)Custom trade-socket clients must send source on the auth event or the account will not go online.