Account API

get
Account info

https://pagecdn.com/api/v2/private/account/info
Get your account, subscription and usage information.
Request
Response
Query Parameters
apikey
required
string
The api key to identify originator of the request.
200: OK
{
"status": "200",
"message": "Ok",
"details": "Success",
"response": {
"username": "myusername",
"email": "myusername@gmail.com",
"account_verified": true,
"last_pass_change": 1555587741,
"joined_on": "",
"credit_cents": "",
"profile_privacy": "private",
"pricing_plan": {
"name": "developer",
"price_cents": 2000,
"storage": 1073741824,
"bandwidth": 536870912000,
"repos": 20
},
"usage": {
"storage": 546468118,
"bandwidth": 166690495,
"repos": 15,
"files": 327834
}
}
}

Sample Requests

Get account info:

https://pagecdn.com/api/v2/private/account/info?apikey=160a426ff2894252cd7cebbdd6d6b7da8fcd319c65b70468f10b6690c45d02ef

get
Repo list

https://pagecdn.com/api/v2/private/account/repos
Get list of all repos in your account.
Request
Response
Path Parameters
apikey
required
string
The api key to identify originator of the request.
200: OK
{
"status": "200",
"message": "Ok",
"details": "Success",
"response": {
"count": 15,
"repos": [
{
"repo": "repo/bcf7d36793a9c658dce9",
"repo_name": "bcf7d36793a9c658dce9",
"cdn_base": "http://pagecdn.io/repo/bcf7d36793a9c658dce9",
"privacy": "private",
"created_on": 1563790513
},
...
]
}
}

Sample Requests

https://pagecdn.com/api/v2/private/account/repos?apikey=160a426ff2894252cd7cebbdd6d6b7da8fcd319c65b70468f10b6690c45d02ef