Add custom tracking hostname support to Python SDK - #484
Merged
Conversation
quzhi1
marked this pull request as ready for review
July 30, 2026 19:21
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #484 +/- ##
==========================================
+ Coverage 98.90% 99.08% +0.17%
==========================================
Files 52 65 +13
Lines 2293 3074 +781
==========================================
+ Hits 2268 3046 +778
- Misses 25 28 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AaronDDM
approved these changes
Jul 30, 2026
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
domain_namesupport to the shared tracking-options request model used by message sends, scheduled sends, draft create/update, and Transactional SendTrackingOptions.domain_namefield while omitting it when unset, preserving existing outputWhy
Implements EN-143 for the public
tracking_options.domain_namecontract. Python SDK users can now select an active organization-owned tracking hostname without untyped escape hatches.For Transactional Send, the example and API docstring distinguish the verified sender domain in
/v3/domains/{domain_name}/messages/sendfrom the custom tracking hostname in the request body.Developer impact
Callers can add
domain_namealongsidelinks,opens, or both:Requests that omit the field are unchanged. Hostname canonicalization, ownership, certificate status, and failure handling remain enforced by the API.
Verification
.venv/bin/pytest -q— 483 passed, 3 deselected