Get quota
curl --request GET \
--url https://api.peel.sh/v1/quota \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/quota', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/quota"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"plan": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"runs": {
"limit": 1,
"remaining": 1,
"reset_at": "2023-11-07T05:31:56Z"
},
"builds": {
"limit": 1,
"used": 1,
"remaining": 1,
"reset_at": "2023-11-07T05:31:56Z"
},
"build_budget": {
"limit_usd": 1,
"used_usd": 1,
"remaining_usd": 1,
"reset_at": "2023-11-07T05:31:56Z"
},
"daily_runs": {
"limit": 1,
"used": 1,
"reset_at": "2023-11-07T05:31:56Z"
},
"auto_recharge": {
"enabled": true,
"monthly_limit": 1
},
"emails": {
"usage_alerts": [
50
],
"monthly_summary": true
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}Account
Get quota
What is left this period and today: runs, builds and the daily run cap, each with its limit and reset time. A null limit means no limit.
GET
/
v1
/
quota
Get quota
curl --request GET \
--url https://api.peel.sh/v1/quota \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/quota', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/quota"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"plan": "<string>",
"period_end": "2023-11-07T05:31:56Z",
"runs": {
"limit": 1,
"remaining": 1,
"reset_at": "2023-11-07T05:31:56Z"
},
"builds": {
"limit": 1,
"used": 1,
"remaining": 1,
"reset_at": "2023-11-07T05:31:56Z"
},
"build_budget": {
"limit_usd": 1,
"used_usd": 1,
"remaining_usd": 1,
"reset_at": "2023-11-07T05:31:56Z"
},
"daily_runs": {
"limit": 1,
"used": 1,
"reset_at": "2023-11-07T05:31:56Z"
},
"auto_recharge": {
"enabled": true,
"monthly_limit": 1
},
"emails": {
"usage_alerts": [
50
],
"monthly_summary": true
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}Response
Current quota.
⌘I