Usage API
Monitor your usage and check quota limits.
getMonthly(month?: string): Promise<UsageData>
Get monthly usage data
// Get current month usage
const usage = await client.usage.getMonthly()
// Get specific month
const janUsage = await client.usage.getMonthly('2025-01-01')
console.log(`Events used: ${usage.events_stored} / ${usage.monthly_events_limit}`)
console.log(`Usage: ${usage.usage_percent}%`)getCurrent(): Promise<UsageData>
Get current month usage (alias for getMonthly)
const usage = await client.usage.getCurrent()