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.
/ steam. v1. Steam/ BulkDeleteAccountsRequest 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?stringThe requested account name.
error?BulkDeleteAccountErrorThe failure. Unset when the account is deleted, including when it did not exist or was already deleted.
Show attributes
code?stringMachine-readable failure reason.
Value in"BULK_
message?stringHuman-readable failure detail.
application/json
The request was malformed, such as a missing required field or an unparseable cursor.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The request lacks a valid API key in the Authorization header.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The API key is not allowed to perform this action on this workspace.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The request was rate limited. Slow down and retry later.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
An internal server error occurred.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
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"
]
}'const res = await fetch("https://api.goldmine.to/steam.v1.Steam/BulkDeleteAccounts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CSTRADER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"accountNames": [
"trader_bot_01",
"trader_bot_02"
]
}),
});
const data = await res.json();body := strings.NewReader(`{
"accountNames": [
"trader_bot_01",
"trader_bot_02"
]
}`)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "https://api.goldmine.to/steam.v1.Steam/BulkDeleteAccounts", body)
if err != nil {
return err
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("CSTRADER_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)import os, requests
res = requests.post(
"https://api.goldmine.to/steam.v1.Steam/BulkDeleteAccounts",
headers={"Authorization": f"Bearer {os.environ['CSTRADER_API_KEY']}"},
json={
"accountNames": [
"trader_bot_01",
"trader_bot_02"
]
},
)
data = res.json(){
"results": [
{
"accountName": "trader_bot_01"
},
{
"accountName": "trader_bot_02",
"error": {
"code": "BULK_DELETE_ACCOUNT_ERROR_CODE_INTERNAL",
"message": "account was not deleted"
}
}
]
}{
"code": "invalid_argument",
"message": "The request was malformed, such as a missing required field or an unparseable cursor."
}{
"code": "unauthenticated",
"message": "The request lacks a valid API key in the Authorization header."
}{
"code": "permission_denied",
"message": "The API key is not allowed to perform this action on this workspace."
}{
"code": "resource_exhausted",
"message": "The request was rate limited. Slow down and retry later."
}{
"code": "internal",
"message": "An internal server error occurred."
}