Skip to content

API Reference / Users

Fetch a single user by ID

Returns the user account identified by the given ID, including display name, email, and account status.

POST/accounts.v1.Accounts/GetUser

Request body

application/jsonRequired

Request for one user by identifier, limited to users with an accepted membership in the caller's workspace.

userId?string

Opaque 16-byte identifier of the user, base64-encoded in JSON.

Format"byte" base64

Response body

application/json

Success

user?User

The user's account details.

Show attributes
avatarUrl?string

URL of the user's avatar image, taken from their linked Discord account. Empty when there is none.

createdAt?string

When the account was created.

Format"date-time"

email?string

The user's email address, stored lowercase and unique across users.

id?string

Opaque 16-byte identifier of the user, assigned when the account is created. Base64-encoded in JSON.

Format"byte" base64

isAdministrator?boolean

True when the user is a platform administrator with access across every workspace.

name?string

The user's display name, 1 to 256 characters.

status?string

The account's status. A suspended user can no longer sign in.

Value in"USER_STATUS_ACTIVE""USER_STATUS_SUSPENDED"

updatedAt?string

When the account was last changed.

Format"date-time"

curl -X POST "https://api.goldmine.to/accounts.v1.Accounts/GetUser" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "EjRWeBI0VniQEjRWeBI0Vg=="
  }'
{
  "user": {
    "id": "EjRWeBI0VniQEjRWeBI0Vg==",
    "name": "Jordan Hale",
    "email": "jordan@acme.example",
    "status": "active",
    "createdAt": "2026-01-15T10:00:00Z",
    "updatedAt": "2026-03-02T14:22:30Z"
  }
}