Retrieves a database object — a container for one or more data sources — for a provided database ID. The response adheres to any limits to a connection’s capabilities.The most important fields in the database object response to highlight:
data_sources: An array of JSON objects with the id and name of every data source under the database
parent: The direct parent of the database; generally a page_id or workspace: true
To find a database ID, navigate to the database URL in your Notion workspace. The ID is the 32-character alphanumeric string between the slash following the workspace name (if applicable) and the question mark.
Returns a 404 HTTP response if the database doesn’t exist or if the connection doesn’t have access to it.Each Public API endpoint can return several possible error codes. See the Error codes section of the Status codes documentation for more information.