Get User Profiles
Once you Get a Bearer Token, you can call any OAuth enabled endpoint on behalf of the user who authorized the token. In this example, we’ll use the profile endpoint with the identity_wcw scope.
URLs
Environment | URL |
---|---|
Production | https://api-idm.wax.io/v1/profile |
Header Parameters
You’ll need to use Bearer authorization to authenticate with OAuth enabled endpoints:
Authorization: Bearer {access_token}
Body Parameters
N/A
Example
curl -X GET \
https://api-idm.wax.io/v1/profile \
-H 'Authorization: Bearer 452589dfgghhjjkl4885521236985' \
-H 'cache-control: no-cache'
Successful Response
{
"id": 6456092,
"steam_id": null,
"username": "",
"display_name": "User 6456092",
"email": "[email protected]",
"first_name": "WAX",
"last_name": "User",
"social_accounts": [],
"tos_accepted": true,
"age_accepted": true,
"is_banned": false,
"additional_authentication": {
"enabled": true,
"type": "Google 2FA",
"type_id": 1,
"enabled_at": "2019-09-23 15:55:39"
},
"address": {
"address1": "",
"address2": "",
"address3": "",
"city": "",
"locality": "",
"postal_code": "",
"country": ""
},
"wcw": {
"account_name": "3m1q4.wam",
"public_keys": [
"EOS6rjGKGYPBmVGsDDFAbM6UT5wQ9szB9m2fEcqHFMMcPge983xz9",
"EOS7wTCoctybwrQWuE2tWYGwdLEGRXE9rrzALeBLUhWfbHXysFr9W"
]
}
}