Before making your first request, it’s important to understand how the messaging ecosystem works inside Visito.
Messaging Ecosystem Overview
The Messaging API is built around three core concepts:Channels
A channel represents a messaging endpoint such as WhatsApp Business Account, Instagram DM account, etc. Each channel has its own capabilities and requirements.Contacts
A contact represents a user who can send or receive messages through a specific channel. Examples:- A WhatsApp contact has a phone number
- An Instagram contact has an instagramId
- A WebChat contact has a sessionId
- A Messenger contact has a psid
Sending Messages
Before you can send a message, you must:- List your available channels
View the channels connected to your account.
→ List Channels - Connect additional channels (WhatsApp, Instagram, Messenger)
Follow the setup guide to add more messaging endpoints.
→ Connect Channels - Create a contact
A message must be sent to a specific contact on a specific channel.
→ Create a Contact
- Text messages
- Media (images, files, audio)
- Templates (WhatsApp)
- Interactive messages
Receiving Messages
To receive inbound messages or message status updates (sent, delivered, read), you must configure webhooks. Webhook events supported:- New incoming messages
- Message status updates
- Conversation updates
- Escalations
You’re now ready to start using the Messaging API!