Skip to content

Add Transactional Send (POST /v3/domains/{domain_name}/messages/send)#465

Merged
pengfeiye merged 1 commit intomainfrom
TT-4386-python-sdk-for-crud-transactional-send
Apr 17, 2026
Merged

Add Transactional Send (POST /v3/domains/{domain_name}/messages/send)#465
pengfeiye merged 1 commit intomainfrom
TT-4386-python-sdk-for-crud-transactional-send

Conversation

@pengfeiye
Copy link
Copy Markdown
Contributor

@pengfeiye pengfeiye commented Apr 17, 2026

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Summary

Adds support for Nylas Transactional Send in the Python SDK.

  • Client.transactional_send: New resource with send(domain_name, request_body, …) targeting POST /v3/domains/{domain_name}/messages/send and URL-encoded domain_name.
  • Models (nylas/models/transactional_send.py): TransactionalSendMessageRequest (required to, single-sender from_ → JSON from) and TransactionalTemplate; reuses existing attachment, tracking, and custom-header types where applicable.
  • Behavior: Aligns with grant messages.send for from_from, JSON vs multipart over the 3 MB attachment threshold, and base64 encoding of stream attachments for JSON sends.
  • Tests: Path/body, domain encoding, attachments, and from / from_ precedence; client property assertion.
  • Changelog: CHANGELOG.md Unreleased entry updated.

@pengfeiye pengfeiye merged commit 6853659 into main Apr 17, 2026
7 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