Consultar o limite mensal
curl --request GET \
--url https://api.validator.blubash.io/v1/billing/spend-limit \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/billing/spend-limit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/billing/spend-limit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"monthly_limit": "2000.0000",
"spent_this_month": "37.2000",
"warning_pct": 80
}Recargas e cobrança
Consultar o limite mensal
O limite mensal de gasto em vigor (null = desligado, o padrão), o percentual de aviso e o gasto do mês corrente (fuso de São Paulo).
Escopo exigido: billing. Liberada para workspace suspenso.
GET
/
v1
/
billing
/
spend-limit
Consultar o limite mensal
curl --request GET \
--url https://api.validator.blubash.io/v1/billing/spend-limit \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/billing/spend-limit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/billing/spend-limit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"monthly_limit": "2000.0000",
"spent_this_month": "37.2000",
"warning_pct": 80
}