Files, images, and other media enrich your Notion workspace — from embedded screenshots and PDFs to page covers, icons, and file properties in databases. The Notion API makes it easy to retrieve existing files, so your connection can read and reference media programmatically. This guide walks you through how to retrieve files that already exist in your workspace (typically added via the UI).Documentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
🔍 What are file objects in Notion?
In the Notion API, files are represented as file objects. These can appear in blocks (like images, files, videos), page covers or icons, or as part of afiles property in a database.
Each file object has a type, which is determined by how the file is stored:
external: A public URL to a file hosted elsewhere (e.g., CDN)file: A file manually uploaded via the Notion UIfile_upload: A file uploaded programmatically via the API (which becomes afileafter attachment)
Retrieve files in your workspace
Most files already added in your Notion workspace (like uploaded images, PDF blocks, or file properties) arefile type objects. These include a temporary URL you can use to download the file.
To retrieve files:
A. From page content
Use the Retrieve block children endpoint to list blocks on a page:Note:The
url is a temporary signed link that expires after 1 hour. Re-fetch the page to refresh it.B. From database properties
Use the Retrieve a page endpoint to get a database item with file properties:properties field will include any file attachments in the files type: