SMS messages with message status DeliveryFailed

  • 1
  • Question
  • Updated 5 months ago
I want to update our database any time a messageStatus changes to "DeliveryFailed".  The message_store event sends a notification anytime a message is updated, but it does not include any message IDs to fetch the messageStatus.   

I know I can fetch the message list and cycle through results to update the status, but this seems inefficient since there is no way of filtering on messageStatus.  

Is there a subscription or event that will send a notification with message ID any time delivery fails?  If not, what would be the most efficient way to update messages that failed delivery?

Posted 5 months ago

  • 1
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 3,004 Points 3k badge 2x thumb
Unfortunately we do not have corresponding notification today for outgoing SMS. But it looks like a good feature request. I will talk to our PMs about it.

For the time being, I believe the best way how it can be supported today is to combine existing message update notifications you mentioned and Message Sync API. So, each time the notification arrives you can call Message-Sync API to identify the list of updated messages since last invocation. See!#RefMessageSync.html
Photo of John Wang

John Wang, Official Rep

  • 5,786 Points 5k badge 2x thumb
Here is some additional information from our prior webinar that covers the nuances of using our Message Sync APIs.