Sync with Waxpeer session to auto-fill API key

Update account settings (tradelink, access token, proxy, steam API, and webhook)

POST/v1/update-account

Unified endpoint to update multiple account settings in one request. This is useful for partners who need to manage accounts that are waiting for trade verification and balance unfreezing without keeping socket connections open. At least one field must be provided.

Parameters

NameLocationTypeDescription
api
required
querystring

Request body

NameLocationTypeDescription
tradelink
optional
bodystring

Partner's Steam trade URL (tradelink)

access_token
optional
bodystring

Steam access token

refresh_token
optional
bodystring

refresh_token

proxy
optional
bodystring

proxy

steam_api
optional
bodystring

Steam Web API key

webhook
optional
bodystring

webhook

reset_api
optional
bodyboolean

reset_api

Example
{
  "tradelink": "https://steamcommunity.com/tradeoffer/new/?partner=123456789&token=abcdefgh",
  "access_token": "ZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5...",
  "refresh_token": "ZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5...",
  "proxy": "user123:[email protected]:8080",
  "steam_api": "12345678901234567890123456789012",
  "webhook": "https://your-site.com/webhook",
  "reset_api": true
}

Responses

200 Successful operation

NameTypeDescription
success
optional
boolean

Whether the operation succeeded

tradelink_updated
optional
boolean

Whether trade URL was updated

access_token_updated
optional
boolean

Indicates whether the access token was successfully updated

proxy_updated
optional
boolean

Indicates whether proxy was updated

steam_api_updated
optional
boolean

Whether Steam API key was updated

steam_api_msg
optional
string

Steam API status update message

webhook_updated
optional
boolean

Whether webhook was updated

webhook_msg
optional
string

Webhook update message

api_reset
optional
boolean

Indicates that the API key was revoked (set to null)

msg
optional
string

Reason message when success is false

Response
{
  "success": true,
  "tradelink_updated": true,
  "access_token_updated": true,
  "proxy_updated": true,
  "steam_api_updated": true,
  "steam_api_msg": "same_api",
  "webhook_updated": true,
  "webhook_msg": "same_value",
  "api_reset": true,
  "msg": "Invalid tradelink"
}

400 Bad Request

NameTypeDescription
success
optional
boolean

Whether the operation succeeded

msg
optional
string

Reason message when success is false

Response
{
  "success": false,
  "msg": "At least one field (tradelink, access_token, proxy, steam_api, webhook, or reset_api) must be provided"
}