Skip to content

API Reference / Steam accounts

Delete several Steam accounts

Remove up to 100 Steam accounts from the workspace in one call, as DeleteAccount does for one. Each account succeeds or fails on its own and the response reports the outcome for every requested name. An account that does not exist or is already deleted counts as deleted, so repeating a request is safe.

POST/steam.v1.Steam/BulkDeleteAccounts

Request body

application/jsonRequired

Request to delete several Steam accounts from the caller's workspace. Each account is deleted on its own, as DeleteAccount does for one.

accountNamesarray<string>

Steam account names to delete, at least one and at most 100, without duplicates.

Response body

application/json

Success

results?array<BulkDeleteAccountResult>

One result per requested account name, in the same order as the request.

Show attributes
accountName?string

The requested account name.

error?BulkDeleteAccountError

The failure. Unset when the account is deleted, including when it did not exist or was already deleted.

Show attributes
code?string

Machine-readable failure reason.

Value in"BULK_DELETE_ACCOUNT_ERROR_CODE_INTERNAL"

message?string

Human-readable failure detail.

curl -X POST "https://api.goldmine.to/steam.v1.Steam/BulkDeleteAccounts" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountNames": [
      "trader_bot_01",
      "trader_bot_02"
    ]
  }'
{
  "results": [
    {
      "accountName": "trader_bot_01"
    },
    {
      "accountName": "trader_bot_02",
      "error": {
        "code": "BULK_DELETE_ACCOUNT_ERROR_CODE_INTERNAL",
        "message": "account was not deleted"
      }
    }
  ]
}