append_block_children | Append raw block objects as children of a block or page (args: block_id, children: object[], after?). |
append_bulleted_list | Append a bulleted list (one item per string) to a page or block (args: block_id, items: string[]). |
append_callout | Append a callout block — highlighted note with optional emoji icon (args: block_id, text, emoji?, color?). |
append_code_block | Append a code block with syntax highlighting (args: block_id, code, language, caption?). |
append_paragraph | Append a plain-text paragraph to a page or block (args: block_id, text). |
append_to_do | Append to-do checkbox items (args: block_id, items: string[], checked?). |
archive_page | Archive a page — move it to trash (args: page_id). |
create_comment | Add a comment to a page or reply to a thread (args: text, page_id? or discussion_id? — exactly one). |
create_database | Create a database as a child of a page, with a property schema (args: parent_page_id, title, properties, is_inline?). |
create_page | Create a page under a parent page or as an entry in a database (args: parent, properties, children?, icon?, cover?). |
delete_block | Delete (archive) a block (args: block_id). |
restore_page | Restore an archived page from trash (args: page_id). |
update_block | Update the content of a block (pass the block-type object) or its archived state (args: block_id, block?, archived?). |
update_database | Update the title, description or property schema of a database (args: database_id, title?, description?, properties?). |
update_page | Update the properties, icon, cover or archived state of a page (args: page_id, properties?, archived?, icon?, cover?). |