SendGrid · api · fg-0419

SendGrid rejects scheduled emails with 'Scheduling more than 72 hours in advance is forbidden'

If you see 400 Scheduling more than 72 hours in advance is forbidden, the cause and the fix for SendGrid are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
400 Scheduling more than 72 hours in advance is forbiddenReminder emails for next week fail while tomorrow's succeedsend_at in milliseconds rejected or scheduled far in the future
Cause
send_at must be a Unix timestamp in seconds no more than 72 hours ahead. Date.now() values are milliseconds.
Fix
Keep your own queue for anything beyond 72 hours and hand it to SendGrid inside the window, with send_at in seconds.
Apply
send_at: Math.floor(sendDate.getTime() / 1000) // only when sendDate - now <= 72h
Affected
SendGrid v3 Mail Send send_at, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun