Get User Profiles

The WAX ExpressTrade GetProfile endpoint returns a Standard User Profile Object which includes WAX ExpressTrade userids, 2-Factor Authentication status, and other detailed information about WAX ExpressTrade Accounts. You can use this endpoint to get your account information or a user’s account information if you’re using a bearer token.

Authorization

Type Example Description
API Key -H "X-API-Key: 999d9ab99cde999a99cb9999df9999" Required (in header). Use this to get your profile.
Bearer -H 'Authorization: Bearer 452589dfgghhjjkl4885521236985' Required. Use this to get a user's profile.
OAuth Scopes: identity_basic, identity

URLs

Environment URL
Sandbox https://api-trade.wax-sandbox.com/IUser/GetProfile/v1/
Production https://api-trade.wax.io/IUser/GetProfile/v1/

Query Parameters

Parameter Example Description
with_extra true Optional boolean. Sends additional (sensitive) user profile data, including phone and email.

Example

Get Your Account Info


curl -X GET \
  'https://api-trade.wax-sandbox.com/IUser/GetProfile/v1/?with_extra=true' \
  -H "X-API-Key: 999d9ab99cde999a99cb9999df9999" \
  -H 'cache-control: no-cache' 

Get a User’s Account Info


curl -X GET \
  'https://api-trade.wax-sandbox.com/IUser/GetProfile/v1/?with_extra=true' \
  -H 'Authorization: Bearer 452589dfgghhjjkl4885521236985' \
  -H 'cache-control: no-cache' 

Response

Without Extra

{
    "status": 1,
    "time": 1567188639,
    "response": {
        "user": {
            "id": 6743505,
            "steam_id": "",
            "display_name": "User 6743505",
            "avatar": "https://www.gravatar.com/avatar/a57f183d4044fde00caffc5424731a2e?d=identicon&r=pg&s=32",
            "twofactor_enabled": true,
            "api_key_exists": true
        }
    }
}

With Extra

{
    "status": 1,
    "time": 1567188683,
    "response": {
        "user": {
            "id": 6743505,
            "steam_id": "",
            "display_name": "User 6743505",
            "avatar": "https://www.gravatar.com/avatar/a57f183d4044fde00caffc5424731a2e?d=identicon&r=pg&s=32",
            "twofactor_enabled": true,
            "api_key_exists": true,
            "sms_phone": "555-555-1234",
            "contact_email": "[email protected]",
            "allow_twofactor_code_reuse": false,
            "inventory_is_private": false,
            "auto_accept_gift_trades": false,
            "anonymous_transactions": false,
            "vcase_restricted": false
        }
    }
}

What's Next