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

Steam trade URL

access_token
optional
bodystring

Steam access token in base64 format

refresh_token
optional
bodystring

Steam refresh token in base64 format (optional, used with access_token)

proxy
optional
bodystring

Proxy server for Steam API requests. Format: username:password@host:port. Pass empty string to clear.

steam_api
optional
bodystring

Steam API key (32 characters). Get it from https://steamcommunity.com/dev/apikey

webhook
optional
bodystring

Webhook URL for notifications. Must be a valid HTTP/HTTPS URL. Pass empty string to clear.

reset_api
optional
bodyboolean

When true, revokes the current API key (sets it to null). A new key is issued on the next Steam-token authentication.

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

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 - no fields provided

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