Recent searches


No recent searches

Is there an API to get info about a message that failed to be sent? - Sunshine Conversations



Posted Sep 25, 2024

Hello! :)

 

I would like to know if there is a way, hopefully an API, to get the reason that caused a message to not be sent via Sunshine Conversations API (Smooch). For instance, I can see in Apps/Integrations Logs that a message failed to be sent due to “unreachable number”. Here is a example:

{
 "id": "XXXXXXX",
 "timestamp": "2024-09-25T13:02:52Z",
 "product": "whatsapp",
 "service": "conversations-api",
 "level": "error",
 "message": "Message failed to send because the user is unreachable. Make sure you have entered the correct phone number.",
 "fields": {
   "appId": "XXXXXX",
   "destination": {
     "destinationId": "XXXXXx",
     "id": "XXXXXXX",
     "type": "whatsapp"
   },
   "details": {
     "appUserId": "XXXXX",
     "conversationId": "XXXXXXX",
     "error": "Message failed to send because the user is unreachable. Make sure you have entered the correct phone number.",
     "notificationId": "XXXXXXXXX",
     "userId": "undefined"
   },
   "source": {
     "type": "whatsapp"
   },
   "status": "userDeliveryFailed",
   "type": "notification"
 }
 

If possible, I would like to know if a message I have sent using SunCo Smooch API was delivered or not (and why). Is there an API that exposes this information?

Many thanks in advance.

 


2

2

2 comments

I have the same question. When posting notification using Whatsapp Template, I always get a 201 Created response code but the message isn't received randomly, and no clue why

0


Hello Eduardo 

 

Have a look at Apps and Integrations -> Integrations -> Logs

 

Regards

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post