Console →
SDK Reference

Get Usage Summary

Get an aggregated breakdown of what a user has done in your app.

typescript
const summary = await settle.events.getSummary('user_123')

console.log(summary.summary)
// [
//   { eventType: 'AI_QUERY', totalQuantity: 145, count: 140 },
//   { eventType: 'PDF_EXPORT', totalQuantity: 12, count: 12 },
// ]