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