Database
RequiredTextSupply a text value for this input.
248104cd-477e-80a9-8a1b-e4f8b0f8c1d2
A database's title and the tables inside it.
First, connect Notion in Services. Then open Actions → + → Notion and choose Get a Database.
To find this direct request action, choose Every Notion endpoint in the integration’s picker. The setup guide also explains the dedicated forms for common tasks.
A database block on a page is one of two things. With `data_sources`, it holds a table. With `data_sources` empty, it is a *linked view* of a table that lives somewhere else — List Views, then Get a View, says which.
Open an input to choose its value. Keep a fixed value with Text, receive it from Shortcuts, ask when the action runs, or use an Earlier Step. Read how input sources work.
Supply a text value for this input.
248104cd-477e-80a9-8a1b-e4f8b0f8c1d2
In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.
| Returned field | Type | Meaning |
|---|---|---|
id | string | Text value. |
is_inline | boolean | True or false. |
data_sources | array | A list of values. |
data_sources[].id | string | Text value. |
data_sources[].name | string | Text value. |
If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.
Request: GET https://api.notion.com/v1/databases/{database_id}
Action identifier: notion.databases.retrieve.v1
No additional per-action permissions are declared in the app’s catalog. The integration’s connection and account access rules still apply.
| Input | Request key | Location |
|---|---|---|
| Database | database_id | path |