Summary
Wati provides a set of APIs that help you interact with WhatsApp programmatically. You can use these APIs to send and receive messages, manage contacts, handle media, and integrate Wati with your existing systems. This guide gives you a clear overview of the available APIs and what each one does, so you can get started quickly.
Instructions
Available APIs
With Wati, you can access multiple APIs grouped by functionality.
Messaging APIs
Use these APIs to send and receive messages on WhatsApp.
Get messages from WhatsApp number - Retrieve messages received on your WhatsApp number.
Send session message - Send a message within an active WhatsApp session.
Send session file - Send a file attachment within an active session.
Send template message - Send a pre-approved WhatsApp template message.
Send template messages (bulk) - Send multiple template messages at once.
Send template message using CSV - Upload a CSV file to send template messages in bulk.
Send interactive button message - Send messages with clickable buttons for quick responses.
Send interactive list message - Send messages with a selectable list of options.
Contact management APIs
Use these APIs to manage your contact database.
Get contact list - Retrieve all contacts stored in Wati.
Add contact - Create a new contact.
Update contact attributes - Modify details of an existing contact.
Media and authentication APIs
Use these APIs to manage files and secure access.
Get media by file name - Retrieve media files using their file names.
Rotate token - Refresh your authentication token to maintain secure API access.
Operator and assignment APIs
Use these APIs to manage chat ownership and routing.
Assign operator - Assign a WhatsApp conversation to a specific operator.
Additional resources
Wati API documentation – Detailed reference for all available APIs
Webhook documentation – Learn how to set up and handle webhooks
Postman collection – A ready-to-use collection for testing Wati APIs
These APIs help you automate WhatsApp communication, streamline messaging workflows, and manage customer interactions more efficiently. Refer to the documentation for implementation details and best practices.
Frequently Asked Questions (FAQs)
Wati APIs Overview
1. What are Wati APIs used for?
Wati APIs allow you to interact with WhatsApp programmatically. You can use these APIs to send and receive messages, manage contacts, handle media files, and integrate Wati with your existing systems.
2. What types of APIs are available in Wati?
Wati provides APIs grouped by functionality, including Messaging APIs, Contact Management APIs, Media and Authentication APIs, and Operator and Assignment APIs.
Messaging APIs
3. What actions can be performed using Messaging APIs in Wati?
Messaging APIs in Wati allow you to send and receive WhatsApp messages. You can retrieve messages received on your WhatsApp number, send session messages, send file attachments, send pre-approved template messages, send template messages in bulk or using a CSV file, and send interactive messages with buttons or lists.
Contact Management APIs
4. What actions can be performed using Contact Management APIs in Wati?
Contact Management APIs allow you to manage contacts in Wati. You can retrieve the contact list, add new contacts, and update attributes of existing contacts.
Media and Authentication APIs
5. What actions can be performed using Media and Authentication APIs in Wati?
Media and Authentication APIs allow you to retrieve media files using file names and refresh your authentication token using the rotate token API to maintain secure access.
Operator and Assignment APIs
6. What does the Assign operator API do?
The Assign operator API assigns a WhatsApp conversation to a specific operator so that the conversation can be handled by that operator.
Bulk Messaging
7. How can template messages be sent in bulk using Wati APIs?
Template messages can be sent in bulk using the "Send template messages (bulk)" API to send multiple messages at once, or by using the "Send template message using CSV" API to upload a CSV file and send messages in bulk.
Interactive Messaging
8. What interactive message types are supported in Wati APIs?
Wati APIs support interactive button messages, which include clickable buttons for quick responses, and interactive list messages, which allow users to select options from a list.
API Resources
9. What additional resources are available for working with Wati APIs?
Wati provides API documentation for detailed references, webhook documentation for setting up and handling webhooks, and a Postman collection for testing Wati APIs.
