Images
images
V1
images.v1
Methods
Upload an image with up to 10 Megabytes using a single HTTP POST (multipart/form-data) request. An image can be uploaded by sending an image file or passing an accessible to an API url.
Delete an image on Cloudflare Images. On success, all copies of the image are deleted and purged from cache.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Account identifier tag.
Image unique identifier.
Whether the API call was successful
Update image access control. On access control change, all copies of the image are purged from cache.
Fetch details for a single image.
List up to 100 images with one request. Use the optional parameters below to get a specific range of images.
Domain types
Methods
Delete signing key with specified name. Returns all keys available. When last key is removed, a new default signing key will be generated.
Lists your signing keys. These can be found on your Cloudflare Images dashboard.
Create a new signing key with specified name. Returns all keys available.
Domain types
Methods
Specify variants that allow you to resize images for different use cases.
Deleting a variant purges the cache for all images associated with the variant.
Updating a variant purges the cache for all images associated with the variant.
Fetch details for a single variant.
Lists existing variants.
Domain types
V2
images.v2
Methods
List up to 10000 images with one request. Use the optional parameters below to get a specific range of images. Endpoint returns continuation_token if more images are present.
Methods
Direct uploads allow users to upload images without API keys. A common use case are web apps, client-side applications, or mobile devices where users upload content directly to Cloudflare Images. This method creates a draft record for a future image. It returns an upload URL and an image identifier. To verify if the image itself has been uploaded, send an image details request (accounts/:account_identifier/images/v1/:identifier), and check that the draft: true
property is not present.