Get your account

GET/v1/me

Who the key belongs to, and their balance. A good first request: it shows the key works.

Request

This route takes no parameters.

curl 'https://api.rockvel.store/v1/me' \
  -H "Authorization: Bearer $ROCKVEL_KEY"

Answer 200

  • userobject

    The key's holder.

    Fields of user
    • steam_idstring

      SteamID64 of the account.

    • namestring

      Name in Steam.

    • avatar_urlstring

      Avatar in Steam.

    • trade_urlstringoptional

      Where sellers send your purchases. Left out until you set it.

  • balanceobjectoptional

    The account's money. Left out if it can't be read right now.

    Fields of balance
    • available_centsinteger

      What you can spend now.

    • held_centsinteger

      What is held until your deals end.

{
  "user": {
    "steam_id": "76561198087654321",
    "name": "bluegem",
    "avatar_url": "https://avatars.steamstatic.com/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg",
    "trade_url": "https://steamcommunity.com/tradeoffer/new/?partner=127388593&token=kZ3xQ9aB"
  },
  "balance": { "available_cents": 125000, "held_cents": 3250 }
}

Any route can also answer with the statuses on the Errors page.