Documentation Index
Fetch the complete documentation index at: https://mintlify.com/teng-lin/notebooklm-py/llms.txt
Use this file to discover all available pages before exploring further.
client.sharing gives you full control over how a notebook is shared — both publicly via a link and privately with individual users by email. You can read the current sharing state, toggle public access, restrict what anonymous viewers can see, and grant or revoke editor or viewer permissions for specific Google accounts. All sharing operations return a ShareStatus object reflecting the notebook’s complete sharing configuration after the change.
Methods
get_status(notebook_id)
Reads the current sharing configuration for a notebook.
The notebook ID.
Full sharing configuration including public status, view level, shared users, and share URL.
set_public(notebook_id, public)
Enables or disables public link sharing for the notebook.
The notebook ID.
True to make the notebook accessible to anyone with the link; False to restrict to explicitly shared users only.Updated
ShareStatus. When public=True, status.share_url contains the public URL.set_view_level(notebook_id, level)
Controls what anonymous (link-based) viewers can access when the notebook is public.
The notebook ID.
ShareViewLevel.FULL_NOTEBOOK — viewers can access chat, sources, and notes.ShareViewLevel.CHAT_ONLY — viewers can only use the chat interface.add_user(notebook_id, email, permission, notify, welcome_message)
Shares the notebook with a specific Google account by email.
The notebook ID.
Google account email address of the user to add.
SharePermission.EDITOR — can edit notebook content.SharePermission.VIEWER — read-only access.When
True, Google sends an email notification to the invited user.Optional message to include in the notification email.
Updated
ShareStatus including the newly added user.update_user(notebook_id, email, permission)
Changes the permission level for a user already sharing the notebook.
The notebook ID.
Email of the user whose permission should change.
New permission level (
EDITOR or VIEWER).Updated
ShareStatus.remove_user(notebook_id, email)
Revokes all access for a user.
The notebook ID.
Email of the user to remove.
Updated
ShareStatus without the removed user.ShareStatus dataclass
The notebook this status describes.
True when anyone with the link can access the notebook.ShareAccess.RESTRICTED — only explicitly shared users.ShareAccess.ANYONE_WITH_LINK — public link active.FULL_NOTEBOOK or CHAT_ONLY.List of users with explicit access. Does not include the notebook owner.
Public share URL when
is_public=True, otherwise None.SharedUser dataclass
User’s Google account email.
Current permission level:
OWNER, EDITOR, or VIEWER.User’s display name, or
None if not available.URL to the user’s profile avatar, or
None.Sharing enums
SharePermission
| Value | Description |
|---|---|
SharePermission.OWNER | Full control. Cannot be assigned — read-only, indicates the notebook owner. |
SharePermission.EDITOR | Can edit notebook content, add sources, generate artifacts. |
SharePermission.VIEWER | Read-only access. |
ShareViewLevel
| Value | Description |
|---|---|
ShareViewLevel.FULL_NOTEBOOK | Viewers access chat, sources, and notes. |
ShareViewLevel.CHAT_ONLY | Viewers only see the chat interface. |
ShareAccess
| Value | Description |
|---|---|
ShareAccess.RESTRICTED | Only explicitly invited users can access the notebook. |
ShareAccess.ANYONE_WITH_LINK | Anyone with the share URL can access the notebook. |