Repository navigation
feat(usage): add support for the GET /usage endpoint - #289
Conversation
Adds resend.Usage.get()/get_async() to retrieve the caller's account-level usage and quota data, following the existing single-resource module conventions (logs, domains, segments).
There was a problem hiding this comment.
Review completed against the latest diff
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 7 files
Requires human review: Auto-approval blocked because this review re-detected 2 unresolved issues already reported by Cubic.
Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 2 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds new public Usage API (GET /usage) client with sync/async methods, types, tests, and examples. Because this expands the SDK's public API surface, human sign-off is required for the GA rollout.
Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds a new public Usage API client (GET /usage) with sync/async methods, types, tests, and examples. Expands the SDK's public contract, requiring product/API design sign-off.
Re-trigger cubic
Summary
resend.Usage.get()/resend.Usage.get_async()for account-level usage/quotas (emails, contacts, segments, broadcasts, ai_credits, automation_runs, domains, rate_limit).Part of the
/usageGA rollout (DEV-2183). Reference implementation: resend-node#1111.Summary by cubic
Adds
resend.Usage.get()andresend.Usage.get_async()to fetch account-level usage and quota data for emails, contacts, segments, broadcasts, AI credits, automation runs, domains, and rate limit.Rollout and testing
/usageGA rollout (DEV-2183), mirroring the Node.js reference implementation.Written for commit de69d32. Summary will update on new commits.