How can Notion's "Create Page from Database" action create a text block with over 2000 characters?

This topic was automatically generated from Slack. You can find the original thread here.

Just realized that your “Create Page from Database” action for Notion can create a text block with more than 2000 characters.

How is that possible?

The API docs state that 2000 characters is the limit for a rich text block, and I’ve hit that limit before when using Node steps in Pipedream Request limits

If I select the text, I can see these thin white lines between every 2-3 sentences. But it’s still all one block.

And the Update a Block endpoint says it replaces the entire contents of the block

and @U02S7FH4T89 are the closest to the code for the Notion actions

Ooooooooooooh hang on

I think I’ve been fundamentally misunderstanding something about the API

A Rich Text Object is limited to 2000 character, BUT a paragraph block is an array of Rich Text Objects, and can include up to 100

So a Text block is actually limited to 200,000 characters

do you get the 2000 character error on longer files only?