Get company budget
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/billing/budget \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/billing/budget"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/billing/budget', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"is_enabled": true,
"amount_eur": "<string>",
"current_cycle_start": "<string>",
"next_cycle_start": "<string>",
"monthly_spend_eur": "<string>",
"available_eur": "<string>",
"currency": "EUR",
"alerts": [
{
"id": 123,
"is_enabled": true,
"threshold_type": "<string>",
"threshold_value": "<string>"
}
]
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Budget
Get company budget
Return the company’s monthly budget configuration, current spend, and alert thresholds.
GET
/
api
/
v3
/
billing
/
budget
Get company budget
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/billing/budget \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/billing/budget"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/billing/budget', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"is_enabled": true,
"amount_eur": "<string>",
"current_cycle_start": "<string>",
"next_cycle_start": "<string>",
"monthly_spend_eur": "<string>",
"available_eur": "<string>",
"currency": "EUR",
"alerts": [
{
"id": 123,
"is_enabled": true,
"threshold_type": "<string>",
"threshold_value": "<string>"
}
]
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Whether this budget is actively enforced.
Monthly budget cap in EUR.
Pattern:
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$First day of the current billing cycle (ISO date).
First day of the next billing cycle (ISO date).
Current month's spend in EUR.
Pattern:
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Remaining budget for the current cycle in EUR.
Pattern:
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$ISO 4217 currency code.
Alert thresholds.
Show child attributes
Show child attributes