1

I have the database id but I want to access a block containing a pdf. The block is there in the page and the page is present in the database. So is there a way to access the block id from the database id?

imk
  • 133
  • 6

1 Answers1

2

Query the database first to get the page_id, then use the get block children endpoint to get the blocks of that page. You can then extract the PDF block

Jonas Scholz
  • 485
  • 5
  • 15