UserInfo Endpoint
Request
curl -X GET "https://hub.spookysrv.com/index.php?route=/api/v2/oauth2/user" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer kMV0a7ZbUlCsKk6lVH8T6pYV8u8Rn3toB4EocqS8c"Response
{
"id": 1, // User ID
"username": "Username",
"email": "[email protected]",
"avatar": "https://hub.spookysrv.com/uploads/avatars/1.png?v=1688027357",
"sub": 1, // Same as `id`, only included if token has `openid` scope
"groups": [{ "id": 2, "name": "Admin", "order": 1 }],
"integrations": [
{
"integration": "Discord",
"identifier": "XXXXXXXXXXXXXXX",
"username": "XXXXXXXXX",
"verified": true,
"linked_date": 11111111 // UNIX Timestamp
},
{
"integration": "Google",
"identifier": "XXXXXXXXXX",
"username": "XXXXXXXX",
"verified": true,
"linked_date": 11111111 // UNIX Timestamp
}
]
}
Last updated