Create Upload URL
create_upload_urlGet a one-time URL to upload a file from the user's device directly, up to 300MB (images, videos, PDFs). Steps: 1) call this, 2) POST the file to uploadUrl as multipart/form-data: every entry of fields, then the file as "file" (last), (e.g. curl -F "key=<fields.key>" -F "Content-Type=<fields.Content-Type>" ... one -F per field ... -F "file=@photo.jpg" ""), 3) call finish_upload with the uploadId to get the media ID. The URL expires after 15 minutes. Supports: JPEG, PNG, GIF, WebP, MP4, MOV, PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | File size in bytes, if known | |
| fileName | Yes | File name with extension (e.g. "video.mp4") | |
| mimeType | Yes | MIME type of the file |