Entitlements
Get Usage Ledger
Read the calling organization's recorded AI usage for the current billing cycle: the credit total and which capabilities spent it, largest first, against the allowance the plan includes. credits_overage is what the cycle is past that allowance; charges_apply says whether an overage is actually charged, and is false while the AI quota is in its preview period or while the organization does not permit usage beyond its allowance.
Response Body
application/json
curl -X GET "https://api.bettermenu.live/entitlements/usage"{
"period_key": "string",
"credits_used": 0,
"allowance": {
"kind": "string",
"credits": 0
},
"credits_overage": 0,
"charges_apply": true,
"unattributed_credits": 0,
"resets_at": "2019-08-24T14:15:22Z",
"by_capability": [
{
"capability": "string",
"credits": 0,
"requests": 0
}
]
}