cost-control
My Budgets
Return budgets applying to the account’s active API keys and current cycles.
Recorded spend reflects retained attributed events and may lag enforcement. Hard-budget availability includes outstanding reservations; unavailable projections remain null. Shared budgets contain only aggregate balances and the authenticated user’s applicable key scopes.
GET
/
api
/
costs
/
my-budgets
My Budgets
curl --request GET \
--url https://api.aixy-gateway.com/api/costs/my-budgets \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/costs/my-budgets"
headers = {"cookie": "gateway_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'gateway_session='}};
fetch('https://api.aixy-gateway.com/api/costs/my-budgets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"as_of": "<string>",
"data": [
{
"id": "<string>",
"scope": "organization",
"target_id": "<string>",
"target_name": "<string>",
"interval": "daily",
"limit_usd": "<string>",
"warning_threshold_percent": 123,
"enforcement": "monitor",
"allocation": "shared",
"shared": true,
"applies_to": [
{
"api_key_id": "<string>",
"api_key_name": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"team_id": "<string>",
"team_name": "<string>"
}
],
"spend_usd": "<string>",
"remaining_usd": "<string>",
"utilization_percent": 123,
"state": "healthy",
"starts_at": "<string>",
"resets_at": "<string>",
"spend_status": "available",
"availability": {
"status": "available",
"spent_usd": "<string>",
"reserved_usd": "<string>",
"remaining_usd": "<string>"
},
"object": "cost.personal_budget"
}
],
"object": "cost.personal_budgets"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}⌘I
My Budgets
curl --request GET \
--url https://api.aixy-gateway.com/api/costs/my-budgets \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/costs/my-budgets"
headers = {"cookie": "gateway_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'gateway_session='}};
fetch('https://api.aixy-gateway.com/api/costs/my-budgets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"as_of": "<string>",
"data": [
{
"id": "<string>",
"scope": "organization",
"target_id": "<string>",
"target_name": "<string>",
"interval": "daily",
"limit_usd": "<string>",
"warning_threshold_percent": 123,
"enforcement": "monitor",
"allocation": "shared",
"shared": true,
"applies_to": [
{
"api_key_id": "<string>",
"api_key_name": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"team_id": "<string>",
"team_name": "<string>"
}
],
"spend_usd": "<string>",
"remaining_usd": "<string>",
"utilization_percent": 123,
"state": "healthy",
"starts_at": "<string>",
"resets_at": "<string>",
"spend_status": "available",
"availability": {
"status": "available",
"spent_usd": "<string>",
"reserved_usd": "<string>",
"remaining_usd": "<string>"
},
"object": "cost.personal_budget"
}
],
"object": "cost.personal_budgets"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}