WhatsApp Widget API
Endpoints for managing your WhatsApp Chat Widgets. All endpoints in this section require authentication.
GET/api/whatsapp-widget
Retrieve a list of all WhatsApp Chat Widgets created by the authenticated user.
Example Request
curl -X GET 'https://codingmantra.com/api/whatsapp-widget' \
-H 'Authorization: Bearer YOUR_API_KEY'
Example Response
{
"data": [
{
"id": "QA6GQYXbtFjSwbdnAyPl",
"brandName": "CodingMantra",
"phoneNumber": "919033596484",
"welcomeMessage": "Hello! How can we help you today?",
// ... other widget properties
}
]
}
GET/api/whatsapp-widget/{id}
Retrieve the configuration for a specific WhatsApp Chat Widget by its ID.
Example Request
curl -X GET 'https://codingmantra.com/api/whatsapp-widget/QA6GQYXbtFjSwbdnAyPl' \
-H 'Authorization: Bearer YOUR_API_KEY'
Example Response
{
"data": {
"id": "QA6GQYXbtFjSwbdnAyPl",
"brandName": "CodingMantra",
"phoneNumber": "919033596484",
// ... other widget properties
}
}