upload_file
Upload a local file to Notion storage and receive a file upload ID for use in image, file, PDF, or video blocks.
Instructions
Upload a file to Notion's own storage.
Returns a file_upload_id that can be referenced in image, file, pdf,
or video blocks via {"type": "file_upload", "file_upload": {"id": ...}}.
For the common case of uploading an image and creating a block in one step,
use upload_image_as_block instead.
Args: file_path: Local path to the file (PNG, JPEG, GIF, SVG, PDF, etc.) Files up to 20 MiB use single-part mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |