curl --request GET \
--url https://api.cnap.tech/v1/quotas/{metric} \
--header 'Authorization: Bearer <token>'{
"metric": "compute/machines",
"type": "allocation",
"display_name": "Compute machines",
"unit": "count",
"limit": 1,
"usage": 0,
"remaining": 1,
"resets_at": "<string>"
}Returns current usage and limit for a single quota metric. Metric must be URL-encoded (e.g., compute%2Fcpu).
curl --request GET \
--url https://api.cnap.tech/v1/quotas/{metric} \
--header 'Authorization: Bearer <token>'{
"metric": "compute/machines",
"type": "allocation",
"display_name": "Compute machines",
"unit": "count",
"limit": 1,
"usage": 0,
"remaining": 1,
"resets_at": "<string>"
}Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens
Quota metric (URL-encoded service/resource)
"compute/machines"
Quota info
Metric: service/resource
"compute/machines"
allocation, rate "allocation"
"Compute machines"
count, cores, bytes, count/day
"count"
1
0
1
For rate quotas: ISO 8601 reset time