Versions API

get
List repo files filtered by version

https://pagecdn.com/api/v2/private/version/files
Request
Response
Query Parameters
apikey
required
string
The api key to identify originator of the request.
repo
required
string
The repo of which you want to list files, as repo/my-website-repo.
version
required
string
Version to filter files, as 3.4.1.
200: OK
{
"status": "200",
"message": "Ok",
"details": "Success",
"response": {
"count": 7,
"files": [
{
"version": "3.2.1",
"file_hash": "052b1b5ec0c4ae78aafc7a6e8542c5a2bf31d42a40dac3cfc102e512812b8bed",
"file_url": "https://pagecdn.io/lib/jquery/3.2.1/core.js"
},
{
"version": "3.2.1",
"file_hash": "0d9027289ffa5d9f6c8b4e0782bb31bbff2cef5ee3708ccbcb7a22df9128bb21",
"file_url": "https://pagecdn.io/lib/jquery/3.2.1/jquery.js"
},
{
"version": "3.2.1",
"file_hash": "87083882cc6015984eb0411a99d3981817f5dc5c90ba24f0940420c5548d82de",
"file_url": "https://pagecdn.io/lib/jquery/3.2.1/jquery.min.js"
},
{
"version": "3.2.1",
"file_hash": "6eee9730416d715373ee9b3ea3207db1bd4c667646ae8109fcb239f2e786b2fb",
"file_url": "https://pagecdn.io/lib/jquery/3.2.1/jquery.min.map"
},
{
"version": "3.2.1",
"file_hash": "b40f32d17aa2c27a7098e225dd218070597646fc478c0f2aa74fb5b821a64668",
"file_url": "https://pagecdn.io/lib/jquery/3.2.1/jquery.slim.js"
},
{
"version": "3.2.1",
"file_hash": "9365920887b11b33a3dc4ba28a0f93951f200341263e3b9cefd384798e4be398",
"file_url": "https://pagecdn.io/lib/jquery/3.2.1/jquery.slim.min.js"
},
{
"version": "3.2.1",
"file_hash": "09a178e33f5fa6c7de0d29ee9f86e778f03766850337787bdaa3ba2759df2acc",
"file_url": "https://pagecdn.io/lib/jquery/3.2.1/jquery.slim.min.map"
}
]
}
}

Sample Requests

https://pagecdn.com/api/v2/private/version/files?apikey=160a426ff2894252cd7cebbdd6d6b7da8fcd319c65b70468f10b6690c45d02ef&repo=lib/jquery&version=3.4.1

get
Delete a repo version and files

https://pagecdn.com/api/v2/private/version/delete
Request
Response
Query Parameters
apikey
required
string
The api key to identify originator of the request.
repo
required
string
The repo of which you want to delete files of a specific version, as repo/my-website-repo.
version
required
string
Version to filter files, as 3.4.1.
200: OK
{
"status": "200",
"message": "Ok",
"details": "Success",
"response": []
}

Sample Requests

https://pagecdn.com/api/v2/private/version/delete?apikey=160a426ff2894252cd7cebbdd6d6b7da8fcd319c65b70468f10b6690c45d02ef&repo=lib/jquery&version=3.4.1

get
Purge edge cache of a repo version

https://pagecdn.com/api/v2/private/version/purge
Request
Response
Query Parameters
apikey
required
string
The api key to identify originator of the request.
repo
required
string
The repo of which you want to purge files of a specific version, as repo/my-website-repo.
version
required
string
Version to filter files, as 3.4.1.
200: OK
{
"status": "200",
"message": "Ok",
"details": "Success",
"response": []
}

Sample Requests

https://pagecdn.com/api/v2/private/version/purge?apikey=160a426ff2894252cd7cebbdd6d6b7da8fcd319c65b70468f10b6690c45d02ef&repo=lib/jquery&version=3.4.1