I'm Uğur,
https://developers.notion.com/reference/retrieve-a-database
https://api.notion.com/v1/databases/database_id
I used "https://www.notion.so/111111111111111111?v=222222222222222" as a database ID. (http://prntscr.com/22cn4dp)
I used "Authorization: Bearer $NOTION_API_KEY and Notion-Version: 2021-08-16" as a cURL.
I used it with Postman but I got an error.
Error Code:
{
"object": "error",
"status": 404,
"code": "object_not_found",
"message": "Could not find database with ID: 1111111111111111."
}
How do I solve it?
Notion's update has changed the location for Integration. Now you'll find it here:
Go to the database page in your workspace. Click the ••• on the top right corner of the page. At the bottom of the pop-up, click Add connections. Search for and select your integration in the Search for connections... menu. Your integration now has permission to edit the database.