Skip to content

API Reference / Steam accounts

Set the workspace's Steam Web API key

Upsert the workspace-tier Steam Web API key shared by every account in the workspace, the second tier of the key resolution hierarchy. The key is returned only by RevealWorkspaceAPIKey, which is recorded for the audit log. Every set or replacement is recorded too, with the mask and never the key.

POST/steam.v1.Steam/SetWorkspaceAPIKey

Request body

application/jsonRequired

Request to set or replace the workspace-tier Steam Web API key shared by every account in the workspace that has no key of its own.

apiKeystring

The workspace-tier Steam Web API key. Upserts in place, so a repeat call rotates the key.

Response body

application/json

Success

No fields.

curl -X POST "https://api.goldmine.to/steam.v1.Steam/SetWorkspaceAPIKey" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "1A2B3C4D5E6F7890ABCDEF1234567890"
  }'
{}