My web hook is being called every time a SMS is received or sent. However, sporadically new sent SMSs are flagged as updated as opposed to new, and thus do not contain a message id to reference. Is there logic to this? They are all new messages.
My web hook is being called every time a SMS is received or sent. However, sporadically new sent SMSs are flagged as updated as opposed to new, and thus do not contain a message id to reference. Is there logic to this? They are all new messages.
Are you using the /message-store filter?
You will get notified when you send a message out or receive a new message. You will also notified when a new message is read or mark as unread. Here is how the notification body looks like:
// when I receive the first message {"accountId":37439510,"extensionId":1426275020,"lastUpdated":"2019-09-16T23:41:54.472Z","changes":[{"type":"SMS","newCount":1,"updatedCount":0,"newMessageIds":[1081360191020]}]} // when receive the second message {"accountId":37439510,"extensionId":1426275020,"lastUpdated":"2019-09-16T23:42:15.261Z","changes":[{"type":"SMS","newCount":1,"updatedCount":0,"newMessageIds":[1081360669020]}]} // when I read both messages {"accountId":37439510,"extensionId":1426275020,"lastUpdated":"2019-09-16T23:42:51.166Z","changes":[{"type":"SMS","newCount":0,"updatedCount":2,"newMessageIds":[]}]}
As per this below link:
"The subscription event on the message-store notifies on any changes in the event, for example when you receive a new incoming message or the outbound message.
But to reference the new message, you should be able to do so by making use of the message-store API and filtering it by the date/timestamp available from the Subscription event. "
Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.
Download RingCentral Phone for Desktop:
Tip: switch to the "sandbox mode" before logging in the app:
1 Person is following this question.