Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

request_upload

Ask the person to upload files

writes reaches outside listed directly

For files on the person's own computer (photos, a logo, a video) that you cannot reach: returns an upload_url and a ticket.

Show the person the upload_url in full and ask them to open it and drop the files there; the page is in HeyMySocial, needs them to be signed in, belongs to this workspace only and stops working after an hour. Then call list_uploads with the ticket to get the creative ids of what arrived. Never tell the person their files cannot be used: this link is how. Accepted: PNG, JPEG, WebP and GIF images, MP4 and MOV videos, within the upload size limit; the type is checked from the file itself. For an image that already has an https address use import_images instead.

Arguments

NameTypeNeededWhat it is
purpose string no One short sentence shown on the upload page saying what to upload, for example "Three photos of the finished roof".
content_id string no The content item the files are for, if any.
request_key string no Any unique string for this request. The same key returns the same ticket.

Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.

How it behaves

  • It changes something in the workspace, within what the signed-in person's role allows.
  • It reaches outside the workspace: it fetches an address, makes a public link or puts something on a channel's schedule.
  • It is in the list every assistant sees when it connects.
  • It is always called by its own name, never through execute_tools, so the assistant's own safety prompts apply.

How tools behave: confirmation, review links, errors and limits

create_creative · get_approval · get_content · import_images · list_approvals · list_content · list_creative_templates · list_creatives · list_uploads · manage_content · preview_creative · preview_post · request_approval · save_content_draft · update_creative