Notion API Return 404 "code":"object_not_found"

1.5k Views Asked by At

Why my Notion API return a 404 status, even though i already connect my Database with my Notion Integration, where am i getting this wrong?

Here's my request via Postman: request to notion api using database_id

And here's my database id: database_id

Database connected with my Notion Integration: database connected with my notion integration

My Notion Workspace connected with my Notion Integration: workspace connected with my integration

im hundred percent sure already providing the correct bearer token from my integration on my request via postman, why am i getting this error?

I've tried follow allong with the Notion offical documentation guides but it just doesnt work

2

There are 2 best solutions below

0
On BEST ANSWER

"Dont believe everything you see on the internet", i just figured it out it's turn out that my Database is actually not a Database when you create add a new page in notion it doesn't mean that you're making a new database.

In order to create a new database in Notion you need to specified that page you just added to behave as a database, at the first place i thought when i add a new page in Notion it'll automatically to behave as a database as i follow along with some tutorial out there.

0
On

I had the same issue. For me, it was a matter of adding the extension I created to the database.

By default, an extension does not have access to any database in your workspace you need to explicitly give that extension access to it.

If you see an ID then it is a database, pages have slugs this is what differentiates databases form pages.