Create a media upload link
create_upload_linkGet a one-time upload link for a file that lives on the user's machine (image, video or PDF) so it can be attached to a post. Returns a short-lived signed upload URL the user opens or PUTs the file to, plus the permanent public URL to pass into media_urls on schedule_post or update_post. Only reference the public URL on a post after the user confirms the upload finished. This is the default route for real photos, videos and carousel PDFs — anything above 32 KB. upload_media is only for tiny files you are already holding. Max 200 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The file's name, e.g. carousel.pdf or hero.mp4. | |
| content_type | No | MIME type. Inferred from the filename extension when omitted. |