Content restrictions
Certain message categories are restricted or forbidden in specific countries. When you configure a marketing template with our Customer Success team, you’ll specify the category to ensure compliance.If you attempt to send a marketing message with a forbidden category, the API will return an error before sending the message.
Time window restrictions
Marketing messages can only be sent during specific time windows based on local regulations. If you attempt to send a message outside these windows, it will automatically be scheduled for the next available time slot.Automatic scheduling
When you send a marketing message outside allowed time windows:- The message is not rejected - it’s automatically scheduled for delivery
- The next available time slot is calculated based on the recipient’s timezone
- The API response includes a
schedule_atfield showing when the message will be sent - You’ll receive webhook events when the message is actually delivered
Time windows are enforced based on the recipient’s local timezone, not your timezone. Prelude automatically handles timezone conversion.
Public holidays
Marketing messages are blocked on public holidays in certain jurisdictions. Prelude maintains an up-to-date database of public holidays for each country and automatically schedules messages accordingly. If a marketing message is scheduled for a public holiday, it will be automatically rescheduled for the next business day during allowed hours.Scheduling marketing messages
You can schedule marketing messages up to 90 days in advance using theschedule_at parameter:
Error codes
When marketing compliance rules prevent immediate delivery:| Error Code | Description |
|---|---|
category_forbidden | The message category is forbidden in the destination country |
unsubscribed | The provided phone number is unsubscribed |
Time window restrictions don’t generate errors - messages are automatically scheduled for the next available time slot.