get_media_guidelines before it uploads a file. It does not generate a file. A header image for a new template comes only from generate_template. See Templates.
What you can upload
upload_media hosts a file you already have. purpose is one of:
Pass a public
https URL or one complete base64 value up to 5 MB, plus mimeType and filename when you have them. HTML, SVG, scripts, and executables are rejected.
A partial or cut-off file is rejected. That failure blocks create_template and create_catalog_product until a complete file is uploaded. The rejected upload is not a media id.
Chat attachments
send_conversation_media sends an image, video, or PDF inside an open customer service window. Pass mediaUrl from upload_media, or a complete mediaBase64 value. The assistant does not generate that file. Details are on Inbox.
