Invalidation API
Create invalidation requests via API
Last updated
Was this helpful?
Create invalidation requests via API
Last updated
Was this helpful?
The Invalidation API is a REST API to invalidate images from the CDN and Cloudimage resizing servers.
Your API key is available in the Cloudimage admin console, under Invalidation:
Body:
The body of the request must contain the invalidation url in the form /_alias_/path/image1.jpg or /origin_image_url/image2.jpg.
To invalidate all the resizes of this image, use: /sample.li/boat.jpg or v7/sample.li/boat.jpg.
Try it out with the doc token doc
Sample URL:
Flushing all images will result in Cloudimage downloading all your images from your origin image storage again. This will result in slower image loading times for the first times the images are downloaded. if you have more than 1 TB of monthly CDN traffic or 1 TB of storage.
You can use our showing the time it is resized the first time: