Skip to content

BlocksAPI

Defined in: src/api/blocks.api.ts:113

Blocks API client for working with Notion blocks.

new BlocksAPI(client): BlocksAPI

Defined in: src/api/blocks.api.ts:120

NotionClient

BlocksAPI

BaseAPI<NotionBlock, Block>.constructor

readonly children: object

Defined in: src/api/blocks.api.ts:169

Block children operations.

append: (blockId, options) => Promise<AppendBlockChildrenResponse>

Append children blocks to a parent block.

string

The ID of the parent block

AppendBlockChildrenOptions

Options for appending children

Promise<AppendBlockChildrenResponse>

Response with appended blocks

https://developers.notion.com/reference/patch-block-children

list: (blockId, params?) => Promise<PaginatedList<Block>>

List all children of a block (paginated).

string

The ID of the parent block

PaginationParameters

Pagination parameters

Promise<PaginatedList<Block>>

Paginated list of child blocks

https://developers.notion.com/reference/get-block-children


readonly meetingNotes: object

Defined in: src/api/blocks.api.ts:220

Meeting-notes query operations.

query: (options?) => Promise<MeetingNotesQueryResult>

Query meeting-notes blocks across the workspace.

QueryMeetingNotesOptions

Filter, sort, and limit options

Promise<MeetingNotesQueryResult>

Matching meeting-notes blocks

https://developers.notion.com/reference/query-meeting-notes

delete(blockId): Promise<Block>

Defined in: src/api/blocks.api.ts:149

Delete (archive) a block.

string

The ID of the block to delete

Promise<Block>

The deleted block wrapped in a Block model

https://developers.notion.com/reference/delete-a-block


retrieve(blockId, options?): Promise<Block>

Defined in: src/api/blocks.api.ts:133

Retrieve a block by ID.

string

The ID of the block to retrieve (with or without dashes)

RetrieveBlockOptions

Options for filtering properties

Promise<Block>

The block wrapped in a Block model

https://developers.notion.com/reference/retrieve-a-block


update(blockId, options): Promise<Block>

Defined in: src/api/blocks.api.ts:162

Update a block’s properties.

string

The ID of the block to update

UpdateBlockOptions

Options for updating the block

Promise<Block>

The updated block wrapped in a Block model

https://developers.notion.com/reference/update-a-block