Query: Retrieve a Database
Notion Operation
Last updated
{
"handle": "get-database",
"state": "inDev",
"meta": {
"short": "Get Database",
"description": "Retrieves a Notion database by its ID."
},
"input": [
{
"name": "database_id",
"type": "String",
"required": true,
"meta": {
"description": "The ID of the Notion database to retrieve."
}
}
],
"output": [
{
"name": "database",
"type": "Object",
"selector": [],
"meta": {
"description": "The retrieved Notion database object."
}
}
],
"steps": [
{
"type": "http",
"http": {
"method": "GET",
"path": "/v1/databases/{{database_id}}",
"headers": {
"Notion-Version": "2022-06-28"
}
}
}
]
}