Plan, rates and invoices
curl --request GET \
--url https://api.compute.anonalabs.com/v1/billing \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/billing"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/billing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tenant": {
"id": "<string>",
"slug": "<string>",
"planId": "<string>",
"name": "<string>",
"planName": "<string>",
"billingModel": "<string>",
"status": "<string>"
},
"provider": "<string>",
"rates": [
{
"meter": "<string>",
"unit": "<string>",
"unitPriceUsd": 123,
"tier": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z"
}
],
"limits": {
"monthlyCreditUsd": 123,
"spendCapUsd": 123,
"maxConcurrentSandboxes": 123
},
"invoices": [
{}
],
"asOf": "2023-11-07T05:31:56Z",
"state": {}
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Usage and billing
Plan, rates and invoices
Dashboard owners and admins; API keys with the billing:read scope.
GET
/
v1
/
billing
Plan, rates and invoices
curl --request GET \
--url https://api.compute.anonalabs.com/v1/billing \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/billing"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/billing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tenant": {
"id": "<string>",
"slug": "<string>",
"planId": "<string>",
"name": "<string>",
"planName": "<string>",
"billingModel": "<string>",
"status": "<string>"
},
"provider": "<string>",
"rates": [
{
"meter": "<string>",
"unit": "<string>",
"unitPriceUsd": 123,
"tier": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z"
}
],
"limits": {
"monthlyCreditUsd": 123,
"spendCapUsd": 123,
"maxConcurrentSandboxes": 123
},
"invoices": [
{}
],
"asOf": "2023-11-07T05:31:56Z",
"state": {}
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
An Anona Compute API key (e2b_ followed by lowercase hex).