Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions resend/domains/_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ class CreateParams(TypedDict):
"""
The custom subdomain used for click and open tracking links (e.g., "links").
"""
click_tracking: NotRequired[bool]
"""
Track clicks within the body of each HTML email.
"""
open_tracking: NotRequired[bool]
"""
Track the open rate of each email.
"""

@classmethod
def create(cls, params: CreateParams) -> CreateDomainResponse:
Expand Down
2 changes: 1 addition & 1 deletion resend/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.28.1"
__version__ = "2.29.0"


def get_version() -> str:
Expand Down
2 changes: 2 additions & 0 deletions tests/domains_async_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ async def test_domains_create_async_with_tracking_subdomain(self) -> None:
"name": "example.com",
"region": "us-east-1",
"tracking_subdomain": "links",
"click_tracking": True,
"open_tracking": True,
}
domain = await resend.Domains.create_async(params=create_params)
assert domain["id"] == "4dd369bc-aa82-4ff3-97de-514ae3000ee0"
Expand Down
2 changes: 2 additions & 0 deletions tests/domains_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def test_domains_create_with_tracking_subdomain(self) -> None:
"name": "example.com",
"region": "us-east-1",
"tracking_subdomain": "links",
"click_tracking": True,
"open_tracking": True,
}
domain: resend.Domains.CreateDomainResponse = resend.Domains.create(
params=create_params
Expand Down
Loading