Notion
Attach File to Notion Page
Attach one or more files to a Notion page or database row, in the page body or in a files property of the row, including private Connie chat and app files.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| pageIdstring · required | string | required | Page to attach the file to. Select a page or insert its ID or URL. |
| fileUrlstring · optional | string | optional | Public file URL, when no private file ID is supplied. |
| blockTypestring · optional | string | optional | One of: Default: |
| attachmentIdstring · optional | string | optional | Private Connie chat attachment ID. |
| appIdstring · optional | string | optional | App containing the file. Also supply its fileId. |
| fileIdstring · optional | string | optional | App file ID from app-manage file-storage or add-files. |
| filesrepeating-group · optional | repeating-group | optional | Up to 100 files in one call. Each needs one attachmentId, one appId/fileId pair, or one public fileUrl. Private files: up to 20 MB each, subject to the selected Notion account’s plan. |
| propertystring · optional | string | optional | Name of a files property of the database row, for example Asset. When set, the files are added to that property, after the files it already holds, instead of the page body. |
Response schema
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object"
}
}
}
}