-
Notifications
You must be signed in to change notification settings - Fork 1
Connect Notion
Category: Commands external help file: Notion-help.xml Module Name: Notion online version: https://developers.notion.com/reference/update-property-schema-object schema: 2.0.0 Type: Command
Connects to the Notion API using the provided Bearer token and URL.
Connect-Notion [-BearerToken] <SecureString> [[-notionURL] <String>] [[-APIVersion] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
The Connect-TSNotion function is used to establish a connection to the Notion API. It requires a Bearer token and the URL to the Notion API. Optionally, you can specify the API version.
How to obtain an Bearer Token / Notion API Key / Integration Key? 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
Connect-Notion -BearerToken $secureToken -notionURL "https://api.notion.com/v1" -APIVersion '2022-06-28'
Connects to the Notion API using the specified Bearer token, URL, and API version.
$BearerToken = Read-Host -Prompt "Enter your Bearer token" | ConvertTo-Securestring -AsPlainText
Connect-Notion -BearerToken $BearerToken
Asks for the API token and connects to the Notion API.
The version of the Notion API to use. Valid values are '2022-02-22' and '2022-06-28'. This parameter is optional and defaults to '2022-06-28'.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: 2022-06-28
Accept pipeline input: False
Accept wildcard characters: FalseThe Bearer token (aka APIKey) used for authentication. This parameter is mandatory.
Type: SecureString
Parameter Sets: (All)
Aliases: bearer
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe URL to the Notion API. This parameter is optional and defaults to 'https://api.notion.com/v1'
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Https://api.notion.com/v1
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
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