EdgeNext
Documentation home

EdgeNext Documentation

Product guides, setup instructions, and technical references.

CDN

Purge Residual Query

Endpoint

Request URL: cache/refreshQuota (GET)

API Host: cdn.api.edgenext.com

API Version: v2

Description

Queries the daily quota and remaining balance for cache purge operations.

Request Parameters

The following list only includes API-specific request parameters. Common request parameters must also be included for production calls — see the Common Request Parameters page. Tokens can be obtained from customer support.

cURL Example (GET)

curl -v -X GET 'http://cdn.api.edgenext.com/v2/cache/refreshQuota?token=xxx'

Response Parameters

The response contains the following parameters:

Parameter Data Type Required Description
url_quota int Yes Daily URL purge quota limit
url_remain int Yes Remaining URL purge quota for the day
dir_quota int Yes Daily directory purge quota limit
dir_remain int Yes Remaining directory purge quota for the day

Response Example

JSON format:

{
    "code": 0,
    "data": {
        "url_quota": 10000,
        "url_remain": 9977,
        "dir_quota": 1000,
        "dir_remain": 1000
    }
}

Response Headers

HTTP/1.0 200 OK
Api-Id:                1039
Content-Type:          application/json; charset=utf-8
X-Ratelimit-Grad:      minute
X-Ratelimit-Limit:     100
X-Ratelimit-Remaining: 99
X-Retry-After:         57

HTTP Status Codes

Status Code Description
404 The requested URL is invalid
401 Authentication error — your token may be incorrect
400 Invalid request parameters
200 Request succeeded, data returned
5xx Please contact the on-call team

Need help? Contact our support team at support@edgenext.com.

Back to documentation home