Skip to content

UsersAPI

Defined in: src/api/users.api.ts:16

Users API client for working with Notion users.

new UsersAPI(client): UsersAPI

Defined in: src/api/users.api.ts:23

NotionClient

UsersAPI

BaseAPI<NotionUser, User>.constructor

list(params?): Promise<PaginatedList<User>>

Defined in: src/api/users.api.ts:47

List all users in the workspace (paginated).

PaginationParameters

Pagination parameters

Promise<PaginatedList<User>>

Paginated list of users

https://developers.notion.com/reference/get-users


me(): Promise<User>

Defined in: src/api/users.api.ts:60

Retrieve the bot user associated with the API token.

Promise<User>

The bot user wrapped in a User model

https://developers.notion.com/reference/get-self


retrieve(userId): Promise<User>

Defined in: src/api/users.api.ts:35

Retrieve a user by ID.

string

The ID of the user to retrieve

Promise<User>

The user wrapped in a User model

https://developers.notion.com/reference/get-user