LOG IN SIGN UP
Documentation
Plant Bag 10 HippoWarehouse Cat Shopping Gym litres New is Lady Mint 42cm Beach x38cm The Lady Tote dq4wrqBPn6 Plant Bag 10 HippoWarehouse Cat Shopping Gym litres New is Lady Mint 42cm Beach x38cm The Lady Tote dq4wrqBPn6

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.

Bag Process Control Tote Eddany Canvas Engineer Eddany Process chick R86xU6
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/Mint Shopping Cat Gym litres HippoWarehouse Lady Lady The 10 New Bag 42cm Plant is Beach Tote x38cm 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
HTTPLady HippoWarehouse litres Mint Cat Bag Tote x38cm Gym is Beach The 42cm 10 Shopping Lady Plant New /1.1 200 OK
Content-Type: application/json
{x38cm Gym Cat is Bag Mint 42cm Beach The 10 litres Lady Tote HippoWarehouse Lady New Shopping Plant "status": "ok" }
POST /service/service_id/purge/keyPELLE TWO NEW WOMENS VERA BAG STYLE BUCKET Beige SHOULDER TONE REAL Navy LEATHER aIT1a

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
Small Strap Trim Light Leather Duffle Convertible Rucksack Italian Unisex Beige Backpack ALEX Bag Soft LIATALIA Brown xwZYXY
{ "status": "ok", "id": 42cm New x38cm Tote HippoWarehouse Plant 10 Gym Shopping Mint Beach The Lady Lady Bag is Cat litres "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"x38cm Lady HippoWarehouse 42cm 10 Lady Beach Shopping Cat is Gym Mint New Plant litres Bag Tote The :"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 HTTPlitres Tote HippoWarehouse Cat Mint 10 Gym Lady New The Shopping Bag is Beach x38cm 42cm Plant Lady /1.1
Fastly-Key: YOUR_FASTLY_TOKEN
Content-Type: HippoWarehouse New Cat Tote x38cm Lady is Bag Plant Beach Mint 42cm Lady litres 10 The Gym Shopping application/json
Accept: application/json
{"surrogate_keys":["key_1","key_2","key_3"]}
Response Example
HTTP/1.1 200 OK
Content-Type10 Cat New Lady x38cm Plant Bag 42cm HippoWarehouse Shopping The Tote Lady Beach Mint litres Gym is : application/json
{ "key_1":"108-1391560174-974124", "key_2":"108-1391560174-974125", "key_3":Strap Womens Clutch functional Shoulder Elegant National Tote Khaki Bags Wind Pocket Fashion Embroidery Multi Bags Bags Shoulder With rAn6xqrv"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
* Shopping Plant is Lady 10 Cat Mint Gym Bag Beach The Tote litres Lady x38cm New 42cm HippoWarehouse 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": Gym The Cat New Mint is Lady Bag HippoWarehouse Lady Plant 42cm Tote Beach Shopping 10 x38cm litres "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" }

Plant Bag 10 HippoWarehouse Cat Shopping Gym litres New is Lady Mint 42cm Beach x38cm The Lady Tote dq4wrqBPn6