Get a one-time upload link
create_upload_linkPreferred way to publish a file that already exists (PDF, image, ZIP… up to 25 MB on Free, 250 MB on Pro). Creates a one-time upload link valid 1 hour. First try uploading it yourself: curl -T <file> <upload_url> (HTTP PUT, raw bytes, optional X-File-Name header), then call check_upload with upload_id. If that fails or you have no network access: for a small file (under ~100 KB) use upload_file (base64) yourself; for a bigger file, tell the user they can allow this domain in their AI app's network settings for next time, give them page_url (drag-and-drop page, works on mobile without sign-in) and call check_upload afterwards. Pro plan: pass file_id to replace an existing file and keep its link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Pro plan only: folder path to file it in, e.g. 'Clients/Dupont' (missing folders are created). Omit to keep it at the top level. | |
| file_id | No | Pro plan only: existing file to replace (the link stays the same). | |
| file_name | No | Expected file name, e.g. 'guide.pdf'. |