Messages API
The Messages API enables you to send messages to your contacts through multiple channels including SMS and WhatsApp.
Available Endpoints
Send Message to Contact
Send a message to an existing contact using their contact ID.
Send Message to Phone
Send a message directly to a phone number without requiring a pre-existing contact.
Key Features
- Multi-channel Delivery: Automatically route messages via SMS or WhatsApp based on contact preferences
- Template Support: Use pre-approved message templates for consistent messaging
- Webhook Notifications: Receive real-time delivery status updates
- Bulk Messaging: Send messages to multiple recipients efficiently
Authentication
All Messages API endpoints require the standard authentication headers:
x-sender-id: YOUR_SENDER_ID
x-api-key: YOUR_API_KEY
Message Flow
- Choose Endpoint: Select based on whether you have a contact ID or just a phone number
- Prepare Message: Use a template or custom message body
- Send Request: Submit the message via API
- Track Delivery: Monitor status via webhooks or polling