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.
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.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Images Write
Account identifier tag.
Optional Image Custom ID. Up to 1024 chars. Can include any number of subpaths, and utf8 characters. Cannot start nor end with a / (forward slash). Cannot be a UUID.
The date after which the upload will not be accepted. Minimum: Now + 2 minutes. Maximum: Now + 6 hours.
User modifiable key-value store. Can be used for keeping references to another system of record, for managing images.
Indicates whether the image requires a signature token to be accessed.
Whether the API call was successful