Create Scheduled Message
Creates a new scheduled message at the account level, without requiring a conversation.
contact_id and inbox_id are required. conversation_id is optional and only associates the new message with an existing conversation; it is not needed to schedule delivery to the contact.
Features
- Schedule messages for future delivery
- Attach up to 15 files
- Use WhatsApp templates
- Set up recurring messages (daily, weekly, monthly, yearly)
Recurrence Options
Messages can be set to recur automatically:
- Daily: Send every N days
- Weekly: Send on specific days of the week
- Monthly: Send every N months
- Yearly: Send every N years
You can limit recurrence by:
- Setting an end date
- Limiting the number of occurrences
- Setting it to never end
POST
Autorizações
Corpo
The content of the message to be sent. Supports variables for WhatsApp templates.
Examples:
- Simple text: "Hello, your order is ready"
- With variables: "Hi {{name}}, your appointment is on {{date}}"
Exemplo:
"Hello {{customer_name}}, your order #{{order_id}} will arrive tomorrow"
The type of recurrence for the scheduled message.
- none: Send only once (default)
- daily: Repeat every N days
- weekly: Repeat on specific days of the week
- monthly: Repeat every N months
- yearly: Repeat every N years
Opções disponíveis:
none, daily, weekly, monthly, yearly Exemplo:
"daily"
How the recurrence should end.
- never: Continue indefinitely
- on_date: End on a specific date (requires recurrence_end_date)
- after_occurrences: End after N occurrences (requires recurrence_max_occurrences)
Opções disponíveis:
never, on_date, after_occurrences Exemplo:
"never"
Resposta
Success