Get a link to upload a file from this device
create_upload_linkUse this when the user wants to post an image or video that is on their device (not at a public URL). Returns a one-time link, valid 30 minutes: give upload_page_url to the user to open and drop the file in; or, if you can make HTTP requests yourself (e.g. with curl), POST the file as multipart form field "file" to upload_url. Then call get_upload_status with ticket_uid until status is "uploaded" and use its media_uid in create_post. Images and videos up to 500 MB; WebP is converted to JPG/PNG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional display name for the file | |
| workspace_uid | No | uid from list_workspaces; omit for the default workspace. Use the workspace of the post. |