Skip to content

feat: add Batch.SendParams with scheduled_at, tags, and attachments#236

Draft
cpenned wants to merge 2 commits into
mainfrom
cursor/batch-send-params-3669
Draft

feat: add Batch.SendParams with scheduled_at, tags, and attachments#236
cpenned wants to merge 2 commits into
mainfrom
cursor/batch-send-params-3669

Conversation

@cpenned

@cpenned cpenned commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

The batch send API now supports scheduled_at, tags, and attachments per email. This PR adds a dedicated Batch.SendParams type so those fields are explicitly documented and typed for batch sends.

Changes

  • Add Batch.SendParams extending Emails.SendParams with batch-specific documentation for scheduled_at, tags, and attachments
  • Update Batch.send / Batch.send_async signatures to accept List[Batch.SendParams]
  • Document scheduled_at on Emails.SendParams (was present in the TypedDict but missing from docs)
  • Add a test verifying tags, attachments, and scheduled_at are serialized in the batch request payload
  • Update batch examples and tests to use Batch.SendParams

Notes

Runtime behavior is unchanged — the SDK already forwarded these fields when using Emails.SendParams. This makes the batch API surface explicit and discoverable.

Open in Web Open in Cursor 

Summary by cubic

Adds a dedicated Batch.SendParams so per-email scheduled_at, tags, and attachments are clearly supported in batch sends. Updates the batch API to accept the new type; no runtime behavior change. Also resolves lint and mypy errors introduced by these changes.

  • New Features

    • Added Batch.SendParams (extends Emails.SendParams) with explicit docs for scheduled_at, tags, and attachments; documented scheduled_at on Emails.SendParams.
    • Updated Batch.send/Batch.send_async to accept List[Batch.SendParams]; tests verify serialization; examples updated.
  • Migration

    • Replace List[resend.Emails.SendParams] with List[resend.Batch.SendParams] when calling Batch.send or Batch.send_async.

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

Review in cubic

cursoragent and others added 2 commits July 10, 2026 20:54
Introduce a dedicated Batch.SendParams type for batch email sends so
scheduled_at, tags, and attachments are explicitly documented and typed.
Update batch send signatures, tests, and examples to use the new type.

Co-authored-by: cpenned <cpenned@users.noreply.github.com>
Co-authored-by: cpenned <cpenned@users.noreply.github.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 2 files (changes from recent commits).

Auto-approved: Adds a new TypedDict subclass, updates type annotations, and adds a test. No runtime logic changes, just explicit typing and documentation.

Re-trigger cubic

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