Media
Get an upload link
See whether an upload link expired, how many files it took, and their media ids.
GET
Get an upload link
Needs
media:read. See Permissions.id. Call it when the person says the upload is done. The MCP tool get-media-upload-link does the same.
mediaholds the files the link took that are still in the library, in the order they arrived. Put eachidin a post’scontent[].media.files_uploadedcounts every file the link took, including any deleted from the library since. So it can be more than the number of items inmedia. A link takes no more files oncefiles_uploadedismax_files.expiredistrueonceexpires_athas passed. An expired link still reads here, with the files it took.- An empty
mediawithfiles_uploadedat 0 means no file has arrived yet: ask the person whether the upload finished.
url or upload_url: only the create answer gives them.
Errors
Related
- Create an upload link: make a link.
- Files from AI chats: how the files get to the link.
- Get a media file: one file by its id.