API リファレンス
Auth
Management API: GET /whoami
Inspect the current token's granted scopes, website restrictions, and any capabilities hidden from tools/list (with the exact reason: missing_scope or feature_disabled). Call this before telling the user a feature is unsupported. Pass websiteId to also get your team role on that website and the effective permissions there (token scopes intersected with the role's permissions), plus capabilities your token has the scope for but your role does not allow on that website. Errors: UNAUTHORIZED, FORBIDDEN (websiteId given but you are not a member of that website).
Parameters
websiteIdstring · queryOptional: also report your role and effective permissions on this website.
Response 200
userIdstringrequiredAuthenticated user id.
tokenIdstringrequiredCurrent token id.
channelstringrequiredRequest channel (mcp or api).
scopesstring[]requiredPermission scopes granted to this token.
websiteScope"all" | "restricted"requiredWhether the token can access all of the user's websites or only specific websiteIds.
websiteIdsstring[] | nullrequiredAllowed websiteIds when websiteScope is 'restricted'; null when 'all'.
hiddenCapabilitiesobject[]requiredhiddenCapabilities[].namestringrequiredCapability name.
hiddenCapabilities[].reason"missing_scope" | "feature_disabled"requiredWhy the capability is hidden from tools/list.
hiddenCapabilities[].requiredScopestring | nullrequiredScope needed to unlock this capability.
siteobjectPresent when websiteId is passed.
site.websiteIdstringrequiredsite.role"owner" | "admin" | "custom"requiredYour team role kind on this website.
site.roleNamestring | nullrequiredCustom role name set by the site owner; null for owner and admin.
site.memberPermissionsstring[]requiredPermissions your team role grants on this website.
site.effectivePermissionsstring[]requiredWhat calls on this website can actually do: token scopes intersected with memberPermissions.
site.blockedByRoleobject[]requiredCapabilities your token has the scope for but your role does not allow here; ask the site owner or an admin to change your role.
site.blockedByRole[].namestringrequiredsite.blockedByRole[].requiredPermissionstringrequired
Errors
UNAUTHORIZED401FORBIDDEN403 · websiteId given but you are not a member of that website
MCP tool auth_whoami
curl -X GET "https://app.kanorio.com/api/v1/whoami" \ -H "Authorization: Bearer $KANORIO_TOKEN"
{
"userId": "usr_example01",
"tokenId": "tok_example01",
"channel": "mcp",
"scopes": [
"console:view",
"editor:enter",
"content:edit"
],
"websiteScope": "all",
"websiteIds": null,
"hiddenCapabilities": [
{
"name": "site.publish",
"reason": "missing_scope",
"requiredScope": "site:lifecycle"
}
]
}