Upload a file as a source
notebook_upload_sourceAdd a file as a source: PDF, Word, PowerPoint, EPUB, Markdown, text, CSV, audio, video or an image. Give a public https url (up to 50 MB) or the file itself as contentBase64 (small files), not both. Returns the source id with status preparing: wait until notebook_get_notebook shows it ready. For web pages, YouTube, text or Drive use notebook_add_sources. POST /sources/upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public https URL of the file. | |
| name | No | File name with its extension, e.g. notes.pdf; it sets the source title and type. Default: from the url. | |
| mimeType | No | The file's MIME type. Default: from the url's answer or the name. | |
| notebook | Yes | Notebook id (user:<id>-<email>-notebook:<uuid>), from notebook_list_notebooks or notebook_create_notebook. | |
| contentBase64 | No | The file content, base64-encoded (instead of url). |