Send a message to initiate a conversation with a contact. This endpoint supports both WhatsApp and SMS platforms and automatically creates contacts and conversations.
Rate Limiting: You cannot send another bot-initiated message to the same phone number within 30 minutes.
Bearer token authentication using your API key
The ID of your bot integration
Contact's phone number in international format
"1234567890"
Name of the WhatsApp message template (WhatsApp only)
"hello_world"
Language code for the template (WhatsApp only)
"en_US"
Parameters to fill template placeholders (WhatsApp only)
The message text to send (SMS/Twilio only)
"Hello! I'm here to help you schedule an appointment."
Contact's email address
"john@example.com"
Contact's first name
"John"
Contact's last name
"Doe"
Contact's full name
"John Doe"
Contact's timezone
"America/New_York"
Custom key-value pairs to store with the contact
{
"source": "website",
"campaign": "summer2024"
}ID of calendar integration to use for this conversation
123
Message sent successfully
The response is of type integer.
201