Skip to content

Commit 3424249

Browse files
authored
Merge pull request #24 from senderkit/claude/gallant-einstein-6c402f
docs: note the scheduled_at future/30-day window
2 parents d9c059c + a42e266 commit 3424249

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ sk.send(
126126
cc=["ops@example.com"], # email only
127127
from_="hello@acme.com", # email only — From address override (bare address)
128128
from_name="Acme Support", # email only — From display name → "Acme Support <hello@acme.com>"
129-
scheduled_at=datetime(2026, 1, 1, 9, 0, tzinfo=timezone.utc), # datetime or ISO-8601 string
129+
scheduled_at=datetime(2026, 1, 1, 9, 0, tzinfo=timezone.utc), # datetime or ISO-8601 string; future & ≤ 30 days ahead
130130
idempotency_key="order-1234-shipped", # optional; see Idempotency below
131131
)
132132
```

src/senderkit/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ class TemplateSend:
107107
version: Optional[int] = None
108108
channel: Optional[ChannelLike] = None
109109
metadata: Optional[Metadata] = None
110+
#: Defer delivery. Must be in the future and at most 30 days ahead; the API
111+
#: rejects a past or too-distant timestamp with ``400``. Omit to send now.
110112
scheduled_at: Optional[ScheduledAt] = None
111113
cc: Optional[List[str]] = None
112114
bcc: Optional[List[str]] = None
@@ -134,6 +136,8 @@ class RawSend:
134136
interpolate: Optional[bool] = None
135137
vars: Optional[Vars] = None
136138
metadata: Optional[Metadata] = None
139+
#: Defer delivery. Must be in the future and at most 30 days ahead; the API
140+
#: rejects a past or too-distant timestamp with ``400``. Omit to send now.
137141
scheduled_at: Optional[ScheduledAt] = None
138142
idempotency_key: Optional[str] = None
139143

0 commit comments

Comments
 (0)