Create Image Upload Link
autoposter_create_upload_linkCreates a short-lived link where the user can upload images from their device into the Auto Poster media library. Use this when the user wants to attach an image that exists only in the chat or on their device (no public URL) and your client cannot send file contents. Give the link to the user, wait until they say the upload is done, then call autoposter_list_media (newest first) and attach the image with mediaIds in autoposter_draft_post or autoposter_schedule_post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uploadUrl | Yes | Link to give to the user. | |
| instructions | Yes | What to tell the user and what to do next. | |
| maxFileSizeMb | No | Maximum size per image in MB. | |
| expiresInMinutes | Yes | Minutes until the link expires. |