API Reference / Steam account groups
Fetch multiple account groups by ID
Returns the account groups matching the given IDs within a workspace, alongside the IDs that did not resolve. Soft-deleted account groups are treated as not found.
/ contracts. v1. Contracts/ GetAccountGroupsRequest body
application/jsonRequired
Request for several account groups in the caller's workspace by identifier, in one call.
accountGroupIds?array<string>Account group identifiers to fetch.
Response body
application/json
Success
accountGroups?array<AccountGroup>The account groups that were found.
Show attributes
createdAt?stringWhen the account group was created.
Format"date-time"
deletedAt?stringWhen the account group was soft-deleted, if it has been.
Format"date-time"
id?stringOpaque 16-byte account group identifier, base64-encoded in JSON.
Format"byte" base64
members?array<string>Steam account names that belong to the group.
name?stringHuman-readable account group name.
updatedAt?stringWhen the account group was last modified.
Format"date-time"
workspaceId?stringWorkspace the account group belongs to.
Format"byte" base64
notFoundIds?array<string>Requested IDs that did not resolve to an account group.
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/contracts.v1.Contracts/GetAccountGroups" \
-H "Authorization: Bearer $CSTRADER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountGroupIds": [
"EBESExQVFhcYGRobHB0eHw==",
"ICEiIyQlJicoKSorLC0uLw=="
]
}'const res = await fetch("https://api.goldmine.to/contracts.v1.Contracts/GetAccountGroups", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CSTRADER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"accountGroupIds": [
"EBESExQVFhcYGRobHB0eHw==",
"ICEiIyQlJicoKSorLC0uLw=="
]
}),
});
const data = await res.json();body := strings.NewReader(`{
"accountGroupIds": [
"EBESExQVFhcYGRobHB0eHw==",
"ICEiIyQlJicoKSorLC0uLw=="
]
}`)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "https://api.goldmine.to/contracts.v1.Contracts/GetAccountGroups", 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/contracts.v1.Contracts/GetAccountGroups",
headers={"Authorization": f"Bearer {os.environ['CSTRADER_API_KEY']}"},
json={
"accountGroupIds": [
"EBESExQVFhcYGRobHB0eHw==",
"ICEiIyQlJicoKSorLC0uLw=="
]
},
)
data = res.json(){
"accountGroups": [
{
"id": "EBESExQVFhcYGRobHB0eHw==",
"workspaceId": "AAECAwQFBgcICQoLDA0ODw==",
"name": "AK-47 Redline buyers",
"members": [
"redline_trader_eu",
"redline_trader_us",
"float_hunter_01"
],
"createdAt": "2026-03-12T08:30:00Z",
"updatedAt": "2026-05-20T14:45:00Z"
}
],
"notFoundIds": [
"ICEiIyQlJicoKSorLC0uLw=="
]
}{
"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."
}