feat(webhooks): add event replay endpoint - #236
Merged
Conversation
Contributor
There was a problem hiding this comment.
No issues found across 4 files
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 webhook replay API that triggers an additional event delivery. Human approval is needed for the external contract and operational semantics of manual replays.
Re-trigger cubic
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
gabrielmfern
marked this pull request as ready for review
September 3, 2026 19:19
felipefreitag
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
Resend::Webhooks.replay_event(webhook_id, event_id), which callsPOST /webhooks/{webhook_id}/events/{event_id}/replayand returns{ object: "webhook_event", id: "msg_..." }. Queues one more delivery of the event to the webhook; manual replays do not schedule automatic retries.Also adds the call to
examples/webhooks.rband setsMetrics/ModuleLength: 169in.rubocop.yml. TheWebhooksmodule is a flat list of one-method-per-endpoint wrappers, so its length tracks the API surface; the default 100 was crossed by this method and would be crossed again by the next one.Spec PR: resend/resend-openapi#112
API PR: https://github.com/resend/resend-monorepo/pull/9535
Checks (Ruby 4.0.6,
bundle install):bundle exec rubocopno offenses,bundle exec rake spec400 examples, 0 failures. No live API call was made; version bump left for the chore PR.Part of DEV-2005.
Linear: https://linear.app/resend/issue/DEV-2011