Notion has added support for block colors in the Notion Public API. There is now a color keyword for the following block types: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, callout, quote, and table_of_contents.
For these block types, the block color is returned in the block object, and you can use the update block, append block children, and create page endpoints to update the color of existing blocks and create new blocks with color.
The colors supported are default, gray, brown, orange, yellow, green, blue, purple, pink, red, gray_background, brown_background, orange_background, yellow_background, green_background, blue_background, purple_background, pink_background, and red_background.
Notion has added support for block colors in the Notion Public API. There is now a
color
keyword for the following block types:paragraph
,heading_1
,heading_2
,heading_3
,bulleted_list_item
,numbered_list_item
,to_do
,toggle
,callout
,quote
, andtable_of_contents
.For these block types, the block color is returned in the block object, and you can use the update block, append block children, and create page endpoints to update the color of existing blocks and create new blocks with color.
The colors supported are
default
,gray
,brown
,orange
,yellow
,green
,blue
,purple
,pink
,red
,gray_background
,brown_background
,orange_background
,yellow_background
,green_background
,blue_background
,purple_background
,pink_background
, andred_background
.Example block object
Notion changelog: https://developers.notion.com/changelog/block-colors-are-now-supported-in-the-api