getDatabase

abstract suspend fun getDatabase(id: UuidString): Database

Retrieves a database by its ID. This method fetches all database properties, schema, and metadata.

Return

A Database object containing all database data

Parameters

id

The unique identifier of the database (UUID format)

See also

Throws

NotionApiException

if the database doesn't exist or the API request fails