Skip to content

feat: missing query parameter for GET on a received email#218

Merged
drish merged 3 commits into
mainfrom
feature/dev-990-support-html_formatcid-for-received-emails
Jun 16, 2026
Merged

feat: missing query parameter for GET on a received email#218
drish merged 3 commits into
mainfrom
feature/dev-990-support-html_formatcid-for-received-emails

Conversation

@gabrielmfern

@gabrielmfern gabrielmfern commented Jun 16, 2026

Copy link
Copy Markdown
Member

Closes #217

docs: https://resend.com/docs/api-reference/emails/retrieve-received-email#query-parameters


Summary by cubic

Add support for the html_format query parameter when retrieving a received email, allowing cid or data_uri inline images (default is data_uri). Aligns the SDK with the API docs and fulfills Linear DEV-990.

  • New Features

    • Added GetParams with optional html_format: Literal["data_uri", "cid"].
    • get and get_async now accept params and append the query via PaginationHelper.build_paginated_path.
  • Refactors

    • Formatted _receiving.py to satisfy flake8 E302 and added sync/async tests covering html_format URLs.

Written for commit 911ca81. Summary will update on new commits.

Review in cubic

Signed-off-by: gabriel miranda <gabrielmfern@outlook.com>
@gabrielmfern gabrielmfern requested a review from drish June 16, 2026 13:19
@gabrielmfern gabrielmfern self-assigned this Jun 16, 2026
gabrielmfern and others added 2 commits June 16, 2026 10:24
black added the missing blank line before _GetParams and collapsed the
get() signature onto one line. Fixes the flake8 E302 failure in the
lint-mypy CI job.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@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.

0 issues found across 3 files (changes from recent commits).

Auto-approved: Adds an optional query parameter to a single API endpoint, with corresponding tests. Low risk, limited blast radius.

Re-trigger cubic

@drish drish merged commit 5d9ddf9 into main Jun 16, 2026
22 checks passed
@drish drish deleted the feature/dev-990-support-html_formatcid-for-received-emails branch June 16, 2026 13:44
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.

support html_format=cid for received emails

2 participants