docs: make to and subject optional on POST /api/emails#252
Conversation
…wn email) Follow-up enhancement on chat#1815. When `to` is omitted, the email is sent to the authenticated account's own email address, so a caller can "email me this" without restating their address (the common scheduled- report case). `to` stays `minItems: 1` when provided; the no-card recipient restriction is unchanged (own email is always allowed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 12 minutes and 9 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Folded into the to-optional change. Resend requires a non-empty subject, but the caller shouldn't have to supply one for scheduled/agent sends — document subject as optional with a server-side default (first heading/line of the body, falling back to "Message from Recoup" when the body is empty). SendEmailRequest now has no required fields. CreateNotificationRequest is unchanged. API impl follows once these docs merge. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
to optional on POST /api/emails (defaults to account's own email)to and subject optional on POST /api/emails
|
Folded in Resend requires a non-empty subject ( Per docs-first: the api impl (in |
Contract change for the "make `to` optional on `POST /api/emails`" follow-up enhancement on chat#1815 (decided 2026-06-25). Docs-first — this is the contract recoupable/api implements next.
What changed
SendEmailRequestinapi-reference/openapi/accounts.json:toremoved fromrequired(onlysubjectremains required).to.descriptionnow documents the default: when omitted, the email is sent to the authenticated account's own email address.tokeepsminItems: 1(when provided, at least one recipient). The no-card recipient restriction is unchanged — the account's own email is always allowed without a card, so the default recipient never trips the 403.Why
So a caller can "email me this" without restating their own address — the common scheduled-report case. This also lets
POST /api/emailsfully subsumePOST /api/notifications(self-send), which chat#1815 then deletes.Merge order
docs (this) → api (
tooptional insendEmailBodySchema, resolveaccount_emailswhen omitted).Minimal additive diff (1 insertion, 2 deletions); JSON validated.
🤖 Generated with Claude Code
Summary by cubic
Make
toandsubjectoptional onPOST /api/emails; omittingtosends to the authenticated account’s own email, and omittingsubjectdefaults to the first heading/line of the body, falling back toMessage from Recoupif empty.OpenAPI docs updated:
SendEmailRequestnow has no required fields; when provided,tostill must include at least one recipient and the no-card restriction is unchanged (own email always allowed).Written for commit 6b24dd9. Summary will update on new commits.