Sync with Waxpeer session to auto-fill API key

Create a new user and obtain a unique API key or get an API key from an already created account without Steam OAuth

POST/v1/user

Create a new user and obtain a unique API key or get an API key from an already created account without Steam OAuth.

Both accounts must be unrestricted on Waxpeer.

Target account must be new on Waxpeer or have no active 2fa and enabled the collection of account information (You can enable it on the site if it is turned off).

The token will not be used as a cookie in Steam during the API key creation/get process.

Parameters

NameLocationTypeDescription
api
required
querystring

Request body

NameLocationTypeDescription
token
optional
bodystring

Steam trade link token or access token

Example
{
  "token": "ZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnpkV0lpT2lJeE1qTTBOVFkzT0Rrd0lpd2libUZ0WlNJNklrcHZhRzRnUkc5bElpd2lhV0YwSWpveE5URTJNak01TURJeWZRLlNmbEt4d1JKU01lS0tGMlFUNGZ3cE1lSmYzNlBPazZ5SlZfYWRRc3N3NWM="
}

Responses

200 Successful operation

NameTypeDescription
success
optional
boolean

Whether the operation succeeded

msg
optional
enum

Reason message when success is false

enum: Missing API, wrong api, You are banned, please contact support, missing_token, Token must be base64 encoded, You have restrictions on your account, You have restrictions on your target account, You can not use your own token, Wrong token, Please disable 2FA on the site first, You have disabled the collection of account information, please enable it on the website, Please try again later, Need to refresh access token

data
optional
object

Data object

api
optional
string
isNew
optional
boolean

Whether the target account is newly registered on Waxpeer

exp
optional
number

Token expiration time

Response
{
  "success": true,
  "msg": "Need to refresh access token",
  "data": {
    "api": "1hbhbhodexkdei1axlc3ka7woibo2h16zoyidjv5wfwvqd6bty39e4086d110228",
    "isNew": true
  },
  "exp": 1712852259
}

403 Invalid or missing API key

NameTypeDescription
success
optional
boolean

Whether the operation succeeded

msg
optional
string

Reason message when success is false

Response
{
  "success": false,
  "msg": "Missing API"
}