---
title: "API Request to Purge CDN Data"
url: "https://docs.indusface.com/en/article/api-request-to-purge-cdn-data"
language: "en"
last_updated: "2025-09-19T05:59:38.646Z"
---

# API Request to Purge CDN Data

The following document will give the API details of the CDN purge request. 

### Purpose 

The purge API helps the users automatically delete the obsolete/cached data which is present in the CDN. 

### API Details 

To access this API, customers must authenticate using the **Token-Based Authentication** method**.**

Click [**here**](https://docs.indusface.com/en/article/apptrana-api-access-via-token-based-authentication) to learn about the authentication process through login API.

#### Purge Request 

| **Method** | **POST** |
| --- | --- |
| Endpoint | https://tas.indusface.com/wafportal/rest/siem/v1/cdn/requestPurge |
| Request Headers | “Content-Type”:” application/json” |

**Parameters:** 

| PurgeUrl | A Url/endpoint for which purge is required |
| --- | --- |
| websiteName | Name of the website |

**Example Request and Response:** 

![](https://files.helpdocs.io/1fZENFEEfs/articles/2p9qfrk64k/1665570321099/request-purge.png)

> Purge All: To purge all the endpoints of a website, use ‘\*’ symbol after the top-level domain. 

(or)

> Purge All: To purge all the endpoints of a website, use “ALL” for purgeUrl field in the request body. (“purgeUrl”: “ALL”) 

#### Check Purge Status

| **Method** | **POST** |
| --- | --- |
| Endpoint | https://stagingtas.indusface.com/wafportal/rest/siem/v1/cdn/getPurgeStatus |
| Request Headers | “Content-Type”:” application/json” |

**Parameters:** 

| purgeID | An ID which is created after successful request purge operation. |
| --- | --- |
| websiteName | Name of the website |

![](https://files.helpdocs.io/1fZENFEEfs/articles/2p9qfrk64k/1665570523127/image.png)

#### Possible Responses

200 - Success 

401 - Unauthorized request
