Get a link for adding files
create_upload_linkProduce a one-off link that puts files into this mailbox, for when you need to attach something that is NOT already in the mailbox and NOT reachable by URL - typically a file on the person's own computer. The files land in their Drafts folder as a draft, and check_upload then gives you a fileRef for each so you can attach them to a real message. That holding draft cleans itself up when you attach the files, so never offer to delete it. TWO WAYS TO USE THE LINK, AND YOU SHOULD PICK. If you can run shell commands or make HTTP requests yourself, upload the file directly and the person does nothing: curl -T "/path/to/file.pdf" "<uploadUrl>?filename=file.pdf". If you cannot, GIVE THE LINK TO THE PERSON and ask them to open it and choose their files - it needs no sign-in and no password, and it takes several files at once. Either way, call check_upload afterwards. DO NOT use this for a file already in this mailbox (read_email gives you a ref) or for one with a web address (pass it as an attachment url); both of those are automatic and this is not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||