-
Notifications
You must be signed in to change notification settings - Fork 1
Module FAQ
fasteiner edited this page May 18, 2025
·
1 revision
- [How to obtain an Bearer Token / Notion API Key / Integration Key?](# How to obtain an Bearer Token / Notion API Key / Integration Key?)
Install-Module NotionImport-Module Notion- [How to connect for the first time?](# How to connect for the first time?)
1. Register a new account at [https://notion.com](https://notion.com)
2. [https://developers.notion.com](https://developers.notion.com) -> Click "View my integrations"
3. At My integrations click Add (**+**)
4. Select the name, workspace, type and logo - Click Save
5. Click on "Configure"
6. Secret -> Click on "Show"
7. Click on "Copy"
8. That's your Bearer Token / API Key / Integration Token
$BearerToken = Read-Host -Prompt "Enter your Bearer token" | ConvertTo-Securestring -AsPlainText
Connect-Notion -BearerToken $BearerToken
1. Browse to you Notion page (e.g. https://www.notion.so/My-TestPage-0123456789A1234567890)
2. Copy the Id of the page (the alphanumerical part after the page name e.g. 0123456789A1234567890)
3. ```Get-NotionPage -PageId 0123456789A1234567890```
4. You will receive an Notion object containing the blocks of the page
1. Browse to you Notion page (e.g. https://www.notion.so/My-TestPage-0123456789A1234567890)
2. Copy the Id of the page (the alphanumerical part after the page name e.g. 0123456789A1234567890)
3. ```Get-NotionPageProperties -PageId 0123456789A1234567890```
Home
Module-FAQ
SetupOfIntegration
Commands
- Connect-Notion
- ConvertTo-NotionObject
- Disconnect-Notion
- Invoke-NotionApiCall
- Block
- Add-NotionBlockToPage
- Get-NotionBlock
- Get-NotionBlockChildren
- New-NotionBlock
- Remove-NotionBlock
- Update-NotionBlock
- _RichText
- Bookmark
- Breadcrumb
- BulletedListItem
- Callout
- ChildDatabase
- Code
- Column
- ColumnList
- Divider
- Embed
- Equation
- File
- Heading
- Image
- LinkPreview
- NumberedListItem
- Paragraph
- Quote
- Synced
- Table
- TableOfContents
- TableRow
- ToDo
- Toggle
- Video
- Database
- Emoji
- File
- Page
- Parent
- User
Classes
- Block
- Comment
- Database
- Database
- DatabaseProperties
- Emoji
- File
- General
- Page
- page
- page_reference
- PageProperties
- Parent
- Unfurl attribute
- User
Enums
- notion_color
- icontype
- Block
- blocktype
- RichText
- rich_text_type
- rich_text_mention_type
- Type
- MentionType
- DatabaseProperties
- File
- PageProperties
- Parent
- Properties
- User