Skip to main content

General FAQs: Wati APIs & Webhooks

Updated today

Summary

This article covers common questions about using Wati’s API and webhooks, including how to add contacts via API, where to find your API key, how to enable read receipts using webhook events and more.

Frequently Asked Questions (FAQs)

Question: Can I add a contact via API?

Answer: Yes, it's possible using Wati’s API.

Question: Where can I find the Wati API key?

Answer: If you need the API Key, go to Wati, click on More > API Docs, and you’ll find both the API Key (Access Token) and the API Endpoint URL there.

Question: How to enable read receipt?

Answer: This can be done by enabling the webhook event "sent message is read". You need to click on More > Webhooks and add your webhook URL. Then enable the event from there.Wati supports webhooks that can alert you of the following via callback URLs: Messages received, Messages sent (Template & Session), Status of the messages sent (Sent/Delivered/Read).

Sent Message is READ:

This webhook is triggered when the message you sent is read by the user.

Sample payload:

{
"eventType": "sentMessageREAD",
"statusString": "Read",
"id": "1a2b3b4d5e6f7g8h9i10j",
"whatsappMessageId": "abcdefghi_jklmnop",
"conversationId": "a1b2c3d4e5f6g7h8i9j10",
"ticketId": "m1n2o3p4q5r6s7t8u9v10",
"text": null,
"type": "template",
"timestamp": "1665645642",
"assigneeId": null,
"operatorEmail": "[email protected]"
}

For more details, please check Wati Webhooks Documentation.

Did this answer your question?