Skip to content

Update parsed fields on email receiving API#98

Merged
drish merged 1 commit intoresend:mainfrom
entalas:receiving-api-updates
Jan 21, 2026
Merged

Update parsed fields on email receiving API#98
drish merged 1 commit intoresend:mainfrom
entalas:receiving-api-updates

Conversation

@toofishes
Copy link
Contributor

@toofishes toofishes commented Jan 20, 2026


Summary by cubic

Updated the receiving API models to add message_id and raw download info, and changed the object value to "email" to match the Node SDK and docs. Tests updated to cover the new fields.

  • New Features

    • ReceivedEmail: added message_id and raw (download_url, expires_at).
    • ListReceivedEmail: added message_id.
    • Object for received emails is now "email" (was "inbound").
  • Migration

    • Update any logic that checks object == "inbound" to object == "email".

Written for commit 93c6e01. Summary will update on new commits.

* Add message ID - Matches Node SDK PR resend/resend-node#702
* `object` is "email", not "inbound - matches Node SDK PR resend/resend-node#721
* Add `raw` download URL and expiration time to ReceivedEmail struct, documented here: https://resend.com/docs/api-reference/emails/retrieve-received-email
Copy link

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

Choose a reason for hiding this comment

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

No issues found across 2 files

@drish drish self-requested a review January 21, 2026 15:24
@drish
Copy link
Collaborator

drish commented Jan 21, 2026

thanks for your contribution @toofishes

@drish drish merged commit 9b396b9 into resend:main Jan 21, 2026
4 checks passed
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