Skip to content

API Reference / Steam friends

Change a Steam friend relationship

Send, accept or ignore a friend invite, remove a friend or cancel a sent invite, or unblock a user, through the account live Steam session. The action is routed to the account session, not applied. The resulting relationship arrives through FriendsListUpdated.

POST/steam.v1.Steam/ApplyFriendAction

Request body

application/jsonRequired

Request to change a workspace account's relationship with another Steam user.

accountNamestring

The workspace's Steam account that acts.

actionstring

The change to make.

Value in"FRIEND_ACTION_SEND_INVITE""FRIEND_ACTION_ACCEPT_INVITE""FRIEND_ACTION_IGNORE_INVITE""FRIEND_ACTION_REMOVE""FRIEND_ACTION_UNBLOCK"

partnerSteamIdstring

The other user's 64-bit SteamID, as a decimal string.

Response body

application/json

Success

requestId?string

Server-generated correlation id for the asynchronous outcome.

curl -X POST "https://api.goldmine.to/steam.v1.Steam/ApplyFriendAction" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountName": "trader_bot_01",
    "partnerSteamId": "76561198044443322",
    "action": "FRIEND_ACTION_ACCEPT_INVITE"
  }'
{
  "requestId": "0193a0f2-6c1e-7a51-9d0e-2f4b6c8d1e3a"
}