Skip to main content

User Info

GET /v1/userinfo

Get authenticated user's profile information.

Required Permission: read:profile

Request

curl -X GET "https://connect.kryptos.io/api/v1/userinfo" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "X-Client-Id: YOUR_CLIENT_ID" \
-H "X-Client-Secret: YOUR_CLIENT_SECRET"

Response

{
"message": "User information retrieved successfully",
"userInfo": {
"sub": "user_123",
"name": "John Doe",
"email": "john@example.com",
"email_verified": true,
"preferred_username": "john@example.com"
},
"scopes": ["openid", "profile", "email"]
}

Response Fields

FieldTypeDescription
userInfo.substringUser ID
userInfo.namestringUser's full name
userInfo.emailstringEmail address
userInfo.email_verifiedbooleanEmail verification status
userInfo.preferred_usernamestringPreferred username
scopesarrayGranted OAuth scopes