Skip to main content

Upload media from URL

POST 

/media/upload-from-url

One-call alternative to the 3-step upload flow. Pass a public URL, the server fetches the bytes, stores them on Cloudflare Images, and returns a ready-to-attach media_id. Image-only (JPEG, PNG, GIF, WebP, HEIC, HEIF). 25 MB cap. SSRF-protected (private/loopback addresses rejected). For videos or local files, use POST /media/upload.

Request

Responses

Media imported and ready to attach