Api for prepaid credit amount left

Is there any API endpoint to retrieve the current remaining prepaid / on-demand credit balance (e.g., “$ left” before hitting the cap)?

I can see usage events in the dashboard, but I’m looking for a programmatic way to:

  • fetch the remaining prepaid credit

  • optionally get current period usage vs limit

  • use it for alerts / monitoring

If this isn’t available, is there an official recommended workaround (webhook, export, etc.)?

its kinda silly that this is not a default

You can use the costs organization admin API endpoint to see your billing at a daily level.

Then do some subtraction.