Best send time
Recommendation versus task schedule
A contact's best_send_time is a recommendation; the actual mailing task's scheduledAt also reflects automatic jitter (unchanged spread of 8 hours) and send-window gates. Choose senderConfig.bestSendTimeMode: TIME_OF_DAY uses the next preferred local time; WEEKDAY_AND_TIME also preserves the weekday. New campaigns default to TIME_OF_DAY. Existing campaigns without a mode keep LEGACY behavior; LEGACY is a read-only label, not a third choice. When requesting a campaign recommendation, pass its mode explicitly: standalone best-send-time and contact backfill still default to WEEKDAY_AND_TIME.
Read mode, timezone, timezoneSource/tzSource, reason and sources. Native IN/EMAIL and legacy inbound history are evaluated for qualified personal inbound activity. Three scattered qualifying messages can have low confidence; that is different from no history. A weekly recommendation can legitimately fall next week.
Ask for the campaign’s chosen mode
Discover the live schema first. Supply contactId, leadId, dossier or an explicit dialogId. This computes a recommendation without scheduling or changing the contact field; optional AI fallback uses normal tenant billing and usage logging.
{
"contactId": "<contact-id>",
"mode": "TIME_OF_DAY"
}# POST /api/best-send-time
# Required scope: mailing:read
# Omitted mode: WEEKDAY_AND_TIMEChange one preparation task safely
Open the existing task and its actual preview; read capabilities, editVersion and schedule. Show the selected local date, time and IANA timezone for confirmation. Convert that wall time to the exact UTC instant; a browser-local value with a different timezone label is incorrect. The guarded edit accepts a due/past date only for safe unstarted READY preparation with no acceptance evidence. A manual date receives no further jitter or automatic overwrite. Ordinary content edits preserve it within the same attempt; a new attempt does not inherit it. Existing approved-strategy scheduling retains its behavior.
# PATCH /api/campaigns/:id/recipients/:rid/manual
# Body: operationId, expectedVersion, reason, scheduledAt
# Optional: scheduleTimezone (IANA string, not null)
# scheduledAt: null clears the manual override and returns to auto.Preserve operationId and the identical request on response loss; use the existing task operation lookup to recover, then read back and poll the same task. For outbox, discover its separate edit/command and version contract. Do not apply preparation commands to SENT, UNKNOWN or transport-accepted attempts. A task date never proves delivery; SENT requires transport acceptance evidence.
Read actual schedule and counts
task.schedule returns mode, source, timezone, timezoneSource, reason, scheduledAt and observedAt. Sources distinguish AUTO, MANUAL, APPROVED_STRATEGY, LEGACY and UNSCHEDULED. Campaign metrics.scheduled exposes future, due, unscheduled, nextScheduledAt and observedAt. future counts exactly READY tasks with scheduledAt later than the observation time; use preparation tasks with group=scheduled to inspect them.
Lead, contact and existing dialog cards expose scoped campaignTasks with campaigns:read plus dialogs:read. Respect campaignTasksAccess, refresh observedAt and open the linked native task for its actual preview. Do not create a fake dialog, copy the letter body into the card, or use a contact date field as the task schedule.