Skip to content

feat(webhooks): add events.replay() - #1087

Merged
gabrielmfern merged 1 commit into
canaryfrom
feat/webhook-event-replay
Sep 3, 2026
Merged

feat(webhooks): add events.replay()#1087
gabrielmfern merged 1 commit into
canaryfrom
feat/webhook-event-replay

Conversation

@gabrielmfern

@gabrielmfern gabrielmfern commented Sep 3, 2026

Copy link
Copy Markdown
Member

Adds POST /webhooks/{webhook_id}/events/{event_id}/replay as resend.webhooks.events.replay(), next to the existing events.get(). Replaying queues one more delivery of the event to the webhook, same as the dashboard's Replay button; manual replays do not schedule automatic retries.

replay(options: ReplayWebhookEventOptions): Promise<ReplayWebhookEventResponse>
const { data, error } = await resend.webhooks.events.replay({
  webhookId: '4dd369bc-aa82-4ff3-97de-514ae3000ee0',
  eventId: 'msg_1srOrx2ZWZBpBUvZwXKQmoEYga2',
});
// data: { object: 'webhook_event', id: 'msg_1srOrx2ZWZBpBUvZwXKQmoEYga2' }

Also bumps the package version from 6.25.0 to 6.26.0 (same as #1083 did for the event endpoints).

Checks:

  • pnpm install --frozen-lockfile ok
  • pnpm lint ok
  • pnpm typecheck ok
  • pnpm test ok (36 files, 419 passed)
  • pnpm build ok

Not done: no live API call (write endpoint, no key configured). No CHANGELOG entry, following #1083.

Part of DEV-2005.

Linear: https://linear.app/resend/issue/DEV-2008


Summary by cubic

Adds resend.webhooks.events.replay() to queue one more delivery of a webhook event, matching the dashboard's Replay button. Manual replays do not schedule automatic retries. Bumps the package version to 6.26.0.

Written for commit aae172b. Summary will update on new commits.

Review in cubic

@pkg-pr-new

pkg-pr-new Bot commented Sep 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@1087

commit: aae172b

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 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 POST API method that triggers an additional webhook delivery. Approval requires human sign-off on this externally observable replay contract and its delivery semantics.

Re-trigger cubic

@gabrielmfern
gabrielmfern merged commit c61ccca into canary Sep 3, 2026
13 checks passed
@gabrielmfern
gabrielmfern deleted the feat/webhook-event-replay branch September 3, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants