API Reference / Steam accounts
Reconnect accounts in error
Request a Steam session restart for up to 100 accounts in the error state, or for every such account of the workspace when none are named. Accounts whose error the customer must fix first (rejected credentials, a restricted account) or whose logins Steam is throttling are refused with the reason, so a reconnect never repeats a login Steam will reject.
/ steam. v1. Steam/ ReconnectAccountsRequest body
application/jsonRequired
Request to restart the Steam sessions of accounts in the error state.
accountNames?array<string>Accounts to reconnect, at most 100. Empty means every account of the workspace in the error state, up to 100.
Response body
application/json
Success
results?array<ReconnectAccountResult>One result per account considered.
Show attributes
accountName?stringThe account this result is for.
refusal?stringWhy no restart was requested. Unspecified when started.
Value in"RECONNECT_"RECONNECT_"RECONNECT_"RECONNECT_"RECONNECT_
started?booleanTrue when a session restart was requested. The new session status arrives through AccountUpdated.
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
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/ReconnectAccounts" \
-H "Authorization: Bearer $CSTRADER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountNames": [
"trader_bot_01"
]
}'const res = await fetch("https://api.goldmine.to/steam.v1.Steam/ReconnectAccounts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CSTRADER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"accountNames": [
"trader_bot_01"
]
}),
});
const data = await res.json();body := strings.NewReader(`{
"accountNames": [
"trader_bot_01"
]
}`)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "https://api.goldmine.to/steam.v1.Steam/ReconnectAccounts", 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/ReconnectAccounts",
headers={"Authorization": f"Bearer {os.environ['CSTRADER_API_KEY']}"},
json={
"accountNames": [
"trader_bot_01"
]
},
)
data = res.json(){
"results": [
{
"accountName": "trader_bot_01",
"started": true
}
]
}{
"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": "internal",
"message": "An internal server error occurred."
}