getUser

abstract suspend fun getUser(id: UuidString): User

Retrieves a user by their ID. This method fetches information about a specific user, such as their name, type, and avatar.

Return

A User object containing user details

Parameters

id

The unique identifier of the user (UUID format)

See also

Throws

NotionApiException

if the user doesn't exist or the API request fails