feat: add Automations and Events endpoint support#97
Merged
Conversation
There was a problem hiding this comment.
1 issue found across 26 files
Confidence score: 3/5
- There is a concrete functional risk in
tools/Resend.ApiServer/Controllers/EventController.cs:EventRetrieveignores the routeidand always returns a hard-coded event, so clients can receive incorrect data. - Given this is a user-facing API behavior bug with moderate severity/confidence, merge risk is moderate rather than high, but it should be corrected before relying on this endpoint.
- Pay close attention to
tools/Resend.ApiServer/Controllers/EventController.cs- ensureEventRetrieveuses the requestedidto fetch and return the correct event.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="tools/Resend.ApiServer/Controllers/EventController.cs">
<violation number="1" location="tools/Resend.ApiServer/Controllers/EventController.cs:45">
P2: EventRetrieve ignores the `id` route parameter and always returns a hard-coded event, so callers cannot retrieve the event they requested.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
drish
approved these changes
Apr 10, 2026
This was referenced Apr 13, 2026
Open
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.
Summary by cubic
Add full Automations and Events API support to the SDK so users can define, manage, and trigger workflows. Includes new models, client methods, and tests for end-to-end coverage.
New Features
contact_idoremailplus payload. Models added for events and send responses.IResendwith implementations inResendClient(ResendClient.Automations.cs,ResendClient.Events.cs) for all endpoints. Tests and local mock controllers cover these flows.Bug Fixes
key(notref) for automation step identifiers in create/update payloads to match the API.EventRetrieveresponse now reflects the route id/name to match the requested lookup.Written for commit 7b48715. Summary will update on new commits.