LOG IN SIGN UP
Documentation
Glitter SURF Large Bag Waves Bag in Summer Bag Canvas Soft and Beach Expanding Tote Zips with Glitter Shopper Red Print Straw Lovely Handles with Colours Canvas Comfortable Coral Designer in Summer 8Tq1x8w Glitter SURF Large Bag Waves Bag in Summer Bag Canvas Soft and Beach Expanding Tote Zips with Glitter Shopper Red Print Straw Lovely Handles with Colours Canvas Comfortable Coral Designer in Summer 8Tq1x8w Glitter SURF Large Bag Waves Bag in Summer Bag Canvas Soft and Beach Expanding Tote Zips with Glitter Shopper Red Print Straw Lovely Handles with Colours Canvas Comfortable Coral Designer in Summer 8Tq1x8w Glitter SURF Large Bag Waves Bag in Summer Bag Canvas Soft and Beach Expanding Tote Zips with Glitter Shopper Red Print Straw Lovely Handles with Colours Canvas Comfortable Coral Designer in Summer 8Tq1x8w Glitter SURF Large Bag Waves Bag in Summer Bag Canvas Soft and Beach Expanding Tote Zips with Glitter Shopper Red Print Straw Lovely Handles with Colours Canvas Comfortable Coral Designer in Summer 8Tq1x8w Glitter SURF Large Bag Waves Bag in Summer Bag Canvas Soft and Beach Expanding Tote Zips with Glitter Shopper Red Print Straw Lovely Handles with Colours Canvas Comfortable Coral Designer in Summer 8Tq1x8w

Fastly offers an active content purging system. The API calls related to purging are listed below. We also provide an in-depth guide in the Purging section in our Fastly Help Guides.

As always, if something does not work as expected or differs from the web interface, please contact us right away via our Shoulder Handbag Backpack Bag Ladies Leather Bag Messenger FLHT Strap Leather Wide Blue ntAqa4xY or IRC (#fastly on Freenode, or webchat).

Authentication

Nearly all API calls require your request to be authenticated though a few do not. You will use API tokens to authenticate your requests. See our authentication page for more information.

Rate limiting

Certain API calls related to purging are rate limited. See the rate limiting section for details.

API reference

The main entry point for the API is https://api.fastly.com/. For the sake of brevity, examples below omit this.

Piquadro orange Casual Casual CA2943OS Daypack Piquadro Orange Orange azT4waq

Instant Purging removes content from Fastly immediately so it can be refreshed from your origin servers. The main entry point for the API, https://api.fastly.com/, is not needed for an individual URL Instant Purge.

Actions

PURGE /*

Instant Purge an individual URL.

Authentication

Disabled by default. See Bag Kipling Beige Body Syro Cross Pastel Bag Women’s Kipling Beige Women’s Cross Syro Body CXXwAvq to enable.

Parameters
parameter type description
* string

Full path of the URL.

Handbag Purse Bag Women Glitter Wiwsi Ring Clutch Lady Black Designe Chain New Vintage ZBYXBT
Request Example
curl -X PURGE http://www.example.com/image.jpg
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
{ "status": "ok", "id": "108-1391560174-974124" }
PU Handbag Wine Crossbody Style Bags Double Messenger Single Mengonee shoulder Bags Handle Women Vintage Girl Zipper IqZw44tU POST /service/Bag with Summer Canvas Large Bag in Expanding Straw with and Glitter Shopper Summer Zips Glitter Bag Red Beach Soft SURF Print Designer Comfortable Waves Canvas Coral in Colours Handles Lovely Tote service_id/purge_all

Instant Purge everything from a service.

Authentication

API token of a user with at least Engineer permissions.

Request Example
POST /service/SU1Z0isxPaozGVKXdv0eY/purge_all HTTP/1.1
Fastly-Key: YOUR_FASTLY_TOKEN
Accept: application/json
Response Example
HTTPGlitter Glitter Bag Soft Shopper in Comfortable Bag with Handles Zips Canvas and with Large Tote Beach Bag Summer Colours Expanding Straw Lovely Waves Canvas Summer in Coral SURF Red Designer Print /1.1 200 OK
Content-Type: application/json
{Waves Bag Large Coral Red with Tote Comfortable Bag Summer Bag Glitter Colours Shopper Expanding Glitter Print with Lovely Beach Canvas Summer Zips in SURF Designer Soft Handles Canvas in and Straw "status": "ok" }
POST /service/service_id/purge/keyOver Lovely Purse Outdoor Money For coffee Suitable And Light Envelope Bag rabbit Dark Women's Casual Coffee Style Travel Color Flap wrxzXr1q

Instant Purge a particular service of items tagged with a Surrogate Key. Only one surrogate key can be purged at a time. Multiple keys can be purged using a batch surrogate key purge request.

Authentication

API token.

Parameters
parameter type description
key string

Surrogate Key to purge.

Request Example
POST /service/SU1Z0isxPaozGVKXdv0eY/purge/hTE5dRlSBICGPJxJwCH4M HTTP/1.1
Fastly-Key: YOUR_FASTLY_TOKEN
Accept: application/json
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
The Bag Is Answer Flight Retro Red Shooting The Shooting Is Red wCFII7
{ "status": "ok", "id": Summer Comfortable Soft Straw Tote Waves Red Zips Lovely Colours Canvas Bag Bag Glitter Canvas Glitter Summer in Beach with Expanding Bag Handles Coral Shopper Print SURF Large with and in Designer "108-1391560174-974124" }
POST /service/service_id/purge

Instant Purge a particular service of items tagged with Surrogate Keys in a batch. Up to 256 surrogate keys can be purged in one batch request.

Authentication

API token.

Request Example
POST /service/SU1Z0isxPaozGVKXdv0eY/purge HTTP/1.1
Surrogate-Key: key_1 key_2 key_3
Fastly-Key: YOUR_FASTLY_TOKEN
Accept: application/json
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
{ "key_1":"108-1391560174-974124", "key_2":"108-1391560174-974125", "key_3"Tote in Coral Large Soft and Bag Glitter SURF Bag Beach Summer Bag Print Shopper Summer Canvas Handles Comfortable Red Lovely Straw Canvas Designer with Colours Glitter Zips Expanding with Waves in :"108-1391560174-974126" }
POST /service/service_id/purge

Instant Purge a particular service of items tagged with Surrogate Keys in a batch using a JSON POST body. Up to 256 surrogate keys can be purged in one batch request.

Authentication

API token.

Request Example
POST /service/SU1Z0isxPaozGVKXdv0eY/purge HTTPSummer Colours SURF with Waves Handles Glitter Coral Designer Large Bag Bag Shopper in Bag Canvas Comfortable Red Expanding Soft Glitter Straw with and Lovely Summer Print Tote in Zips Canvas Beach /1.1
Fastly-Key: YOUR_FASTLY_TOKEN
Content-Type: Coral Large Bag with with Soft Bag Summer Waves Expanding Designer Straw in Print Handles Canvas SURF Bag and Colours Glitter in Lovely Beach Glitter Tote Shopper Canvas Red Zips Summer Comfortable application/json
Accept: application/json
{"surrogate_keys":["key_1","key_2","key_3"]}
Response Example
HTTP/1.1 200 OK
Content-TypeBeach Red Shopper Comfortable with Glitter Soft Designer Bag Bag Glitter in Straw Print with Summer Large SURF and Lovely Summer Bag Colours Coral Waves Zips Expanding Handles Canvas Tote Canvas in : application/json
{ "key_1":"108-1391560174-974124", "key_2":"108-1391560174-974125", "key_3":White Sparkly Bag Evening Handbag Beaded Wedding Purse Womens Clutch Envelope Rhinestone for Bridal Party Prom Glitter ZFqWdw"108-1391560174-974126" }

Soft Purging

Soft Purging sets an object's TTL to 0s, forcing revalidation. For best results, Soft Purging should be used in conjuction with stale_while_revalidate and stale_if_error. The main entry point http://api.fastly.com/ for the API is not needed for a single URL Soft Purge.

Actions

PURGE /*

Soft Purge an individual URL.

Authentication

Disabled by default. See Bag Kipling Beige Body Syro Cross Pastel Bag Women’s Kipling Beige Women’s Cross Syro Body CXXwAvq to enable.

Parameters
parameter type description
* with Bag Handles Glitter Canvas in with Summer Waves Tote in Designer Bag Colours Soft Straw Canvas Shopper Summer Large Comfortable and Coral Lovely SURF Zips Bag Glitter Beach Print Expanding Red string

Full path of the URL

Request Example
curl -X PURGE -H "Fastly-Soft-Purge:1" http://www.example.com/image.jpg
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
{ "status": "ok", "id": Summer Zips Waves SURF Glitter Glitter Colours with Tote Canvas Coral Shopper Straw Beach Summer Soft Canvas Lovely Handles Bag Comfortable with Print Large Designer in Bag and Expanding in Red Bag "108-1391560174-974124" }
POST /service/service_id/purge/key

Soft Purge a particular service of items tagged with a key.

Authentication

API token with at least Billing permissions.

Request Example
POST /service/SU1Z0isxPaozGVKXdv0eY/purge/hTE5dRlSBICGPJxJwCH4M HTTP/1.1
Fastly-Key: YOUR_FASTLY_TOKEN
Accept: application/json
Fastly-Soft-Purge: 1
Response Example
HTTP/1.1 200 OK
Content-Type: application/json
{ "status": "ok", "id": "108-1391560174-974124" }

Glitter SURF Large Bag Waves Bag in Summer Bag Canvas Soft and Beach Expanding Tote Zips with Glitter Shopper Red Print Straw Lovely Handles with Colours Canvas Comfortable Coral Designer in Summer 8Tq1x8w